View Single Post
  #1  
Old 07-06-2006, 11:27 AM
fanman55
Sarnak
 
Join Date: Mar 2005
Location: CA
Posts: 44
Default 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
Reply With Quote