If you want to start a timer on spawn use:
Code:
sub EVENT_SPAWN {
quest::settimer("timer_name", $seconds);
}
sub EVENT_TIMER {
if($timer eq "timer_name") {
# do stuff here
quest::stoptimer("timer_name"); # if you dont stop it, the timer restarts
}
}