ChaosSlayerZ
05-27-2009, 08:38 PM
I have tested
sub EVENT_SLAY
and
sub EVENT_NPC_SLAY
and here is the problem.
sub EVENT_SLAY only triggers when npc kills a player, but never when npc kills npc
sub EVENT_NPC_SLAY trigger when npc kills npc BUT it triggers of the npc who was killed, but appears in game as said by npc who did the killing.
Tested like this:
A qeynos guard has message "and stay down!" when he kills someone
A gnoll pup has message "for Blackburrow!" when he kills someone
when guard kills gnoll pup I see following in chatbox:
Qeynos Guard says "For blackburrow!" :D
sub EVENT_SLAY
and
sub EVENT_NPC_SLAY
and here is the problem.
sub EVENT_SLAY only triggers when npc kills a player, but never when npc kills npc
sub EVENT_NPC_SLAY trigger when npc kills npc BUT it triggers of the npc who was killed, but appears in game as said by npc who did the killing.
Tested like this:
A qeynos guard has message "and stay down!" when he kills someone
A gnoll pup has message "for Blackburrow!" when he kills someone
when guard kills gnoll pup I see following in chatbox:
Qeynos Guard says "For blackburrow!" :D