- 352
- Posts
- 8
- Years
- Seen Mar 10, 2022
This is the routine to delete the last item used before a successful catch (the PokéBall), but if I'm on the Safari Zone and I'm fishing, the last item used is the Rod, then it disappears, I want someone to fix this routine to check if the item is a PokéBall to delete or make a flag check to enable and disable this routine, then I will enable the flag when the player enters on the Safari Zone then disable when it leaves. The flag check must be inversed, when I use the "setflag" it will be DISABLED, then when I use the "clearflag" it will be ENABLED again.
That is the routine:
That is the routine:
Spoiler:
.text
.align 2
.thumb
main:
bl deleteball
mov r9, r4
pop {r4-r7}
pop {r0}
bx r0
deleteball:
ldr r0, var_800E
ldrh r0, [r0]
mov r1, #1
ldr r2, =(0x809A1D9)
bx r2
.align 2
var_800E: .word 0x0203AD30
.align 2
.thumb
main:
bl deleteball
mov r9, r4
pop {r4-r7}
pop {r0}
bx r0
deleteball:
ldr r0, var_800E
ldrh r0, [r0]
mov r1, #1
ldr r2, =(0x809A1D9)
bx r2
.align 2
var_800E: .word 0x0203AD30
Last edited: