EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   EVENT_SLAY for NPC vs. NPC (https://www.eqemulator.org/forums/showthread.php?t=20953)

fanman55 07-06-2006 11:27 AM

EVENT_SLAY for NPC vs. NPC
 
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:
Code:

else
    parse->Event(EVENT_DEATH, this->GetNPCTypeID(),0, this, other);

to...

Code:

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


All times are GMT -4. The time now is 10:36 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.