
March 26th, 2012, 05:32 PM
|
 |
ASM is my life now...
|
|
Join Date: May 2008
Location: Portugal
Age: 18
Gender:
Male
Nature: Timid
|
|
Quote:
Originally Posted by RicePigeonKKM
EDIT: In Fire Red, after disassembling the routine at 809a1f8, it seems that the value of 1 is subtracted from the item amount in r0. Changing this to 0 will cause the TM to not be consumed, but it will do the same for all items as well...
|
Well, to put it blunt, item index is passed through r4. Make a branch at that offset you mentioned and check if r4 is between tm01 and tm50 item values:
If yes, then don't subtract anything. If not, subtract 1 like normal items.
~Sonic1
__________________
My Site (UNDER CONSTRUCTION):
(mage by Xryo)
PORTUGUESE USER 
Sou o Dark rayquaza da antiga myutsu.net
My Laptop SPECS:
Credits to Eagledelt for the wonderfull sign :D
|