Thread: Timer IDs ??
View Single Post
  #4  
Old 04-14-2005, 05:34 AM
knightz
Fire Beetle
 
Join Date: Jun 2004
Location: Canada
Posts: 24
Default

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
   }
}
__________________
~ bUri

Last edited by knightz; 04-14-2005 at 01:37 PM..
Reply With Quote