This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [Question] Change Player Stats  (Read 1345 times)

Archimoon

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 12
    • View Profile
    • @Twitter
[Question] Change Player Stats
« 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 ?

Archimoon

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 12
    • View Profile
    • @Twitter
Re: [Question] Change Player Stats
« Reply #1 on: June 17, 2017, 01:15:11 pm »
No idea ?

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [Question] Change Player Stats
« Reply #2 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).
« Last Edit: June 17, 2017, 02:54:02 pm by Amaroth »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Archimoon

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 12
    • View Profile
    • @Twitter
Re: [Question] Change Player Stats
« Reply #3 on: June 17, 2017, 06:11:02 pm »
Ok thx for that !
And there a way to change a stat name's and mechanic ?
« Last Edit: June 17, 2017, 06:13:05 pm by Archimoon »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [Question] Change Player Stats
« Reply #4 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.
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

staleness89

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 14
    • View Profile
Re: [Question] Change Player Stats
« Reply #5 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)