Thread: God Event Help
View Single Post
  #2  
Old 04-14-2010, 12:40 AM
Randymarsh9
Dragon
 
Join Date: Dec 2007
Posts: 658
Default

This might help

Code:
sub EVENT_TIMER {

 if ($timer == "sun") {
  quest::me("The lava pit shoots upward, revealing a new form as it melts back in to the pit.");
  quest::spawn("999354, 0, 0 -2.1, -2492.1, -795.4, 126.7");
  quest::stoptimer("sun");
 }
}
should instead be
Code:
sub EVENT_TIMER {

 if ($timer eq "sun") {
  quest::me("The lava pit shoots upward, revealing a new form as it melts back in to the pit.");
  quest::spawn(999354, 0, 0 -2.1, -2492.1, -795.4, 126.7);
  quest::stoptimer("sun");
 }
}
I'm pretty sure that for timers with a name like that, you use eq instead of ==, and I don't think you need the quotation marks around the spawn things.
Reply With Quote