daily pastebin goal
7%
SHARE
TWEET

Replace Item with Shared Item

a guest Dec 6th, 2018 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Replace Item with Shared Item
  2.  
  3. This code will replace an item that you receive from the roulette, to one of your choosing. I originally created it to avoid getting Thunder Clouds. It is undetectable if the item replaced is one that can legitimately be received in your current position.
  4.  
  5. (NTSC-U)
  6. # Single Item
  7. 2834XXXX YYYYZZZZ
  8. C27AB704 00000003
  9. 2C0300RR 40A20008
  10. 386000WW 90770020
  11. 60000000 00000000
  12. E0000000 00000000
  13. 2834XXXX YYYYZZZZ
  14. 047AB704 90770020
  15. E0000000 80008000
  16.  
  17. # Multiple Items
  18. 2834XXXX YYYYZZZZ
  19. C27AB704 00000005
  20. 2C0300RR 40A2000C
  21. 386000WW 48000010
  22. 2C0300RR 40A20008
  23. 386000WW 90770020
  24. 60000000 00000000
  25. E0000000 00000000
  26. 2834XXXX YYYYZZZZ
  27. 047AB704 90770020
  28. E0000000 80008000
  29.  
  30. (PAL)
  31. # Single Item
  32. 2834XXXX YYYYZZZZ
  33. C27BA164 00000003
  34. 2C0300RR 40A20008
  35. 386000WW 90770020
  36. 60000000 00000000
  37. E0000000 00000000
  38. 2834XXXX YYYYZZZZ
  39. 047BA164 90770020
  40. E0000000 80008000
  41.  
  42. # Multiple Items
  43. 2834XXXX YYYYZZZZ
  44. C27BA164 00000005
  45. 2C0300RR 40A2000C
  46. 386000WW 48000010
  47. 2C0300RR 40A20008
  48. 386000WW 90770020
  49. 60000000 00000000
  50. E0000000 00000000
  51. 2834XXXX YYYYZZZZ
  52. 047BA164 90770020
  53. E0000000 80008000
  54.  
  55. (NTSC-J)
  56. # Single Item
  57. 2834XXXX YYYYZZZZ
  58. C27B97D0 00000003
  59. 2C0300RR 40A20008
  60. 386000WW 90770020
  61. 60000000 00000000
  62. E0000000 00000000
  63. 2834XXXX YYYYZZZZ
  64. 047B97D0 90770020
  65. E0000000 80008000
  66.  
  67. # Multiple Items
  68. 2834XXXX YYYYZZZZ
  69. C27B97D0 00000005
  70. 2C0300RR 40A2000C
  71. 386000WW 48000010
  72. 2C0300RR 40A20008
  73. 386000WW 90770020
  74. 60000000 00000000
  75. E0000000 00000000
  76. 2834XXXX YYYYZZZZ
  77. 047B97D0 90770020
  78. E0000000 80008000
  79.  
  80. (NTSC-K)
  81. # Single Item
  82. 2833XXXX YYYYZZZZ
  83. C27A8524 00000003
  84. 2C0300RR 40A20008
  85. 386000WW 90770020
  86. 60000000 00000000
  87. E0000000 00000000
  88. 2833XXXX YYYYZZZZ
  89. 047A8524 90770020
  90. E0000000 80008000
  91.  
  92. # Multiple Items
  93. 2833XXXX YYYYZZZZ
  94. C27A8524 00000005
  95. 2C0300RR 40A2000C
  96. 386000WW 48000010
  97. 2C0300RR 40A20008
  98. 386000WW 90770020
  99. 60000000 00000000
  100. E0000000 00000000
  101. 2833XXXX YYYYZZZZ
  102. 047A8524 90770020
  103. E0000000 80008000
  104.  
  105. [Values]
  106. RR = Item to Replace
  107. WW = Item Replaced With
  108.  
  109. 00 = Green Shell
  110. 01 = Red Shell
  111. 02 = Banana
  112. 03 = Fake Item Box
  113. 04 = Mushroom
  114. 05 = Triple Mushroom
  115. 06 = Bob-omb
  116. 07 = Blue Shell
  117. 08 = Lightning
  118. 09 = Star
  119. 0A = Golden Mushroom
  120. 0B = Mega Mushroom
  121. 0C = Blooper
  122. 0D = POW Block
  123. 0E = Thunder Cloud
  124. 0F = Bullet Bill
  125. 10 = Triple Green Shells
  126. 11 = Triple Red Shells
  127. 12 = Triple Bananas
  128. 14 = No Item Available (Mushroom)
  129.  
  130.  
  131.  
  132. # Source
  133. # r3 = Item player will receive
  134. # Item Definitions
  135. .set ITEM_GREENSHELL, 0x0
  136. .set ITEM_REDSHELL, 0x1
  137. .set ITEM_BANANA, 0x2
  138. .set ITEM_FAKEITEMBOX, 0x3
  139. .set ITEM_MUSHROOM, 0x4
  140. .set ITEM_TRIPLEMUSHROOM, 0x5
  141. .set ITEM_BOBOMB, 0x6
  142. .set ITEM_BLUESHELL, 0x7
  143. .set ITEM_LIGHTNING, 0x8
  144. .set ITEM_STAR, 0x9
  145. .set ITEM_GOLDENMUSHROOM, 0xA
  146. .set ITEM_MEGAMUSHROOM, 0xB
  147. .set ITEM_BLOOPER, 0xC
  148. .set ITEM_POWBLOCK, 0xD
  149. .set ITEM_THUNDERCLOUD, 0xE
  150. .set ITEM_BULLETBILL, 0xF
  151. .set ITEM_TRIPLEGREENSHELLS, 0x10
  152. .set ITEM_TRIPLEREDSHELLS, 0x11
  153. .set ITEM_TRIPLEBANANAS, 0x12
  154. .set ITEM_NOITEM_MUSHROOM, 0x14
  155.  
  156. cmpwi r3, ITEM_TO_REPLACE # Compare the word in r3 (Item player will receive) to the item to replace
  157. bne+ 0x8 # If it is not equal, branch
  158. li r3, ITEM_REPLACED_WITH # If it is equal, load the value of the item we want into r3 (Item player will receive)
  159. stw r3, 32(r23) # Store the word in r3 to the address in r23 offset by 32
  160.  
  161.  
  162.  
  163. Code Creator: Star
  164. Code Credits: Guru (Shared Item Code)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top