PDA

View Full Version : EVENT_SLAY for NPC vs. NPC


fanman55
07-06-2006, 11:27 AM
This is my first fix so I'm not sure if I fixed it correctly or not (but it tested ok in how I tested it)... This fix just allows you to make the EVENT_SLAY work for NPC vs. NPC.

So this is what I did:

In 6.0-DR3 attack.cpp at around line 2001 change:
else
parse->Event(EVENT_DEATH, this->GetNPCTypeID(),0, this, other);

to...

else
{
parse->Event(EVENT_DEATH, this->GetNPCTypeID(),0, this, other);
parse->Event(EVENT_SLAY, other->GetNPCTypeID(),0, other->CastToNPC(), this->CastToMob());
}

It's kind of trivial but I hope some will find it useful... :o

fathernitwit
07-08-2006, 06:41 AM
not a bad idea... I reworked it a bit for various reasons, and made it a seperate event: EVENT_NPC_SLAY