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
