Advertisement
Guest User

Untitled

a guest
Oct 14th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. #dynamic 0xE40000
  2. #org @start
  3. lockall
  4. msgbox @woreoff 0x6
  5. compare (yourvar) 0x(ValueUsedForRepel)
  6. if 0x1 goto @repel
  7. compare (yourvar) 0x(ValueUsedForSuperRepel)
  8. if 0x1 goto @super
  9. compare (yourvar) 0x(ValueUsedForMaxRepel)
  10. if 0x1 goto @max
  11. releaseall
  12. end
  13.  
  14. #org @max
  15. checkitem 0x54 0x1
  16. compare 0x800D 0x1
  17. if 0x4 goto @YMR
  18. goto @end
  19.  
  20. #org @YMR
  21. msgbox @use 0x5
  22. compare 0x800D 0x1
  23. if 0x1 goto @use3
  24. releaseall
  25. end
  26.  
  27. #org @use3
  28. setvar (yourvar) 0x(ValueUsedForMaxRepel)
  29. sound 0x2F
  30. msgbox @repelusemax MSG_SIGN
  31. removeitem 0x53 0x1
  32. setvar 0x4021 250
  33. release
  34. end
  35.  
  36. #org @repelusemax
  37. = [player] used a Max Repel.
  38.  
  39. #org @repelusesuper
  40. = [player] used a Super Repel.
  41.  
  42. #org @super
  43. checkitem 0x53 0x1
  44. compare 0x800D 0x1
  45. if 0x4 goto @YSR
  46. goto @end
  47.  
  48. #org @YSR
  49. msgbox @use 0x5
  50. compare 0x800D 0x1
  51. if 0x1 goto @use2
  52. releaseall
  53. end
  54.  
  55. #org @use2
  56. setvar (yourvar) 0x(ValueUsedForSuperRepel)
  57. sound 0x2F
  58. msgbox @repelusesuper MSG_SIGN
  59. removeitem 0x53 0x1
  60. setvar 0x4021 200
  61. release
  62. end
  63.  
  64. #org @woreoff
  65. = The Repel's effect wore off[.]
  66.  
  67. #org @repel
  68. checkitem 0x56 0x1
  69. compare 0x800D 0x1
  70. if 0x4 goto @YR
  71. goto @end
  72.  
  73. #org @end
  74. releaseall
  75. end
  76.  
  77. #org @YR
  78. msgbox @use 0x5
  79. compare 0x800D 0x1
  80. if 0x1 goto @use1
  81. releaseall
  82. end
  83.  
  84. #org @use1
  85. setvar (yourvar) 0x(ValueUsedForRepel)
  86. sound 0x2F
  87. msgbox @repeluse MSG_SIGN
  88. removeitem 0x56 0x1
  89. setvar 0x4021 100
  90. releaseall
  91. end
  92.  
  93. #org @use
  94. = Would you like to use another one?
  95.  
  96. #org @repeluse
  97. = [player] used a Repel.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement