Thread: Timer Problem
View Single Post
  #6  
Old 05-24-2009, 08:34 PM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

I am making a quest where ideally the NPC will cycle through a group of phrases, but it isn't even saying the first thing.
Code:
sub EVENT_SPAWN{
quest::settimer("Timer1",10);
}
sub EVent_TIMER{
if ($timer eq "Timer1"){
quest::say("text");
quest::stoptimer("Timer1");
quest::settimer("Timer2",10);
}
if ($timer eq "Timer2"){
quest::say("text");
quest::stoptimer("Timer2");
quest::settimer("Timer3",10);
}
if ($timer eq "Timer3"){
quest::say("text");
quest::stoptimer("Timer3");
quest::settimer("Timer4",10);
}
if ($timer eq "Timer4"){
quest::say("text");
quest::stoptimer("Timer4");
quest::settimer("Timer1",10);
}
}
Reply With Quote