Item Warning -Online-
#1
Item Warning -Online-

Works ONLINE only. With this code you can choose a desired character animation to execute on screen when a desired item is in play. The character will animate non-stop until the opponent uses the item or pulls the item out to hold/trail it. Nobody can see your character animate. Therefore, nobody knows you are running the code.

NTSC-U
C265EE14 00000003
88030001 1D960004
3D8C8168 980C0193
60000000 00000000
C265EE30 00000003
88100011 1D960004
3D8C8168 980C0193
60000000 00000000
C27BE87C 00000009
9421FFB0 BDC10008
3DC08168 61CE018C
39E000XX 3A00000C
862E0004 7C117800
41820010 3610FFFF
4082FFF0 4800000C
380000YY B01F00F6
A01F00F6 B9C10008
38210050 00000000

PAL
C265E18C 00000003
88030001 1D960004
3D8C8168 980C0193
60000000 00000000
C265E1A8 00000003
88100011 1D960004
3D8C8168 980C0193
60000000 00000000
C27CD2DC 00000009
9421FFB0 BDC10008
3DC08168 61CE018C
39E000XX 3A00000C
862E0004 7C117800
41820010 3610FFFF
4082FFF0 4800000C
380000YY B01F00F6
A01F00F6 B9C10008
38210050 00000000

NTSC-J
C265D7F8 00000003
88030001 1D960004
3D8C8168 980C0193
60000000 00000000
C265D814 00000003
88100011 1D960004
3D8C8168 980C0193
60000000 00000000
C27CC948 00000009
9421FFB0 BDC10008
3DC08168 61CE018C
39E000XX 3A00000C
862E0004 7C117800
41820010 3610FFFF
4082FFF0 4800000C
380000YY B01F00F6
A01F00F6 B9C10008
38210050 00000000

NTSC-K
C264C4A4 00000003
88030001 1D960004
3D8C8168 980C0193
60000000 00000000
C264C4C0 00000003
88100011 1D960004
3D8C8168 980C0193
60000000 00000000
C27BB69C 00000009
9421FFB0 BDC10008
3DC08168 61CE018C
39E000XX 3A00000C
862E0004 7C117800
41820010 3610FFFF
4082FFF0 4800000C
380000YY B01F00F6
A01F00F6 B9C10008
38210050 00000000

XX 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)

YY Values:
00 = Turning
01 = Boosting
02 = Drift left
03 = Drift right
04 = Wheelie
05 = Running
06 = Looking backwards
07 = Idle
08 = Win (two arms)
09 = Win (one arm)
14 = Yeah, I got him!
15 = Lose
17 = Throwing item
1A = Falling
1D = Weird sexual movement
1E = Trick

Source (for just the Item Spy itself, not the two other ASM codes):
stwu r1,-80(r1) # make space for 18 registers
stmw r14,8(r1) # push r14-r31 onto the stack

lis r14, 0x8168 #Set 1st half address that will be -0x4 away from where first item byte is at
ori r14, r14, 0x018C #Set 2nd half of address
li r15, 0xXX #Load XX Item value to Monitor
li r16, 0xC #Max is twelve players so max times for loop is 12 (0xC)

re_check:
lwzu r17, 0x0004 (r14) #First load item value from player slot 0, increase mem location by 0x4 for next loop attempt
cmpw r17, 15 #Compare item value of current read player to monitored item value
beq- item_found #If item monitored is held by opponent, jump to item_found label
subic. r16, 16, 1 #Every time this loop is done, take away 1 from r16
bne+ re_check #As long as r16 does NOT equal 0, jump backwards and redo the loop

b dont_do_shit #If loop runs out and item monitored is not found, jump to dont_do_shit label

item_found:
li r0, 0xYY #Since item is found, load character animation value (YY) into r0
sth r0, 0x00F6 (r31) #Store halfword of r0 to address of r31 plus offset 0xF6

dont_do_shit:
lhz r0, 0x00F6 (r31) #Default ASM, load halfword value from address of r31 plus 0xF6 into r0

lmw r14,8(r1) # pop r14-r31 off the stack
addi r1,r1,80 # release the space

Code creator: Bully
Code contributor(s): zak (improved source)
Reply
#2
Edited..
Reply
#3
Updated, Got the code working. The character will also animate now when you get the desired item yourself. Also, other opponents cannot see your animation therefore nobody will know you are running the item warning.
Reply
#4
Improved (cut down) source code
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)