View Single Post
  #4  
Old 09-14-2011, 09:53 AM
Expletus
Hill Giant
 
Join Date: Jan 2010
Location: Baltimore Maryland
Posts: 152
Default

Alright, so it was working somewhat and I am running into the following issues:

1. Spawns 2 of the mobs on turn in
2. Spawns the mob when given less than 4 items but stays up
3. Gives double message when less than 4 items turned in
4. Upon completion, it's crashing the zone - log back in and task rewards is on cursor

Am I missing some particular rule code ? (I only changed the bottom code and the top remains the same).

Code:
sub EVENT_ITEM 
{
	$x = $npc->GetX();
	$y = $npc->GetY();
	$z = $npc->GetZ();
	$h = $npc->GetHeading();
	$entid1 = quest::spawn2(58083,0,0,$x,$y,$z,$h);
  
  if (plugin::check_handin(\%itemcount, 119782=> 4))
    {
      quest::spawn2(58083,0,0,$x,$y,$z,$h);
      quest::shout2("Fool you have unleashed me!");
      quest::depop(58082);
    }
  else
    {
	$client->Message(315, "$NPCName whispers to you, 'Not quite there yet, ace.");
        plugin::return_items(\%itemcount);
    }

}
__________________
Expletus / Volgar
Reply With Quote