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.
|
All times are GMT -4. The time now is 03:06 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.