Well I recently discovered why randomly scripts would break for months that seemed to make no sense ever.
We have a few scripts that utilize the damage function.
Code:
Damage(from, damage, spell_id, attack_skill, avoidable= true, buffslot= -1, iBuffTic= false)
For some reason however, when you do this function verse an NPC who has an HP Event set, it sets the HP Event to -1. Thus breaking the scripts.
Doesn't matter if a client casts it on an NPC or the NPC casts it on them selves, or NPC cast it on different NPC, result is the same $hpevent is set to -1.
Anyone have any insight on fixing this? Cause the function itself is darn useful otherwise.