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)