SHARE
TWEET

GSC Item modifying box codes

andr2535 Mar 20th, 2017 22 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set first item pocket item quantity to 144:
  2.  
  3. 1st
  4. 1 - xor A - AF                  // A = 0
  5. 2-3 - or A, 90 - F6 90          // A = 90
  6. 4-6 - LD (F894), A - EA 94 F8   // (F894) = 90
  7. 7 - RET NC - D0                 // Return
  8.  
  9. // Converted to pokémon letters.
  10. p0QéU2'd
  11.  
  12. Set first item pocket item quantity to 255:
  13.  
  14. 1st
  15. 1 - xor A - AF                  // A = 0
  16. 2-3 - or A, FF - F6 FF          // A = FF
  17. 4-6 - LD (F894), A - EA 94 F8   // (F894) = FF
  18. 7 - RET NC - D0                 // Return
  19.  
  20. // Converted to pokémon letters.
  21. p09éU2'd
  22.  
  23. Set first item pocket item to 8B(Berry Juice):
  24.  
  25. 1st
  26. 1 - xor A - AF                  // A = 0
  27. 2-3 or A, 8B - F6 8B            // A = 8B
  28. 4-6 - LD (F893), A - EA 93 F8   // Write A to F893(D893)
  29. 7 - RET NC - D0                 // Return
  30.  
  31. // Converted to pokémon letters.
  32. p0LéT2'd
  33.  
  34. Increment first item in bag:
  35. 1 - xor A - AF                  // A = 0
  36. 2-3 - or A, 81 - F6 81          // A = 81
  37. 4-5 - sub A, 80 - D6 80         // A = 80
  38. 6 - push AF - F5                // A = 0
  39. 7 - pop HL - E1                 // H = 1
  40. 8 - xor A - AF                  // A = 0(it already was 0 but we needed filler :P)
  41. 2nd
  42. 1-3 - LD A, (F893) - FA 93 F8   // A = (F893)
  43. 3rd
  44. 1 - ADD A, H - 84               // A = (F893)+1
  45. 4th
  46. 1-3 - LD (F893), A - EA 93 F8   // (F893) = (F893)+1
  47. 4 - xor A - AF                  // A = 0 && carry = 0
  48. 5 - RET NC - D0                 // Return
  49.  
  50. // Converted to pokémon letters.
  51. p0B'vA(Female)(PK)p
  52. 4T2
  53. E
  54. éT2p'd
  55.  
  56. Decrement first item in bag(fill names with 5 first):
  57. 1 - xor A - AF                  // A = 0
  58. 2-3 - or A, 81 - F6 81          // A = 81
  59. 4-5 - sub A, 80 - D6 80         // A = 80
  60. 6 - push AF - F5                // A = 0
  61. 7 - pop HL - E1                 // H = 1
  62. 8 - xor A - AF                  // A = 0(it already was 0 but we needed filler :P)
  63. 2nd
  64. 1-3 - LD A, (F893) - FA 93 F8   // A = (F893)
  65. 3rd
  66. 1 - SUB A, H - 94               // A = (F893)-1
  67. 4th
  68. 1-3 - LD (F893), A - EA 93 F8   // (F893) = (F893)-1
  69. 4 - xor A - AF                  // A = 0 && carry = 0
  70. 5 - RET NC - D0                 // Return
  71.  
  72.  
  73. // Converted to pokémon letters.
  74. p0B'vA(Female)(PK)p
  75. 4T2
  76. U
  77. éT2p'd
RAW Paste Data
Top