Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Archimoon on June 12, 2017, 03:45:27 pm

Title: [Question] Change Player Stats
Post by: Archimoon on June 12, 2017, 03:45:27 pm
Hello !

Is there a way to change the player stats name like "Strength" to "Constitution", the main menu "spells" to "spells skills"..
Create new custom stats, like "power" and the calculation is based of the number of gems ?
Title: Re: [Question] Change Player Stats
Post by: Archimoon on June 17, 2017, 01:15:11 pm
No idea ?
Title: Re: [Question] Change Player Stats
Post by: Amaroth on June 17, 2017, 02:51:13 pm
I'd say your topic was overlooked in huge spam problems.

Go to world database and open player_levelstats table. Thats all you need, you will get to all stats of all race/class combinations on different levels. A few tips:

1. If stats for some level are unknown, stats for the highest level below current one which are found are used. Thats why all level 81+ characters are getting level 80 stats.
2. Do NOT delete stats for level 1. Never, ever. It will cause your server to be unable to run, and it will keep crashing on startup. This is caused by function mentioned above, which is a little bit silly in its design, but whatever. #HateTC2

Apart from these two details, table is pretty straightforward.

There is also player_classlevelstats table. That contains only base mana and base hp for class and level combinations (so this one is not related to races, unlike levelstats one).
Title: Re: [Question] Change Player Stats
Post by: Archimoon on June 17, 2017, 06:11:02 pm
Ok thx for that !
And there a way to change a stat name's and mechanic ?
Title: Re: [Question] Change Player Stats
Post by: Amaroth on June 17, 2017, 07:41:05 pm
That would be more complicated, and I am not entirely sure what would be possible and what not. It may require just minor edits in few DBCs, or it may need quite an extensive edit of some interface files as well, and maybe it isn't possible at all, as some things are just hardcoded in WoW.exe - game client itself.

But you can certainly try. Take a look at GameTable.dbc and DBCs which names start with "gt". I am not familiar with them, so I can't really point you any further. There also might be something more you need to take a look at. Sadly, I am not the best guy to answer this kind of question.
Title: Re: [Question] Change Player Stats
Post by: staleness89 on June 18, 2017, 06:00:09 am
Base stats are handled in the core, in Player.cpp, although I can't recall exactly where within. There you can change which stats (str, agi, etc) give which other stats (damage, crit rating, hit rating etc) and how much. Tooltip texts, and maybe even stat names are located in GlueStrings.xml (for localization purposes)