Grab Items With Airdodge

Joined
Nov 9, 2014
Messages
664
#1
https://lbda.net/hvF.mp4

Code:
$Grab Items With Airdodge [UnclePunch]
C2099AC0 0000000A
83E3002C 801F1974
2C000000 40820038
7FA3EB78 38800001
3D808009 618C42A0
7D8903A6 4E800421
7C641B79 41820018
7FA3EB78 3D80800D
618C6F58 7D8903A6
4E800421 7FA3EB78
60000000 00000000
Code:
#To be inserted at 80099ac0
.include "../Common.s"

.set  REG_PlayerGObj,29
.set  REG_PlayerData,31

lwz    REG_PlayerData, 0x002C (r3)

#Check if holding an item
  lwz    r0, 0x1974 (REG_PlayerData)
  cmpwi r0,0
  bne Exit
#Check if item nearby
  mr  r3,REG_PlayerGObj
  li  r4,1
  branchl r12,0x800942a0
  mr. r4,r3
  beq Exit
#Give item
  mr  r3,REG_PlayerGObj
  branchl r12,0x800d6f58

Exit:
  mr  r3,REG_PlayerGObj
 
Last edited:
Top Bottom