First of all, Before you do any changes to DB you need to edit the source.
Go to src/server/game/Globals/ObjectMGR.cpp
Find row 2274 and you should see the following code
Code:
for (uint8 i = 0; i < itemTemplate.StatsCount; ++i)
{
itemTemplate.ItemStat[i].ItemStatType = uint32(fields[28 + i*2].GetUInt8());
itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt16());
}
Change that to
Code:
for (uint8 i = 0; i < itemTemplate.StatsCount; ++i)
{
itemTemplate.ItemStat[i].ItemStatType = uint32(fields[28 + i*2].GetUInt8());
itemTemplate.ItemStat[i].ItemStatValue = int32(fields[29 + i*2].GetInt32());
}
Aften you have done this changes you will need a recompile. When the server is recompiled start your MySQL Console. When MySQL Console is open then open HeidiSQL(i will only explain this for HeidiSQL).
find table "item_template" and then go to the tab "Table: item_template".
When you are on that tab scroll down until you see stat_value* (* means 1, 2, 3, 4 etc...).
When you find it you will see SmallINT next to it. Change the SmallINT to INT and save.