256x item selling price glitch: Difference between revisions

From Glitch City Wiki
Jump to navigation Jump to search
Content added Content deleted
>Sherkel
No edit summary
>Sherkel
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Misc Gen 3}}

The '''256x item selling price glitch''' is a [[glitch]] in {{RS}}.
The '''256x item selling price glitch''' is a [[glitch]] in {{RS}}.


Line 4: Line 6:


==Summary==
==Summary==
When selling over 256 of an item, although the correct sell price is displayed (both before and after selling,) the actual amount of money received does not match it. This amount is the displayed number modulo 256 (i.e. the lower byte). Effectively, the total cost for every 256 of the item is ignored.
When selling over 256 of an item, although the correct sell price is displayed (both before and after selling), the actual amount of money received does not match it. This amount is calculated not with the actual number of items sold, but with this number modulo 256 (i.e. the lower byte). Effectively, the total cost for every 256 of the item is ignored.


For example, Berries cost 10 Pokédollars each. If 258 were sold, the total amount of money gained in this case would be 10 * 2 Pokédollars, or 20 Pokédollars (a loss of 2560 Pokédollars), as the group of 256 are not counted. In another example, if 999 were sold, the total amount of money gained would be (999 modulo <!-- % or "modulo"? Actually, shoot, that's probably been brought up in the thread. --> 256) * 10 or 2310 Pokédollars<!-- (as 768 is the highest multiple of 256 in 999 and must be ignored in the total price) --I don't think it's necessary to explain what modulo is here -->.
For example, Berries cost 10 Pokédollars each. If 258 were sold, the total amount of money gained in this case would be 10 * 2 Pokédollars, or 20 Pokédollars (a loss of 2560 Pokédollars), as the group of 256 are not counted. In another example, if 999 were sold, the total amount of money gained would be (999 modulo <!-- % or "modulo"? Actually, shoot, that's probably been brought up in the thread. --> 256) * 10 or 2310 Pokédollars<!-- (as 768 is the highest multiple of 256 in 999 and must be ignored in the total price) --I don't think it's necessary to explain what modulo is here -->.

Latest revision as of 09:49, 16 November 2019

Miscellaneous glitches of Pokémon Ruby and Sapphire, Pokémon FireRed and LeafGreen and Pokémon Emerald


The 256x item selling price glitch is a glitch in Pokémon Ruby and Sapphire.

Under normal circumstances, it only occurs with Berries, the only items possible to have over 99 of without using a cheating device or glitches.

Summary

When selling over 256 of an item, although the correct sell price is displayed (both before and after selling), the actual amount of money received does not match it. This amount is calculated not with the actual number of items sold, but with this number modulo 256 (i.e. the lower byte). Effectively, the total cost for every 256 of the item is ignored.

For example, Berries cost 10 Pokédollars each. If 258 were sold, the total amount of money gained in this case would be 10 * 2 Pokédollars, or 20 Pokédollars (a loss of 2560 Pokédollars), as the group of 256 are not counted. In another example, if 999 were sold, the total amount of money gained would be (999 modulo 256) * 10 or 2310 Pokédollars.

YouTube video

YouTube video by ChickasaurusGL