Thread: Quest timers
View Single Post
  #5  
Old 04-04-2008, 09:58 AM
Andrew80k
Dragon
 
Join Date: Feb 2007
Posts: 659
Default

Quote:
Originally Posted by So_1337 View Post
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!");
	}
}
Awesome this will help me finish up Corun in Surefall.
Reply With Quote