(shops) Cash roll over bug

Started by The Crazy Animal, October 24, 2006, 03:00:49 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

October 24, 2006, 03:00:49 AM Last Edit: March 24, 2007, 04:28:03 PM by The Crazy Animal
Though this was a good one.

[HP=1520/MA=826]:i
You are carrying 1410 runic coins, 6 platinum pieces, 54 gold crowns, 8 copper
farthings, feather-tipped hat (Head), black velvet gloves (Hands), mithril ring (Finger), platinum ring (Finger), brown leather boots (Feet), platinum bracers
(Arms), faith keeper (Back), sunburst necklace (Neck), skirts of flame (Legs),
golden braided belt (Waist), shining metallic robes (Torso), large silvery
cross (Off-Hand), sunstone wristband (Wrist), mithril earrings (Ears), severed
head of Irikani (Worn), nexus blade (Weapon Hand), 108 adamantite katana
You have no keys.
Wealth: 1410065408 copper farthings
Encumbrance: 23270/4800 - Heavy [484%]
[HP=1520/MA=826]:sell 108 kata
You sold 108 adamantite katanas for -1389934592 copper farthings.


Second attempt:

[HP=1520/MA=826]:i
You are carrying 20 runic coins, 13 platinum pieces, 8 gold crowns, 1 silver
noble, 6 copper farthings, feather-tipped hat (Head), black velvet gloves
(Hands), mithril ring (Finger), platinum ring (Finger), brown leather boots
(Feet), platinum bracers (Arms), faith keeper (Back), sunburst necklace (Neck), skirts of flame (Legs), golden braided belt (Waist), shining metallic robes
(Torso), large silvery cross (Off-Hand), sunstone wristband (Wrist), mithril
earrings (Ears), severed head of Irikani (Worn), nexus blade (Weapon Hand), 103 adamantite katana
You have no keys.
Wealth: 20130816 copper farthings
Encumbrance: 21794/4800 - Heavy [454%]
[HP=1520/MA=826]:sell 103 kat
You sold 103 adamantite katanas for -1723264592 copper farthings.
[HP=1520/MA=826]:i
You are carrying feather-tipped hat (Head), black velvet gloves (Hands),
mithril ring (Finger), platinum ring (Finger), brown leather boots (Feet),
platinum bracers (Arms), faith keeper (Back), sunburst necklace (Neck), skirts
of flame (Legs), golden braided belt (Waist), shining metallic robes (Torso),
large silvery cross (Off-Hand), sunstone wristband (Wrist), mithril earrings
(Ears), severed head of Irikani (Worn), nexus blade (Weapon Hand)
You have no keys.
Wealth: -1703133776 copper farthings
Encumbrance: 590/4800 - None [12%]


We could maybe do a check on the total amount of the items and if it is over a certain amount we could have the shopkeeper say something like "I can't afford those" or "That's too large of a transaction"


TGS v1.0 (coming soon)

Quote from: Vitoc on October 24, 2006, 11:23:00 AM
We could maybe do a check on the total amount of the items and if it is over a certain amount we could have the shopkeeper say something like "I can't afford those" or "That's too large of a transaction"

It actually has less to do with the number of items and more with the value of the items. I think my example might have flipped a few times because I had managed to flip it with less of those swords prior.

If shops go on a budget like I'd like in the long run, that would fix it anyway. So technically this is one of those problems where you could actual set in the ground work for future changes. What I was thinking was that we could put them on a default budget and just have the budget reset for now after each transaction. So when ever the new budget field is empty it would then follow that default rule since we would need something like that for MMUD legacy compliance anyway. The message it should give is basically what you suggest something like, ?I?m sorry but I can't afford those right now.? I?m not sure though what a good default amount should be though I was thinking maybe 999 runic but I?m just not sure.

Also I have a feeling that the same bug is going to exist at the character inventory level there is bound to be a point where the amount of coins you carry flips or the total value of coins flip. Its something we really should check on. I know I hit a point where dropping a certain amount of coins was not recognized already but I just haven?t tested it enough to find the threshold value.