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

Development::Bots Forum for bots.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 03-03-2010, 04:56 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

I don't believe there is anything you can change in the database to fix this, a source code change is required:

In NPC:: Death, there is code to check if a Pet caused the most damage to the killed mob, in which case the owner of the pet gets the kill, however it appears another check is needed to see if the pet owner is a bot, in which case the bot's owner should be awarded the kill and hence the XP.

EDIT: Actually, the XP award is only one part of it, this conditional in attack.cpp, line 2082 is what probably needs altering to leave a corpse if a bot pet gets the kill:
Code:
        if (!HasOwner() && class_ != MERCHANT && class_ != ADVENTUREMERCHANT && !GetSwarmInfo()
                && MerchantType == 0 && killer && (killer->IsClient() || (killer->HasOwner() && killer->GetOwner()->IsClient()) ||
                (killer->IsNPC() && killer->CastToNPC()->GetSwarmInfo() && killer->CastToNPC()->GetSwarmInfo()->owner &&
                 killer->CastToNPC()->GetSwarmInfo()->owner->IsClient()))) {
It should be a simple fix. I don't have the time to test and commit it right now, but I'll get to it in a few days if no-one else does.

Last edited by Derision; 03-03-2010 at 05:07 PM..
Reply With Quote
 

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 06:27 AM.


 

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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3