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);
}