Keywords

Latest topics
» 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

» [CPP] Patchless Item Extended Costs
Thu Mar 16, 2017 9:11 pm by Grumbo

September 2017
MonTueWedThuFriSatSun
    123
45678910
11121314151617
18192021222324
252627282930 

Calendar Calendar

Affiliates

free forum

Forumotion on Facebook Forumotion on Twitter Forumotion on YouTube Forumotion on Google+


Gold Cap 2147483647 Grumbo'z Fix

View previous topic View next topic Go down

Gold Cap 2147483647 Grumbo'z Fix

Post by Grumbo on Wed Dec 03, 2014 7:43 pm

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.
Very Happy
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
avatar
Grumbo
Admin
Admin

Posts : 94
Points : 231
Join date : 2014-08-21
Location : Pocatello Idaho

View user profile http://blackwolfsden.dnsdynamic.net/

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum