Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Arbitrary Length Integers (https://forums.graalonline.com/forums/showthread.php?t=85190)

Inverness 04-18-2009 01:51 AM

Arbitrary Length Integers
 
We need these. Some of us on Valikorlia just realized that there would be a limit to the player.mud.gold variable. I propose only have the arbitrary length integer be used when the normal integer goes over the limit or if you append 'L' to an integer literal.

Skyld 04-18-2009 03:15 AM

Wait. Why exactly is this needed?
Quote:

Originally Posted by Inverness
just realized that there would be a limit to the player.mud.gold variable

Exactly what sort of stupidly long number are you storing here that you can't possibly store in some better fashion?

Inverness 04-18-2009 04:17 AM

Quote:

Originally Posted by Skyld (Post 1484736)
Wait. Why exactly is this needed?

Exactly what sort of stupidly long number are you storing here that you can't possibly store in some better fashion?

I don't like your tone young man.

Anyhow, this is planning for the future more like, I suppose I would have to place a limit on item stack sizes in this case and not use a variable for gold. And the stupidly long number happens to be the contents of a national treasury.

Skyld 04-18-2009 04:26 AM

Quote:

Originally Posted by Inverness
the stupidly long number happens to be the contents of a national treasury.

You are storing the national treasury in player.mud.gold? :confused: Yuck.

Inverness 04-18-2009 04:34 AM

Quote:

Originally Posted by Skyld (Post 1484748)
You are storing the national treasury in player.mud.gold? :confused: Yuck.

Lol, no. Mud objects are used to hold items and such, and are bound to Graal objects, the player's mud object is at player.mud. The mud object for a treasury would be bound to a database npc most likely.

Edit: Though multiple stacks doesn't help too much since you would not be able to count the total of all stacks.


All times are GMT +2. The time now is 06:50 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.