JForums Bypass 32767 Stats for Items (32k) in TrinityCore (Page 1)

Bypass 32767 Stats for Items (32k) in TrinityCore

Profile Picture
jadadev
(Admin)

  • 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


Posted on 2024-09-12 09:48:21

86 Views

Replies:

Profile Picture
jadadev
(Admin)

In the Latest TrinityCore Eluna you can find it in the 3021 Line.

itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt16());

change to : 

itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt32());

Posted on 2024-11-08 12:35:37


Reply to this thread:

Login to reply