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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-03-2010, 04:22 PM
Terethian2
Sarnak
 
Join Date: Sep 2007
Posts: 30
Default Bots pets making mobs poof with no corpse

The bot pets is in the database, what is likely missing in the database that needs to be sourced to fix this issue?

It does not effect player pets, just the bot pets, if the bot pet get's the kill poof goes the corpse every time.
Reply With Quote
  #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
  #3  
Old 03-04-2010, 04:44 PM
Terethian2
Sarnak
 
Join Date: Sep 2007
Posts: 30
Default using 1180 code

At some point someone changed the standard compiled binary code for bots to goof up and cause this pet issue =(
(I think it started past two compiled bot binaries.)

I don't know how to compile and I really don't want to mess with it, I tried before and could not figure it out....

I would like to request a fix to a new compiled binary... ::cross fingers::
Reply With Quote
Reply


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