Gold Cap 2147483647 Grumbo'z Fix
Page 1 of 1
Gold Cap 2147483647 Grumbo'z Fix
as we all know a players gold limit is a uint32 value with a max limit of 2147483647 copper.
so far all the fixes out there are ... well.... kinda noobish.
so after some research and a better understanding of the possible conflicts .
I re-wrote the whole ModifyMoney() method. when ever a player receives +/- copper the method will now check if its at or above the limit and convert the value to an uint64 THEN calculate for compensation. now all I have to do is make an item worth 50k gold buy/sell and add the id to the worldserver.conf file. yea no re-compiling every time you decide to use a different item, just change it in the worldserver.conf and restart core.
we will currently be using the item `Wolf Coin` worth 50k gold.
it will automatically use the Sell Price of the item to calculate how many to compensate the player with.
this also has the guild looter added to it . now x.x% of all profits will go to a player guild bank. currently set to 0.05%.
exclusively only for realm 1.
Admin,
Grumbo
so far all the fixes out there are ... well.... kinda noobish.
so after some research and a better understanding of the possible conflicts .
I re-wrote the whole ModifyMoney() method. when ever a player receives +/- copper the method will now check if its at or above the limit and convert the value to an uint64 THEN calculate for compensation. now all I have to do is make an item worth 50k gold buy/sell and add the id to the worldserver.conf file. yea no re-compiling every time you decide to use a different item, just change it in the worldserver.conf and restart core.
we will currently be using the item `Wolf Coin` worth 50k gold.
it will automatically use the Sell Price of the item to calculate how many to compensate the player with.
this also has the guild looter added to it . now x.x% of all profits will go to a player guild bank. currently set to 0.05%.
exclusively only for realm 1.
Admin,
Grumbo
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|
Fri Nov 15, 2019 8:00 pm by Grumbo
» TrinityCore 2 Gold Max Work-Around
Tue Mar 21, 2017 9:14 pm by Grumbo
» [CPP][Conv] Dedicated World Chat Channel
Tue Mar 21, 2017 8:56 pm by Grumbo
» Cool [CPP] Grumbo'z VIP System
Tue Mar 21, 2017 8:03 pm by Grumbo
» [CPP] EmuDevs Premium System
Tue Mar 21, 2017 7:18 pm by Grumbo
» [TC]255 server stats edit! By Frost - Thanx
Tue Mar 21, 2017 6:27 pm by Grumbo
» [Eluna] Grumbo`z VIP System
Tue Mar 21, 2017 6:20 pm by Grumbo
» [CPP] Grumbo'z Capture the Flag System
Tue Mar 21, 2017 5:14 pm by Grumbo
» Black Wolfs Den
Mon Mar 20, 2017 10:07 pm by Grumbo