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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-30-2013, 06:16 AM
ChessyCats
Sarnak
 
Join Date: Jun 2010
Posts: 39
Default Out-of-combat health regeneration?

Is there a way to flag bot health to regen when out of combat? Obviously players can do this, but I'm not sure what to do about my bots.
Reply With Quote
  #2  
Old 06-30-2013, 05:50 PM
bad_captain
Developer
 
Join Date: Feb 2009
Location: Cincinnati, OH
Posts: 512
Default

They should, if you have the rule set. The only issue I know with regen is that melee bots won't sit to regen.
Reply With Quote
  #3  
Old 06-30-2013, 07:29 PM
ChessyCats
Sarnak
 
Join Date: Jun 2010
Posts: 39
Default

Ohhhh, yeah, that's the issue. Berserkers and warriors aren't going to sit and regen, otherwise the rest state works. Thank you for the reply.
Reply With Quote
  #4  
Old 07-01-2013, 02:46 AM
ChessyCats
Sarnak
 
Join Date: Jun 2010
Posts: 39
Default

If anyone else is interested in this, it's a pretty easy change to make your melee bots rest. Open up bot.cpp and search for "GetManaRatio". The first result should take you to a section of code that tells a bot when to meditate. Just change the line containing GetManaRatio to if(GetManaRatio() < 99.0f || GetHPRatio() < 99.0f), then recompile. A bot will rest if it's out of combat and doesn't have full mana or health.
Reply With Quote
  #5  
Old 10-31-2013, 05:28 PM
werebat's Avatar
werebat
Hill Giant
 
Join Date: Oct 2010
Posts: 143
Default

Thanks, ChessyCats, I made the change and it works great. Any chance it get committed soon?
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 03:48 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