Bypass 32767 Stats for Items (32k) in TrinityCore

JadaDev

reaper-wow.com
Legend
JadaDev Rep
5
0
0
Rep
5
JadaDev Vouches
0
0
0
Vouches
0
Posts
514
Likes
509
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 11 100 XP
  • Locate your ObjectMgr.cpp -> \src\server\game\Globals
  • Scroll down to line 2748

Greetings everyone, this tutorial will explain how to remove the stat cap when making items with stats above 32767.

Requirements :
Steps :
  1. Open Source and Put in the Search Tab " ObjectMgr.cpp " Can be found under \src\server\game\globals.
  2. Edit the file using any of the text editors we mentioned and head to line 2700+.
  3. Now Search for [GetInt16] without [].
  4. You should see something similar to
    itemTemplate.ItemStat.ItemStatValue = int32(fields[29 + i * 4 + 1].GetInt16());
    Plain text
    Select All
    [*]Change [GetInt16] to [GetInt32] without []
    [*]It should now looks like this
    itemTemplate.ItemStat.ItemStatValue = int32(fields[29 + i * 4 + 1].GetInt32());
    Plain text
    Select All
    [*]Recompile your source and put the new worldserver.exe to your core.
    [*]Time to change the database stat_valueX details, so open Any MySQL Editor from above.
    [*]Head to World database where you can find "item_template" now edit that table - design it and find all stat_value1 - 2 etc..
    [*]Now change their type from SMALLINT or whatever you have to INT.
    [*]Close and you're all good to go.
    [*]ALWAYS SAVE BACKUP BEFORE DOING ANYTHING
 
Liked By 2 members :

Instadev

MySQL & C++ Developer
banned
Instadev Rep
4
0
0
Rep
4
Instadev Vouches
0
0
0
Vouches
0
Posts
338
Likes
152
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 2 90 XP
  • Locate your ObjectMgr.cpp -> \src\server\game\Globals
  • Scroll down to line 2748

Greetings everyone, this tutorial will explain how to remove the stat cap when making items with stats above 32767.

Requirements :
Steps :
  1. Open Source and Put in the Search Tab " ObjectMgr.cpp " Can be found under \src\server\game\globals.
  2. Edit the file using any of the text editors we mentioned and head to line 2700+.
  3. Now Search for [GetInt16] without [].
  4. You should see something similar to
    itemTemplate.ItemStat.ItemStatValue = int32(fields[29 + i * 4 + 1].GetInt16());
    Plain text
    Select All
    [*]Change [GetInt16] to [GetInt32] without []
    [*]It should now looks like this
    itemTemplate.ItemStat.ItemStatValue = int32(fields[29 + i * 4 + 1].GetInt32());
    Plain text
    Select All
    [*]Recompile your source and put the new worldserver.exe to your core.
    [*]Time to change the database stat_valueX details, so open Any MySQL Editor from above.
    [*]Head to World database where you can find "item_template" now edit that table - design it and find all stat_value1 - 2 etc..
    [*]Now change their type from SMALLINT or whatever you have to INT.
    [*]Close and you're all good to go.
    [*]ALWAYS SAVE BACKUP BEFORE DOING ANYTHING
Don't forget to adjust your MySQL datatype from smallint to mediumint or even int.
What this does is basically increase the number limit (the maximum number allowed per stat).
This needs to be done within item_template.
This needs to be done across all 10 itemstats (stat_value1, stat_value2, stat_value3, etc).

 

JadaDev

reaper-wow.com
Legend
JadaDev Rep
5
0
0
Rep
5
JadaDev Vouches
0
0
0
Vouches
0
Posts
514
Likes
509
Bits
2 YEARS
2 YEARS OF SERVICE
LEVEL 11 100 XP
1671834515017.png
Dunno if you noticed
 

3,386

1,270

9,554

428

Top