View Single Post
  #12  
Old 12-18-2010, 04:44 AM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Quote:
Originally Posted by trevius View Post
Yeah, always use == in hp events, otherwise it may make more than 1 match that is not intended (which is what is happening in your example since the first one is always true once the NPC drops below 98%).

And to cast a PBAE, I think you can just use $mobid variable export to cast the spell with the NPC as the target.

Code:
$npc->CastSpell(21439, $mobid);
ahh ok thanks a ton guys, i didnt have this problem before with the <= so i figured it would be ok
Reply With Quote