Resolved Attack power resets to 0 after reaching roughly 40k

Syphex

New member
Rep
0
0
0
Rep
0
Vouches
0
0
0
Vouches
0
Posts
2
Likes
0
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 2 110 XP
Im presented with a issue on Trinitycore where attack power is reseting to 0 once it's reaching the thresh hold.
Now i dont remember ever having this issue before back in the days and scavenged google and other search engines with no sucess so im turning here.

Does anyone have any fix that doesn't reset attack power to 0 once it reaches like 40k?
I tried increasing the usual int16 to int32 itemTemplate.ItemStat int change (which didnt make any difference, but it shouldnt since it isnt related)
Im using Latest Trinitycore source.
 
Solution
in Objectmgr.cpo changed integer of ItemStatValue From GetInt16 —> GetInt32

and then hen modify theDataType of stat_values in item_template from smallint - to int


you also need to modify it here:
1725699940146.png

RedLine

Divine
Divine
RedLine Rep
0
0
0
Rep
0
RedLine Vouches
0
0
0
Vouches
0
Posts
74
Likes
28
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 4 205 XP
in Objectmgr.cpo changed integer of ItemStatValue From GetInt16 —> GetInt32

and then hen modify theDataType of stat_values in item_template from smallint - to int


you also need to modify it here:
1725699940146.png
 
Solution
Liked By 2 members :

Syphex

New member
Rep
0
0
0
Rep
0
Vouches
0
0
0
Vouches
0
Posts
2
Likes
0
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 2 110 XP
in Objectmgr.cpo changed integer of ItemStatValue From GetInt16 —> GetInt32

and then hen modify theDataType of stat_values in item_template from smallint - to int


you also need to modify it here:
View attachment 4565
It was the last part that i was missing, thank you.
Also for those wondering, GetTotalAttackPowerValue is located in Unit.cpp
 

3,392

1,271

9,555

428

Top