View Single Post
  #4  
Old 08-01-2009, 08:23 PM
neiv2
Hill Giant
 
Join Date: Mar 2009
Location: CO
Posts: 183
Default

Joli, I think you suggested having the global check and depop as part of the npc script; but wouldn't it be better placed in the watcher script, as follows?
Code:
sub EVENT_WAYPOINT
	{
	if (defined($qglobals{wanderer})) 
		{

		my $x;
		my $y;
		my $z;
		my $h;

		$x = $npc->GetX();
		$y = $npc->GetY();
		$z = $npc->GetZ();
		$h = $npc->GetHeading();		

		if ($qglobals{wanderer} == 1 && $EventStart == 0)
			{	
			$EventStart == 1;
			quest::spawn2(999228,0,0,$x+5,$y+5,$z,$h);
			}
		elsif ($qglobals{wanderer} != 1)
			{
			quest::depop(999228);
			}
		}
	}
Would this accomplish the same thing?
Reply With Quote