"At gold limit"
#8
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.
Reply


Messages In This Thread
"At gold limit" - by Arnulf - 01-18-2008, 01:25 PM
"At gold limit" - by Arethor - 01-18-2008, 01:49 PM
"At gold limit" - by Lissa - 01-18-2008, 03:04 PM
"At gold limit" - by NiteFox - 01-18-2008, 03:25 PM
"At gold limit" - by Concillian - 01-18-2008, 06:34 PM
"At gold limit" - by LochnarITB - 01-18-2008, 07:00 PM
"At gold limit" - by Bolty - 01-18-2008, 09:16 PM
"At gold limit" - by Ruvanal - 01-18-2008, 10:27 PM
"At gold limit" - by Sir_Die_alot - 01-23-2008, 05:30 AM
"At gold limit" - by Swiss Mercenary - 01-23-2008, 09:09 PM
"At gold limit" - by NiteFox - 01-23-2008, 09:21 PM
"At gold limit" - by RTM - 01-24-2008, 01:35 PM
"At gold limit" - by Taelas - 01-24-2008, 03:38 PM
"At gold limit" - by Zarathustra - 01-30-2008, 09:31 PM
"At gold limit" - by Lissa - 01-30-2008, 09:41 PM
"At gold limit" - by Arethor - 01-31-2008, 07:03 PM
"At gold limit" - by Lissa - 01-31-2008, 08:40 PM
"At gold limit" - by Arethor - 01-31-2008, 09:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)