Quote:
Originally Posted by Reynin89
Ive been messing with timers and I was just wondering if anyone knew why in the world this boss will NOT cast this spell, has equal brackets, ID is correct, syntax looks fine.. so wth?
Code:
sub EVENT_COMBAT {
if ($combat_state == 1) {
quest::settimer(test,3); }
if ($combat_state == 0) {
quest::stoptimer(test); }
}
sub EVENT_TIMER
{
if($timername == test)
{
quest::castspell($userid,92);
quest::stoptimer("test");
}
}}
Thanks in advance. Lol im sure its a nub mistake >_<
|
Red is an extra bracket, Dark Orange is a missing bracket, and Blue needs to be 'eq' for an equal operator for strings, not integers. Test will work but you also want to quote your strings so it would be "test" in your script. You will also want to stop timer in your script or else it will loop.