View Single Post
  #11  
Old 05-13-2011, 11:28 AM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,072
Default

Just FYI, it is a good idea to use 'eq' as an operator to compare strings.

When you export the $timer object in this case you are using a string to identify your timer names, not an ID. So you would be looking at something similar to:

Code:
if ($timer eq "SpawnAcolytes")
Instead of:

Code:
if ($timer == "SpawnAcolytes")
'==' is for integer comparison, IE: 1,2,3,4,5 etc.

And as Joligario was trying to say, you want to quote your strings as a best practice:

Code:
$npc->NPCSpecialAttacks(DIMUCNfAB, 0);
Should be:

Code:
$npc->NPCSpecialAttacks("DIMUCNfAB", 0);
Otherwise it looks like you are persistently figuring it out.

Hopefully that helps.
~Akka
Reply With Quote