Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #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
  #2  
Old 07-08-2006, 06:41 AM
fathernitwit
Developer
 
Join Date: Jul 2004
Posts: 773
Default

not a bad idea... I reworked it a bit for various reasons, and made it a seperate event: EVENT_NPC_SLAY
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 12:22 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3