View Single Post
  #15  
Old 05-16-2014, 01:43 PM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default

Playing with the sub EVENT_WAYPOINT_ARRIVE {

This is what I have currently:

Code:
sub EVENT_SPAWN {
	$npc->AssignWaypoints(546703);
	}
}

sub EVENT_WAYPOINT_ARRIVE {
	if ($wp == 3) {
		quest::shout("hi");
		}
}
Do I need some kind of definition of which grid the waypoint is on before the if statement? like my $wp = ($npc->GetGrid()) ? Found what looked like some examples on older threads but they were just using ($wp == 3) or saw another like ($wp eq 3)
Reply With Quote