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'); Code:
int16 Client::GetMaxStat() const Code:
int16 Client::GetMaxStat() const |
If you set the rule Character:StatCap > 0, the existing function will return at this point:
Code:
if((RuleI(Character, StatCap)) > 0) |
No, not that, haha, in the first code if you're beyond level 71 your base is 330, as in your cap is 330. I'm trying to allow the StatCap to be recognized, with the current code it is overwritten and means nothing unless you make the change I have, I could take out the 'if (level < 1)' but I didn't, this is done so that any level can get the StatCap and so that the StatCap is only overwritten if you're below level 1.
|
wat.......
|
If you are under level 61 your stats get CAPPED at 255... even with the rule
|
not according to the code posted.
|
At level 60 I return 255 strength... at level 61 I return 3700 strength /shrug on the normal source code
I have a stat cap of 2000 and the character has 1700 heroic stats ( just a test character) |
So, according to NatedogEZ, who has the fix, the cap is still being set to 255 even with the updated code, is there any reason for this? Does anyone have an ideas on how to fix that? I don't see an error within my code.
EDIT: So apparently when below level 61, with the update, you still get 255 as a cap. |
are we talking about viewed within the client or with #mystats or something else? need more input.
|
i was using perl code to check my stats
|
#Mystats with the normal code displays a 255 cap if you're level 60 or below.
|
Publishing other people's code without crediting the writer is rude...
|
The writer of what? It's an open source code, I didn't realize I had to give credit, I don't even know who the writer is. We're trying to fix a problem, not make it the way it already is.
P.S. The change is written by me if that's what you're trying to say. |
I just stumbled upon this in the same code.
EDIT: With this new find, the first change is not necessary. REPLACE client_mods.cpp Code:
int16 Client::CalcSTR() { Code:
int16 Client::CalcSTR() { |
BUMP: Last fix in post before this is confirmed to work by NatedogEZ.
|
inside client_mods.cpp
Code:
if(val>255 && GetLevel() <= 60) This Code OVERWRITES the Rule confirmed Had to remove all instances of this code to get the hardcap on stats to go away for players level 60 and lower. |
To increase the stat cap for characters of any level you will need to modify GetMaxStat and CalcSTR/AGI etc. Simple as that.
I don't use any of the rules etc. |
I already did that in the post 2 posts before yours. :)
|
It looks like the CalcSTR/calcSTA changes are in the source already now, but the getmaxstat did not make it in.
However, even with the getmaxstat change, Caps are STILL 255 for any level, whats going on? |
Nevermind - I figured it out, please ignore
|
So, what is the current way of removing stat caps. I've imputed the changes mentioned in this thread to no avail. Still capped at 255 in-game.
Any detailed instructions on how to do this would be much appreciated. Thx |
Inside the rule values table to change the StatCap.. and if it is not there add it :)
|| *ruleset_id* || *rule_name* || *rule_value* || *notes* || || 1 || Character:StatCap || 2500 || Sets the Max Statistics Cap for PCs. 0 = feature disabled || |
All times are GMT -4. The time now is 11:14 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.