View Single Post
  #10  
Old 10-27-2004, 02:22 AM
ajb20
Hill Giant
 
Join Date: Jul 2004
Posts: 106
Default

Just wanted to bump this for anyone still having problems. here is a very simple quest that is tested and depop() works fine.

Code:
sub EVENT_SPAWN
{
	quest::settimer(a386,30);
}

sub EVENT_TIMER
{
	if($timername==a386)
	{
		quest::depop();
		quest::stoptimer(a386);
	}
}

sub EVENT_SAY
{
	if($text=~/hail/i)
	{
		quest::say("Hello GM $name.  I see you are testing me to see if I depop after 30 seconds.  Well good luck.");
	}
}
Be sure to do quest::stoptimer(); or it will crash the zone though because it will restart the timer and try to depop a non-existant mob
Reply With Quote