Thread: Waypoints + $wp
View Single Post
  #1  
Old 07-16-2007, 01:46 AM
inkubus
Hill Giant
 
Join Date: Feb 2002
Posts: 146
Default Waypoints + $wp

Hi all,

I'm having a few issues with Waypoints which is causing a bit of a headache. I am trying to make an npc despawn when it reaches a certain waypoint (number 53).

I would have thought it would be this:

sub EVENT_WAYPOINT
{
if ($wp == 53)
{
quest::depop();
}

}

This is causing me a bit of a problem as the npcs's i'm spawn2()'in on paths are constantly looping on their patrol route.

Any suggestions?

I have also tried

sub EVENT_WAYPOINT
{
quest::say("I have reached a waypoint");
}

To see if it is working, but it doesn't even do that.

Thanks in advance

InKy
Reply With Quote