View Single Post
  #11  
Old 12-17-2010, 10:51 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

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);
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote