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: [TrinityCore] Remove/Raise WoW Gold Cap? (WoW 3.3.5)  (Read 2828 times)

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
[TrinityCore] Remove/Raise WoW Gold Cap? (WoW 3.3.5)
« on: April 12, 2015, 12:04:27 am »
Hello everyone.

I see that since cataclysm, the WoW gold cap is 1,000,000.
In WoTLK, the WoW gold cap is somewhere around 200,000.



I was thinking...
Is it possible to raise the gold cap in a TrinityCore WoW 3.3.5 Server?

What files or scripts do I need to edit to change the gold cap or to make it limitless?
Also, if client changes are needed... What files?

Please do help me out on this.

Thank You.
P.S

I don't want to use Gold Cap to Gold Bars.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [TrinityCore] Remove/Raise WoW Gold Cap? (WoW 3.3.5)
« Reply #1 on: April 12, 2015, 11:20:19 am »
214748g 36s 47cp - thats cap I suppose. I don't know how much you know about programming, but thats no simply random number, its int(10) SIGNED maximal value (don't ask me why there is UNSIGNED in database, maybe for removing gold under 0 before it is reset to 0 by core?).

You would need to change structure of some DB tables (if you are lucky, it will be only characters.characters and world.item_template, but I doubt it) and also change data type for all values reffering to money player is carrying in source of emulator. And its very likely that you would also have to change wow.exe itself.

So no simple, I would dare to say impossible task.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
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

spiderwaseem

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 154
    • View Profile
    • http://anarchy-wow.com/
Re: [TrinityCore] Remove/Raise WoW Gold Cap? (WoW 3.3.5)
« Reply #2 on: April 12, 2015, 03:56:41 pm »
Quote from: "Amaroth"
214748g 36s 47cp - thats cap I suppose. I don't know how much you know about programming, but thats no simply random number, its int(10) SIGNED maximal value (don't ask me why there is UNSIGNED in database, maybe for removing gold under 0 before it is reset to 0 by core?).

You would need to change structure of some DB tables (if you are lucky, it will be only characters.characters and world.item_template, but I doubt it) and also change data type for all values reffering to money player is carrying in source of emulator. And its very likely that you would also have to change wow.exe itself.

So no simple, I would dare to say impossible task.

I feel like this task isn't impossible, but won't be done for WoTLK for a long time, and I won't most likely be able to do it. :/

Unless ofc if we all combine forces and do this together, then we could achieve anything. :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [TrinityCore] Remove/Raise WoW Gold Cap? (WoW 3.3.5)
« Reply #3 on: April 12, 2015, 04:22:34 pm »
This is technically possible, but just not feasible at all. You would have to rewrite parts of the client by hand, in assembly. Not only does one need to change the type of that variable at all places (which is a shitload of places), including network packets, you would also have to change the data layout of all objects containing the variable, which is things like the player. This would move all variables behind accordingly, which in turn would require you to adjust all those variables as well.

Even with joint forces, this is a task that would take months for experts on the topic and in assembly. In an non-automated way, it would also likely result in a shitton of hard to spot bugs and constant crashes.

No, this task is not feasible and is definitely on the list of the things that are not achievable.

And I really only talk about extending that variable.

Yes, I know that for changing it to unsigned "only" is "easier". Still, nope.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

whiteshirtguy

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Re: [TrinityCore] Remove/Raise WoW Gold Cap? (WoW 3.3.5)
« Reply #4 on: May 26, 2016, 09:22:23 pm »
Simply by editing all references to MAX_MONEY_AMOUNT in the core, as well as how money is handled in trades, the auction house, as well as the structure for items... I was able to raise it from the maximum of an integer (2147483647) to 421,000-something. It's definitely difficult but exceeding that value would have required moving to the database, as well as the client. I simply rolled my source back to an earlier point and decided to go with the workaround route.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »