01-03-2008, 05:40 PM
Well this is the code the resets the target after killing an NPC:
Maybe you forgot to add this since you did modify it:
Just a thought though.
Code:
' Check if target is npc that died and if so set target to 0
If Player(Attacker).TargetType = TARGET_TYPE_NPC And Player(Attacker).Target = MapNpcNum Then
Player(Attacker).Target = 0
Player(Attacker).TargetType = 0
End If
Maybe you forgot to add this since you did modify it:
Code:
If Player(Attacker).Target = MapNpcNum Then
Just a thought though.