Is EVENT_NPC_SLAY working correctly ?
It fires for the NPC that dies, not the NPC that does the killing, but it uses the killer NPC in the message.
By changing line 1761 of attack.cpp from Code:
parse->Event(EVENT_NPC_SLAY, this->GetNPCTypeID(), 0, oos->CastToNPC(), this); Code:
parse->Event(EVENT_NPC_SLAY, other->GetNPCTypeID(), 0, other->CastToNPC(), this); |
Hrm. I've never seen it occur between two NPCs, so I don't know if it works correctly there. I stuck some of the flavor text onto XTC and Vyzh`Dra the Cursed, though.
Code:
sub EVENT_SLAY { Code:
sub EVENT_SLAY { |
Er, shoot, you said NPC_SLAY.
Disregard :) |
What currently happens (1090 build) is that NPC_SLAY runs on the NPC that is killed.
So if you have two NPC's, npc_killer and npc_killed .. and you have a npc_killed.pl script that looks like this .. Code:
sub EVENT_NPC_SLAY { npc_killer says "I was killed". It should be npc_killed saying that if it were meant to function that way. |
All times are GMT -4. The time now is 01:03 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.