Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Room Message Spoofer (Host Only)
- This code will spoof the messages you send in a private room.
- (NTSC-U)
- C2656A38 00000007
- 9421FFB0 BDC10008
- 3DC08000 61CE1654
- 988E0000 89CE0000
- 3C80MM00 6084PP00
- 7C847214 9083000C
- B9C10008 38210050
- 60000000 00000000
- (PAL)
- C265AEC0 00000007
- 9421FFB0 BDC10008
- 3DC08000 61CE1654
- 988E0000 89CE0000
- 3C80MM00 6084PP00
- 7C847214 9083000C
- B9C10008 38210050
- 60000000 00000000
- (NTSC-J)
- C265A52C 00000007
- 9421FFB0 BDC10008
- 3DC08000 61CE1654
- 988E0000 89CE0000
- 3C80MM00 6084PP00
- 7C847214 9083000C
- B9C10008 38210050
- 60000000 00000000
- (NTSC-K)
- C26491D8 00000007
- 9421FFB0 BDC10008
- 3DC08000 61CE1654
- 988E0000 89CE0000
- 3C80MM00 6084PP00
- 7C847214 9083000C
- B9C10008 38210050
- 60000000 00000000
- [MM Values]
- 01 = Start an Event
- # [PP Values]
- # 00 = VS Race
- # 01 = Team VS Race
- # 02 = Ballon Battle
- # 03 = Coin Runners
- 02 = "Player and I are friends now!" Message
- # [PP Value]
- # 00
- 03 = "Here I am!" Message
- # [PP Value]
- # 00
- 04 = Send a Room Message
- # [PP Values]
- # 00 = Hello!
- # ...
- # 5F = See you next time!
- #####################################################
- # Source
- #####################################################
- # r3 = ROOM Record Address
- # r4 = ROOM Record
- #####################################################
- # r14 = ROOM Record Sequence Count
- #####################################################
- #####################################################
- # 8065A52C (NTSC-J) : 9083000C stw r4, 12(r3)
- #####################################################
- stwu r1, -80(r1) # Make space for 18 registers
- stmw r14, 8(r1) # Push r14-r31 onto the stack
- lis r14, 0x8000 # Set the higher 16 bits of r14 (ROOM Record Sequence Count) to 0x8000
- ori r14, r14, 0x1654 # Set the lower 16 bits of r14 (ROOM Record Sequence Count) to 0x1654
- # typedef struct udp_room_t
- # {
- # /*00*/ u8 mode; // Record Mode: 1|2|3|4
- # /*01*/ u8 unknown_01; // Always 0x00
- # /*02*/ u8 param1; // Context dependent on mode
- # /*03*/ u8 sequence_counter; // Increments by 1 for each message sent
- #
- # // mode == 0x01 : Start an event
- # // param1 = Event type : 0x00 == VS Race, 0x01 == Team VS Race, 0x02 == Balloon Battle, 0x03 == Coin Runners
- #
- # // mode == 0x02 : "Player and I are friends now!" message
- # // param1 = 0x00
- #
- # // mode == 0x03 : "Here I am!" message
- # // param1 = 0x00
- #
- # // mode == 0x04 : Send a room message
- # // param1 = Message ID : 00 == Hello! ... 5F == See you next time!
- # }
- # // Source: http://wiki.tockdom.com/wiki/MKWii_Netwo...tocol/ROOM
- stb r4, 0(r14) # Store the byte in r4 (Current Sequence Count) to the address in r14
- lbz r14, 0(r14) # Load the byte at the address in r14 (Current Sequence Count) and store it in r14
- lis r4, 0xMM00 # Set the higher 16 bits of r4 (ROOM Record) to 0xMM00
- ori r4, r4, 0xPP00 # Set the lower 16 bits of r4 (ROOM Record) to 0xPP00
- add r4, r4, r14 # Add the value in r14 to the value in r4, and store the result in r4
- stw r4, 12(r3) # Store the word in r4 to the address in r3 offset by 12
- lmw r14, 8(r1) # Pop r14-r31 off the stack
- addi r1, r1, 80 # Release the space
- Code Creator: Star
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement