Advertisement
katmeow11

Untitled

Nov 28th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.55 KB | None | 0 0
  1. if not @findobject 'spellbook'
  2. organizer 'SpellBooks'
  3. while organizing
  4. pause 500
  5. endwhile
  6. sysmsg '**Making spellbook!**'
  7. pause 1000
  8. if @usetype '0xfbf' 'any' 'backpack'
  9. waitforgump '0x38920abd' '5000'
  10. else
  11. sysmsg 'Out of Pens!' '23'
  12. stop
  13. endif
  14. if @findtype 0xefa 0 'backpack'
  15. @findtype 0xefa 0 'Backpack'
  16. pause 1000
  17. setalias 'spellbook' 'found'
  18. else
  19. replygump 0x38920abd 57
  20. waitforgump 0x38920abd 15000
  21. replygump 0x38920abd 16
  22. waitforgump 0x38920abd 15000
  23. pause 1000
  24. if ingump 0x38920abd 'failed'
  25. replygump 0x38920abd 57
  26. waitforgump 0x38920abd 15000
  27. replygump 0x38920abd 16
  28. waitforgump 0x38920abd 15000
  29. pause 1000
  30. endif
  31. @findtype 0xefa 0 'Backpack'
  32. pause 1000
  33. setalias 'spellbook' 'found'
  34. endif
  35. endif
  36. if counter 'scroll' < 30
  37. headmsg 'Reg Organizer Failure'
  38. stop
  39. endif
  40. if not listexists 'Circle'
  41. @createlist 'Circle'
  42. endif
  43. if 'list' 'Circle' == '0'
  44. @pushlist 'Circle' '1'
  45. @pushlist 'Circle' '8'
  46. @pushlist 'Circle' '15'
  47. @pushlist 'Circle' '22'
  48. @pushlist 'Circle' '29'
  49. @pushlist 'Circle' '36'
  50. @pushlist 'Circle' '43'
  51. @pushlist 'Circle' '50'
  52. endif
  53. if not listexists 'Spells'
  54. @createlist 'Spells'
  55. endif
  56. if 'list' 'Spells' == '0'
  57. @pushlist 'Spells' '2'
  58. @pushlist 'Spells' '9'
  59. @pushlist 'Spells' '16'
  60. @pushlist 'Spells' '23'
  61. @pushlist 'Spells' '30'
  62. @pushlist 'Spells' '37'
  63. @pushlist 'Spells' '44'
  64. @pushlist 'Spells' '51'
  65. endif
  66. if not listexists 'Mana'
  67. @createlist 'Mana'
  68. endif
  69. if 'list' 'Mana' == '0'
  70. @pushlist 'Mana' '4'
  71. @pushlist 'Mana' '6'
  72. @pushlist 'Mana' '9'
  73. @pushlist 'Mana' '11'
  74. @pushlist 'Mana' '14'
  75. @pushlist 'Mana' '20'
  76. @pushlist 'Mana' '40'
  77. @pushlist 'Mana' '50'
  78. endif
  79. if not listexists 'scrolls'
  80. @createlist 'scrolls'
  81. endif
  82. if 'list' 'scrolls' == '0'
  83. @pushlist 'scrolls' 0x1f2d // Reactive Armor
  84. @pushlist 'scrolls' 0x1f2e // Clumsy
  85. @pushlist 'scrolls' 0x1f2f // Create Food
  86. @pushlist 'scrolls' 0x1f30 // Feeblemind
  87. @pushlist 'scrolls' 0x1f31 // Heal
  88. @pushlist 'scrolls' 0x1f32 // Magic Arrow
  89. @pushlist 'scrolls' 0x1f33 // Night Sight
  90. @pushlist 'scrolls' 0x1f34 // Weaken
  91. @pushlist 'scrolls' 0x1f35 // Agility
  92. @pushlist 'scrolls' 0x1f36 // Cunning
  93. @pushlist 'scrolls' 0x1f37 // Cure
  94. @pushlist 'scrolls' 0x1f38 // Harm
  95. @pushlist 'scrolls' 0x1f39 // Magic Trap
  96. @pushlist 'scrolls' 0x1f3a // Magic Untrap
  97. @pushlist 'scrolls' 0x1f3b // Protection
  98. @pushlist 'scrolls' 0x1f3c // Strength
  99. @pushlist 'scrolls' 0x1f3d // Bless
  100. @pushlist 'scrolls' 0x1f3e // Fireball
  101. @pushlist 'scrolls' 0x1f3f // Magic Lock
  102. @pushlist 'scrolls' 0x1f40 // Poison
  103. @pushlist 'scrolls' 0x1f41 // Telekinesis
  104. @pushlist 'scrolls' 0x1f42 // Teleport
  105. @pushlist 'scrolls' 0x1f43 // Unlock
  106. @pushlist 'scrolls' 0x1f44 // Wall of Stone
  107. @pushlist 'scrolls' 0x1f45 // Arch Cure
  108. @pushlist 'scrolls' 0x1f46 // Arch Protection
  109. @pushlist 'scrolls' 0x1f47 // Curse
  110. @pushlist 'scrolls' 0x1f48 // Fire Field
  111. @pushlist 'scrolls' 0x1f49 // Greater Heal
  112. @pushlist 'scrolls' 0x1f4a // Lightning
  113. @pushlist 'scrolls' 0x1f4b // Mana Drain
  114. @pushlist 'scrolls' 0x1f4c // Recall
  115. @pushlist 'scrolls' 0x1f4d // Blade Spirit
  116. @pushlist 'scrolls' 0x1f4e // Dispel Field
  117. @pushlist 'scrolls' 0x1f4f // Incognito
  118. @pushlist 'scrolls' 0x1f50 // Magic Reflection
  119. @pushlist 'scrolls' 0x1f51 // Mind Blast
  120. @pushlist 'scrolls' 0x1f52 // Paralyze
  121. @pushlist 'scrolls' 0x1f53 // Poison Field
  122. @pushlist 'scrolls' 0x1f54 // Summon Creature
  123. @pushlist 'scrolls' 0x1f55 // Dispel
  124. @pushlist 'scrolls' 0x1f56 // Energy Bolt
  125. @pushlist 'scrolls' 0x1f57 // Explosion
  126. @pushlist 'scrolls' 0x1f58 // Invisibility
  127. @pushlist 'scrolls' 0x1f59 // Mark
  128. @pushlist 'scrolls' 0x1f5a // Mass Curse
  129. @pushlist 'scrolls' 0x1f5b // Paralyze Field
  130. @pushlist 'scrolls' 0x1f5c // Reveal
  131. @pushlist 'scrolls' 0x1f5d // Chain Lightning
  132. @pushlist 'scrolls' 0x1f5e // Energy Field
  133. @pushlist 'scrolls' 0x1f5f // Flamestrike
  134. @pushlist 'scrolls' 0x1f60 // Gate Travel
  135. @pushlist 'scrolls' 0x1f61 // Mana Vampire
  136. @pushlist 'scrolls' 0x1f62 // Mass Dispel
  137. @pushlist 'scrolls' 0x1f63 // Meteor Swarm
  138. @pushlist 'scrolls' 0x1f64 // Polymorph
  139. @pushlist 'scrolls' 0x1f65 // Earthquake
  140. @pushlist 'scrolls' 0x1f66 // Energy Vortex
  141. @pushlist 'scrolls' 0x1f67 // Ressurrection
  142. @pushlist 'scrolls' 0x1f68 // Summon Air Elemental
  143. @pushlist 'scrolls' 0x1f69 // Summon Daemon
  144. @pushlist 'scrolls' 0x1f6a // Summon Earth Elemental
  145. @pushlist 'scrolls' 0x1f6b // Summon Fire Elemental
  146. @pushlist 'scrolls' 0x1f6c // Summon Water Elemental
  147. endif
  148. if mana < Mana[0]
  149. useskill 'meditation'
  150. while not mana == maxmana
  151. endwhile
  152. endif
  153. if not @findtype '0xef3' 'any' 'backpack'
  154. sysmsg '#### No Scrolls###'
  155. stop
  156. endif
  157. if @usetype '0xfbf' 'any' 'backpack'
  158. waitforgump '0x38920abd' '5000'
  159. else
  160. sysmsg '####No Pens ####' '23'
  161. stop
  162. endif
  163. replygump '0x38920abd' Circle[0]
  164. waitforgump '0x38920abd' '5000'
  165. replygump '0x38920abd' Spells[0]
  166. waitforgump '0x38920abd' '5000'
  167. pause 900
  168. if @movetype scrolls[0] 'backpack' 'spellbook' 0 0 0 'any' '1'
  169. pause '1000'
  170. poplist 'Spells' 'front'
  171. poplist 'scrolls' 'front'
  172. endif
  173. if list 'Spells' == 0
  174. poplist 'Circle' 'front'
  175. poplist 'Mana' 'front'
  176. endif
  177. if list 'scrolls' == 0
  178. moveitem 'spellbook' 0x4086f003
  179. unsetalias 'spellbook'
  180. pause 1000
  181. sysmsg 'Spellbook Complete'
  182. if findtype 0xefa 0 'Backpack'
  183. headmsg 'Moveitem failure'
  184. stop
  185. endif
  186. replay
  187. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement