Advertisement
N3rdsWithGame

Inventory script for Alien

Apr 29th, 2017
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. local stickSlot = 0x11a644
  2.  
  3. -- first argument is the address to be written to, the second is the value
  4. -- ie mainmemory.writebyte(addr, val)
  5.  
  6. -- the lowest value that appears in that slot is already written, slots with 2+
  7. -- items like ocarina or bottle or w/e have all possible value listed as comments
  8. -- but you can always chang the value written to 255 to make it blank if you want
  9.  
  10.  
  11.  
  12.  
  13. --stick
  14. mainmemory.writebyte(stickSlot+0,0)
  15. --nut
  16. mainmemory.writebyte(stickSlot+1,1)
  17. --bomb
  18. mainmemory.writebyte(stickSlot+2,2)
  19. --bow
  20. mainmemory.writebyte(stickSlot+3,3)
  21. --fire arrow
  22. mainmemory.writebyte(stickSlot+4,4)
  23. --dins fire
  24. mainmemory.writebyte(stickSlot+5,5)
  25. --slingshot
  26. mainmemory.writebyte(stickSlot+6,6)
  27. -- ocarina / potato
  28. mainmemory.writebyte(stickSlot+7,7) -- ,x) x=7 for potato, x=8 blue potato
  29.  
  30. --chu
  31. mainmemory.writebyte(stickSlot+8,9)
  32. -- hookshot/long shot
  33. mainmemory.writebyte(stickSlot+9,10) -- ,x) x=10 for hookshot, x=11 for longshot
  34.  
  35. --ice arrow
  36. mainmemory.writebyte(stickSlot+10,12)
  37. --FW
  38. mainmemory.writebyte(stickSlot+11,13)
  39. --bomerang
  40. mainmemory.writebyte(stickSlot+12,14)
  41. --lens
  42. mainmemory.writebyte(stickSlot+13,15)
  43. --bean
  44. mainmemory.writebyte(stickSlot+14,16)
  45. --hammer
  46. mainmemory.writebyte(stickSlot+15,17)
  47. --Light arrow
  48. mainmemory.writebyte(stickSlot+16,18)
  49. --NL
  50. mainmemory.writebyte(stickSlot+17,19)
  51.  
  52. --bottles
  53. mainmemory.writebyte(stickSlot+18,20)--| ,x) x=20 for empty, 21 red potion, 22 green, 23 blue
  54. mainmemory.writebyte(stickSlot+19,20)--| 24 fairy, 25 fish, 26 full milk, 27 ruto, 28 blue fire
  55. mainmemory.writebyte(stickSlot+20,20)--| 29 bugs, 30 big poe, 31 half milk, 32 normal poe
  56. mainmemory.writebyte(stickSlot+21,20)--|
  57.  
  58. --child trade
  59. mainmemory.writebyte(stickSlot+22,33)-- ,x) x=33 - 44. In order those are 33 = weird egg,
  60. -- child cucco, zelda letter, keaton, skull, spooky, bunny, goron, zora, gerudo, mask of truth
  61. -- 44 = sold out
  62.  
  63. --adult trade
  64. mainmemory.writebyte(stickSlot+23,45)-- ,x) x=44 - 55. In order those are 45=pocket egg,
  65. -- pocket cucco, cojiro, odd mushroom, odd pot, saw, broken sword, perscription,
  66. -- speedfrog, eye drops, 55 = claim check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement