Mario Kart Wii Gecko Codes, Cheats, & Hacks
In-Race Room Size & Position Based Shared Item Code [Unnamed] - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mariokartwii.com)
+-- Forum: Cheat Codes (https://mariokartwii.com/forumdisplay.php?fid=51)
+--- Forum: Online; Item (https://mariokartwii.com/forumdisplay.php?fid=57)
+--- Thread: In-Race Room Size & Position Based Shared Item Code [Unnamed] (/showthread.php?tid=1440)



In-Race Room Size & Position Based Shared Item Code [Unnamed] - Unnamed - 01-24-2020

In-Race Room Size & Position Based Shared Item Code [Unnamed]

This is the "Shared Item" version of Vegas "Perfect Item Code". It will only allow you to get your cheated item if and only if you are in the correct position for the current in-race room size.

Since this code is based on the "Shared Item Code", it breaks the same item rules as the original code.


NTSC-U
C27ACBC8 00000004
7D641A14 398000VV
7D6C5A14 A18B0000
3D608000 918B1578
2C000000 00000000
C27AB704 00000004
3D608000 818B1578
2C0C0000 41820008
386000WW 90770020
60000000 00000000

PAL
C27BB628 00000004
7D641A14 398000VV
7D6C5A14 A18B0000
3D608000 918B1578
2C000000 00000000
C27BA164 00000004
3D608000 818B1578
2C0C0000 41820008
386000WW 90770020
60000000 00000000

NTSC-J
C27BAC94 00000004
7D641A14 398000VV
7D6C5A14 A18B0000
3D608000 918B1578
2C000000 00000000
C27B97D0 00000004
3D608000 818B1578
2C0C0000 41820008
386000WW 90770020
60000000 00000000

NTSC-K
C27A99E8 00000004
7D641A14 398000VV
7D6C5A14 A18B0000
3D608000 918B1578
2C000000 00000000
C27A8524 00000004
3D608000 818B1578
2C0C0000 41820008
386000WW 90770020
60000000 00000000

VV Item Values:
Green = 00
Red = 02
Banana = 04
Fib = 06
Shroom = 08
Triple Shroom = 0A
Bomb = 0C
Blue = 0E
Shock = 10
Star = 12
Golden = 14
Mega = 16
Blooper = 18
Pow = 1A
TC = 1C
Bullet Bill = 1E
Triple Green = 20
Triple Red = 22
Triple Banana = 24

WW is half of VV.



ASM Sources:

--------------------------------------------------------------------------------------------------------------------------------------------------------------------

###### 1st ASM - Item Probability Store ASM #######
Adresses:
807ACBC8  ## NTSC-U
807BB628  ## PAL
807BAC94  ## NTSC-J
807A99E8  ## NTSC-K

add r11, r4, r3 ## Add r3 and r4 together. You are now at the green shell halfword for your current position on the game's item table.
li r12, 0xVV ## Load Users Item Value VV into r12.
add r11, r12, r11 ## Add r11 and r12 (Item value) to get exact item's halfword prob. location on the game's table.
lhz r12, 0 (r11) ## Load the Probability from the game's Table into r12.
lis r11, 0x8000
stw r12, 0x1578 (r11) ## Store Probability to Memory Adress 80001578.
cmpwi r0, 0 ## Default instruction.

###### 2nd ASM - Shared Item ASM #########
Adresses:
807AB704  ## NTSC-U
807BA164  ## PAL
807B97D0  ## NTSC-J
807A8524  ## NTSC-K

lis r11, 0x8000
lwz r12, 0x1578 (r11) ## Load the Item Probability from Memory Adress 80001578.
cmpwi r12, 0
beq- no_go ## If the Item Probability is 0, we know you cannot get the item for that position for the current in-race room size. Jump to no_go.

li r3, 0xWW ## Load Item WW in r3, typical Shared Item code.

no_go:
stw r3, 0x0020 (r23) ## Default instruction.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------


Code created by: Unnamed
Code Credits: XeR (adress founder of the first ASM), Guru (adress founder of the second ASM)