Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Perfect Replace Item with Shared Item
#1
Perfect Replace Item with Shared Item

This code will replace an item that you receive from the roulette, to a legitimate random one. It is undetectable.

(NTSC-U)
# Single Item
C27AB704 00000004
2C0300RR 40820014
3D80807A 618CB6E4
7D8803A6 4E800020
90770020 00000000

# Multiple Items
C27AB704 00000007
2C0300RR 40820014
3D80807A 618CB6E4
7D8803A6 4E800020
2C0300RR 40820014
3D80807A 618CB6E4
7D8803A6 4E800020
90770020 00000000

(PAL)
# Single Item
C27BA164 00000004
2C0300RR 40820014
3D80807B 618CA144
7D8803A6 4E800020
90770020 00000000

# Multiple Items
C27BA164 00000007
2C0300RR 40820014
3D80807B 618CA144
7D8803A6 4E800020
2C0300RR 40820014
3D80807B 618CA144
7D8803A6 4E800020
90770020 00000000

(NTSC-J)
# Single Item
C27B97D0 00000004
2C0300RR 40820014
3D80807B 618C97B0
7D8803A6 4E800020
90770020 00000000

# Multiple Items
C27B97D0 00000007
2C0300RR 40820014
3D80807B 618C97B0
7D8803A6 4E800020
2C0300RR 40820014
3D80807B 618C97B0
7D8803A6 4E800020
90770020 00000000

(NTSC-K)
# Single Item
C27A8524 00000004
2C0300RR 40820014
3D80807A 618C8504
7D8803A6 4E800020
90770020 00000000

# Multiple Items
C27A8524 00000007
2C0300RR 40820014
3D80807A 618C8504
7D8803A6 4E800020
2C0300RR 40820014
3D80807A 618C8504
7D8803A6 4E800020
90770020 00000000

[RR Values]
00 = Green Shell
01 = Red Shell
02 = Banana
03 = Fake Item Box
04 = Mushroom
05 = Triple Mushroom
06 = Bob-omb
07 = Blue Shell
08 = Lightning
09 = Star
0A = Golden Mushroom
0B = Mega Mushroom
0C = Blooper
0D = POW Block
0E = Thunder Cloud
0F = Bullet Bill
10 = Triple Green Shells
11 = Triple Red Shells
12 = Triple Bananas
14 = No Item Available (Mushroom)



# Source
# 807B97B0 (NTSC-J) - Item Roulette Function
# 807B97D0 (NTSC-J) - Store Item Received
# r3 = Item player will receive
# Item Definitions
.set ITEM_GREENSHELL, 0x0
.set ITEM_REDSHELL, 0x1
.set ITEM_BANANA, 0x2
.set ITEM_FAKEITEMBOX, 0x3
.set ITEM_MUSHROOM, 0x4
.set ITEM_TRIPLEMUSHROOM, 0x5
.set ITEM_BOBOMB, 0x6
.set ITEM_BLUESHELL, 0x7
.set ITEM_LIGHTNING, 0x8
.set ITEM_STAR, 0x9
.set ITEM_GOLDENMUSHROOM, 0xA
.set ITEM_MEGAMUSHROOM, 0xB
.set ITEM_BLOOPER, 0xC
.set ITEM_POWBLOCK, 0xD
.set ITEM_THUNDERCLOUD, 0xE
.set ITEM_BULLETBILL, 0xF
.set ITEM_TRIPLEGREENSHELLS, 0x10
.set ITEM_TRIPLEREDSHELLS, 0x11
.set ITEM_TRIPLEBANANAS, 0x12
.set ITEM_NOITEM_MUSHROOM, 0x14

cmpwi r3, ITEM_TO_REPLACE # Compare the word in r3 to the item we want to replace
bne- branch_store_item # If it is not equal, store the item

# If it is equal
lis r12, 0x807B # Set the higher 16 bits of r12 to 0x807B
ori r12, r12, 0x97B0 # Set the lower 16 bits of r12 to 0x97B0
mtlr r12 # Move the address in r12 into the link register
blr # Branch to link register

branch_store_item:
stw r3, 32(r23) # Store the word in r3 to the address in r23 offset by 32



Code Creator: Star
Code Credits: Guru (Shared Item Code)
Reply
#2
The ultimate code ^__^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)