Thread: Quest timers
View Single Post
  #4  
Old 04-04-2008, 09:43 AM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Just a quick note... If you don't stop the timer when it triggers, you don't have to reset it. So the code for that can be even shorter:

Code:
sub EVENT_SPAWN {
	quest::settimer("repeat", 60); // First trigger after 60 seconds, and every 60 seconds after
}

sub EVENT_TIMER {
	if ($timer eq "repeat") {
		quest::shout("I fart in your general direction! Your mother was a hamster and your father smelt of elderberries!");
	}
}
Reply With Quote