01-18-2008, 10:27 PM
Quote:What I wonder is if the Guild Banks are also limited to that number. I would hope they'd make it larger capacity but we will shortly see.
I expect that the guild banks are at the same limit. That value is as Lissa listed a signed 32 bit number (Long DWORD). The only way they can make it larger, which is a possibility, is to use an unsigned Long DWORD to store the value.
A signed 32 bit number uses the first bit for the sign and leaves 31 bits for value. 2^31 = 2147483648 =214,748 gold, 36 silver, 48 copper.
An unsigned 32 bit value would allow 2^32 = 4294967296 = 429,496 gold, 72 silver, 96 copper.
But this would usually require quite bit of checks each time that money is added to that value to avoid possible wraparound of the value. For example if it was an usigned storage amount, then if you added 3 copper to 429,496 gold, 72 silver, 96 copper; the resulting amount of money would end up being 2 copper total. Those types of checks to avoid that condition can be a lot more involved than the types of checks that are needed witht the current system; a potentinally sever performance hit if this is accessed as frequently as players are typically looting bodies on a server.