Thread: reset issue?
View Single Post
  #7  
Old 11-07-2012, 07:38 PM
Caryatis
Dragon
 
Join Date: May 2009
Location: Milky Way
Posts: 539
Default

Quote:
it won't reset the hp event
Since you set the first HP event when it spawns, it won't reset it. If you instead set the first HP event in the agro(combat state == 1) and then every time it is agro'd, it will re-set the hp event to 95.

Also the final HP event is redundant as it will be caught by the death event.

You should also consider using $npc->GetX(), etc(or $npc->GetX() -5, if you want them to not spawn directly on top on the main mob) for the location of the spawned mobs or leash the main mob or the player can just pull the mob away from that loc and the adds won't agro.
Reply With Quote