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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-03-2010, 04:14 PM
Brewhaus
Sarnak
 
Join Date: Aug 2010
Posts: 38
Default

May I ask how you fixed the AC issue? Do you mean you found a way to change it in the DB or you changed it in the code and recompiled?
Reply With Quote
  #2  
Old 09-06-2010, 10:52 PM
lich2594
Sarnak
 
Join Date: Jun 2006
Location: Tennessee, USA
Posts: 77
Default

Quote:
Originally Posted by Brewhaus View Post
May I ask how you fixed the AC issue? Do you mean you found a way to change it in the DB or you changed it in the code and recompiled?
I changed some variables, deleted some, and added new code to the source.

Digging around through the bot code lead me to more than one issue that I resolved. The first issue was the incorrect AC values, the cause of this is that the bot code loads in data with the NPC code; creating a "double post" of information so to speak. After a few times creating incorrectly valued AC, it glitches and starts spitting out insane data.

The way I fixed this was to disable the bot.cpp code from adding any extra values. The code is not completely fixed, but it's a lot more accurate than the glitch previously used. Now, a 400AC piece of armor adds 800AC, each time I give another similar piece to the bot. (It sounds off still, but this method puts the bot almost equal in AC value as a normal player of the same class).

The second issue that was resolved is the mitigation of the bots. This was the main issue all along, but I thought that it was the AC because of the incorrectly displayed results. It could have been a combination, as well.

To correct this, you can adjust these lines of code:

(Located in bot.cpp)
Code:
damage -= (minhit * defender->GetItemBonuses().MeleeMitigation / 100);
damage -= (damage * defender->GetSpellBonuses().MeleeMitigation / 100);
These values may work fine, until you start to get up in the 8.5k+ AC range. Then it seems to put the bots into a GOD-mode state, where they can not be attacked. If you change the /100 to a higher number, such as /200, it will allow the bots to be hit more. (I'm not giving out my exact numbers, lol)

I hope this helps you!
__________________
Reply With Quote
  #3  
Old 09-07-2010, 11:23 AM
Brewhaus
Sarnak
 
Join Date: Aug 2010
Posts: 38
Default

Thanks! I'm going to have to checkout the code and start messing with it.
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 06:34 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3