Mario Kart Wii Gecko Codes, Cheats, & Hacks
Start with Items [CLF78, Fynn935083] - Printable Version

+- Mario Kart Wii Gecko Codes, Cheats, & Hacks (https://mkwii.com)
+-- Forum: Cheat Codes (https://mkwii.com/forumdisplay.php?fid=51)
+--- Forum: Incomplete & Outdated Codes (https://mkwii.com/forumdisplay.php?fid=60)
+--- Thread: Start with Items [CLF78, Fynn935083] (/showthread.php?tid=1812)



Start with Items [CLF78, Fynn935083] - Fynn935083 - 04-06-2021

This is a Gecko Code Create by me and CLF78. It was made for Fynn935083's in-progress custom Gamemode "Catch". This gives you the Item you set after the Countdown

*NTSC-U, NTSC-K and NTSC-J wasn't tested!

PAL:
C2535C7C 0000000F
901D0048 2C030000
40A2006C 3C60809C
886338B9 2C030001
4082002C 3C60809C
806320D8 38830038
8063291C 1C630058
7C641A14 88830021
88A30022 7C042800
40A20034 3C60809C
8063D728 88630B84
1C630248 3C80809C
80843618 80840014
7C632214 388000XX
9083008C 38800001
90830090 00000000

NTSC-U:
C2531130 0000000F
901D0048 2C030000
40A2006C 3C60809C
8863F0B1 2C030001
4082002C 3C60809C
8063D918 38830038
8063291C 1C630058
7C641A14 88830021
88A30022 7C042800
40A20034 3C60809C
80638F68 88630B84
1C630248 3C80809C
8084EE20 80840014
7C632214 388000XX
9083008C 38800001
90830090 00000000

NTSC-K:
C2523CD0 0000000F
901D0048 2C030000
40A2006C 3C60809C
88632919 2C030001
4082002C 3C60809C
80631138 38830038
8063291C 1C630058
7C641A14 88830021
88A30022 7C042800
40A20034 3C60809C
8063C788 88630B84
1C630248 3C80809C
80842678 80840014
7C632214 388000XX
9083008C 38800001
90830090 00000000

NTSC-J:
C2535600 0000000F
901D0048 2C030000
40A2006C 3C60809B
88631EF9 2C030001
4082002C 3C60809B
80630718 38830038
8063291C 1C630058
7C641A14 88830021
88A30022 7C042800
40A20034 3C60809B
8063BD68 88630B84
1C630248 3C80809B
80841C58 80840014
7C632214 388000XX
9083008C 38800001
90830090 00000000

XX Values:
Green Shell = 00
Red Shell = 01
Banana = 02
Fake Item Box = 03
Mushroom = 04
Triple Mushroom = 05
Bob-omb = 06
Blue Shell = 07
Shock = 08
Star = 09
Golden Mushroom = 0A
Mega Mushroom = 0B
Blooper = 0C
POW = 0D
Thunder Cloud = 0E
Bullet Bill = 0F
Triple Green Shell = 10
Triple Red Shell = 11
Triple Banana = 12

Code:
Source Code:

# Inject at 80535C7C



.set Racedata, 0x809BD728

.set ItemHolder, 0x809C3618

.set RKNetController, 0x809C20D8

.set isOnlineRace, 0x809C38B9



# Original instruction

stw r0, 0x48(r29)



# Check if timer is 0

cmpwi r3, 0

bne+ end



# Check if it's an online race

lis r3, isOnlineRace@ha

lbz r3, isOnlineRace@l(r3)

cmpwi r3, 1

bne offline



# Check if i'm the host

lis r3, RKNetController@ha

lwz r3, RKNetController@l(r3)



# Get offset of first sub

addi r4, r3, 0x38



# Get current sub

lwz r3, 0x291C(r3)

mulli r3, r3, 0x58

add r3, r4, r3



# Check if i'm the host

lbz r4, 0x21(r3)

lbz r5, 0x22(r3)

cmpw r4, r5

bne+ end



# Get my player id

offline:

lis r3, Racedata@ha

lwz r3, Racedata@l(r3)

lbz r3, 0xB84(r3)

mulli r3, r3, 0x248



# Get my ItemController

lis r4, ItemHolder@ha

lwz r4, ItemHolder@l(r4)

lwz r4, 0x14(r4)

add r3, r3, r4



# Store Item

li r4, 0xC*

stw r4, 0x8C(r3)

li r4, 1

stw r4, 0x90(r3)



# Return

end:



RE: Start with Blooper [CLF78, Fynn935083] - Seeky - 04-06-2021

This just took a while to be approved (sorry), no need to post it again :p
Needs ports for all regions before it can be posted out of the incomplete code section


RE: Start with Blooper [CLF78, Fynn935083] - Fynn935083 - 04-06-2021

Yeah I'm porting it later today


RE: Start with Items [CLF78, Fynn935083] - Vega - 04-06-2021

Nice code.