Thread: Timer Problem
View Single Post
  #9  
Old 05-24-2009, 10:35 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Yeah, you do definitely need to make sure to use all uppercase. That script should work fine when you have it set like this:

Code:
sub EVENT_SPAWN {
	quest::settimer("Timer1",10);
}

sub EVENT_TIMER {

	if ($timer eq "Timer1"){
		quest::say("text1");
		quest::stoptimer("Timer1");
		quest::settimer("Timer2",10);
	}

	if ($timer eq "Timer2"){
		quest::say("text2");
		quest::stoptimer("Timer2");
		quest::settimer("Timer3",10);
	}

	if ($timer eq "Timer3"){
		quest::say("text3");
		quest::stoptimer("Timer3");
		quest::settimer("Timer4",10);
	}

	if ($timer eq "Timer4"){
		quest::say("text4");
		quest::stoptimer("Timer4");
		quest::settimer("Timer1",10);
	}

}
Make sure to do a #reloadquest and also a #repop to start the timer. Also, make sure you have the script named properly.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote