Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-23-2013, 07:29 PM
Zamthos
Discordant
 
Join Date: Jan 2013
Posts: 284
Default Stat Caps.

Okay, so, if you want your stats to go beyond 255 you will need the below fix or your custom stats will not work.

You'll want to have that StatCap within your database, ## is the value you wish to be the max.
Code:
INSERT INTO `rule_values` VALUES (1, 'Character:StatCap', '##', 'Stat Cap');
REPLACE client_mods.cpp:
Code:
int16 Client::GetMaxStat() const 
{

	if((RuleI(Character, StatCap)) > 0)
		return (RuleI(Character, StatCap));

	int level = GetLevel();
	
	int16 base = 0;
	
	if (level < 61) 
        {
		base = 255;
	}
	else if (GetClientVersion() >= EQClientSoF) 
        {
		base = 255 + 5 * (level - 60);
	}
	else if (level < 71) 
        {
		base = 255 + 5 * (level - 60);
	}
	else 
        {
		base = 330;
	}
	
	return(base);
}
WITH client_mods.cpp:
Code:
int16 Client::GetMaxStat() const 
{
	if((RuleI(Character, StatCap)) > 0)
	return (RuleI(Character, StatCap));
	
	int level = GetLevel();
	
	int16 base = 0;
	
	if (level < 1) 
	{
		base = 255;
	}
 
	return(base);
}
Reply With Quote
 


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 01:38 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