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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-16-2015, 07:54 AM
dagulus2
Hill Giant
 
Join Date: Feb 2013
Posts: 220
Default

The Hit Points is a known issue, you need to replace the Bot:GenerateBaseHitPoints() section in bots.cpp with this code patch.

Code:
int32 Bot::GenerateBaseHitPoints()
{
	// Calc Base Hit Points
	int new_base_hp = 0;
	uint32 lm = GetClassLevelFactor();
	uint32 Post255;

	if ((GetSTA() - 255) / 2 > 0)
		Post255 = (GetSTA() - 255) / 2;
	else
		Post255 = 0;

	new_base_hp = (5) + (GetLevel()*lm / 10) + (((GetSTA() - Post255)*GetLevel()*lm / 3000)) + ((Post255*GetLevel())*lm / 6000);

	this->base_hp = new_base_hp;

	return new_base_hp;
}
Reply With Quote
  #2  
Old 03-16-2015, 03:13 PM
Huppy's Avatar
Huppy
Demi-God
 
Join Date: Oct 2010
Posts: 1,332
Default

Quote:
Originally Posted by dagulus2 View Post
The Hit Points is a known issue, you need to replace the Bot:GenerateBaseHitPoints() section in bots.cpp with this code patch.
Hey thanks dag, I'm not too concerned about having all the quirks fixed with bots right now, as I know the development has a ways to go yet.
But this little fix right now will help me with the overall server testing I'm doing. I still have my server/db from a few years back when I put a lot
of work in to the bot spells so each class had all of them (buffs,etc) up until level 85. I still have check out the current bot spells to see what they
have at various levels.
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 02:30 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