Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.28 KB | None | 0 0
  1. // Author: Kraz
  2. // Description: Simple Mining
  3. if not listexists 'Runebooks'
  4. createlist 'Runebooks'
  5. endif
  6. if not listexists 'Runes'
  7. createlist 'Runes'
  8. endif
  9. if list 'Runes' == 0
  10. pushlist 'Runes' 5
  11. pushlist 'Runes' 11
  12. pushlist 'Runes' 17
  13. pushlist 'Runes' 23
  14. pushlist 'Runes' 29
  15. pushlist 'Runes' 35
  16. pushlist 'Runes' 41
  17. pushlist 'Runes' 47
  18. pushlist 'Runes' 53
  19. pushlist 'Runes' 59
  20. pushlist 'Runes' 65
  21. pushlist 'Runes' 71
  22. pushlist 'Runes' 77
  23. pushlist 'Runes' 83
  24. pushlist 'Runes' 89
  25. pushlist 'Runes' 95
  26. // All runes have been mined, go to the next runebook
  27. poplist 'Runebooks' 'front'
  28. endif
  29. // Add all your mine runebooks serial to that list
  30. if list 'Runebooks' == 0
  31. pushlist 'Runebooks' 0x400b9c26 //EDIT THIS USING OBJECT INSPECTOR AND SELECT A RUNEBOOK
  32. pushlist 'Runebooks' 0x400c0a68 //EDIT THIS USING OBJECT INSPECTOR AND SELECT A RUNEBOOK
  33. pushlist 'Runebooks' 0x41aa7665 //EDIT THIS USING OBJECT INSPECTOR AND SELECT A RUNEBOOK
  34. endif
  35. if not listexists 'Ores'
  36. createlist 'Ores'
  37. pushlist 'Ores' 0x19b7
  38. pushlist 'Ores' 0x19b8
  39. pushlist 'Ores' 0x19ba
  40. pushlist 'Ores' 0x19b9
  41. endif
  42. if not listexists 'Stones'
  43. createlist 'Stones'
  44. // Citrine
  45. pushlist 'Stones' 0xf15
  46. // Amber
  47. pushlist 'Stones' 0xf25
  48. // Emerald
  49. pushlist 'Stones' 0x3195
  50. // Star Sapphire
  51. pushlist 'Stones' 0xf21
  52. // Amethyst
  53. pushlist 'Stones' 0xf16
  54. // Ruby
  55. pushlist 'Stones' 0xf13
  56. // Diamond
  57. pushlist 'Stones' 0xf26
  58. // Sapphire
  59. pushlist 'Stones' 0xf19
  60. // Tourmaline
  61. pushlist 'Stones' 0xf2d
  62. endif
  63. if not @findalias 'Stock'
  64. promptalias 'Stock'
  65. endif
  66. if not @findobject 'Home Runebook'
  67. promptalias 'Home Runebook'
  68. endif
  69. if weight >= 390 or not @findtype 0xf39 0 'backpack'
  70. cast 'strength'
  71. pause 2000
  72. target! 'self'
  73. pause 3000
  74. cast 'recall'
  75. pause 3000
  76. target! 'Home Runebook'
  77. headmsg 'Check Shovels!'
  78. pause 1000
  79. if @injournal 'Insufficient mana' 'system'
  80. useskill 'Meditation'
  81. while mana != maxmana
  82. pause 500
  83. endwhile
  84. endif
  85. @clearjournal
  86. if @injournal 'More reagents' 'system' or @injournal 'Insufficient mana' 'system'
  87. clearjournal
  88. replay
  89. stop
  90. endif
  91. useobject! 'Stock'
  92. pause 1000
  93. for 0 to 'Stones'
  94. while @movetype Stones[] 'backpack' 'Stock'
  95. pause 1000
  96. endwhile
  97. endfor
  98. for 0 to 'Ores'
  99. while @findtype Ores[] 'any' 'backpack'
  100. useobject! 'found'
  101. waitfortarget 1000
  102. // Small forge 0xfb1
  103. // Elven forge 0x2dd8
  104. // Large forge 0x19a2
  105. targetground 0xfb1 'any' 2
  106. pause 200
  107. if @injournal 'not enough metal' 'system'
  108. moveitem 'found' 'Stock'
  109. pause 1000
  110. clearjournal
  111. endif
  112. endwhile
  113. endfor
  114. while @findtype 0x1bf2 'any' 'backpack'
  115. moveitem 'found' 'Stock'
  116. pause 1000
  117. endwhile
  118. if @counttype 0xf39 0x0 'backpack' < 2
  119. movetype 0xf39 'stock' 'backpack' 0 0 0 0x0 1
  120. pause 1000
  121. endif
  122. if @counttype 0xf7b 0x0 'backpack' < 10
  123. movetype 0xf7b 'stock' 'backpack' 0 0 0 0x0 15
  124. pause 1000
  125. endif
  126. if @counttype 0xf88 0x0 'backpack' < 10
  127. movetype 0xf88 'stock' 'backpack' 0 0 0 0x0 15
  128. pause 1000
  129. endif
  130. if @counttype 0xf7a 0x0 'backpack' < 10
  131. movetype 0xf7a 'stock' 'backpack' 0 0 0 0x0 15
  132. pause 1000
  133. endif
  134. if @counttype 0xf86 0x0 'backpack' < 10
  135. movetype 0xf86 'stock' 'backpack' 0 0 0 0x0 15
  136. pause 1000
  137. endif
  138. else
  139. for 0 to 'Runes'
  140. useobject! Runebooks[0]
  141. waitforgump 0x554b87f3 15000
  142. replygump 0x554b87f3 Runes[]
  143. pause 3000
  144. if @injournal 'More reagents' 'system' or @injournal 'Insufficient mana' 'system'
  145. clearjournal
  146. continue
  147. endif
  148. poplist 'Runes' 'front'
  149. if @injournal 'location is blocked' 'system'
  150. clearjournal
  151. continue
  152. endif
  153. useskill 'hiding'
  154. if @findtype 0xf39 0 'backpack' and weight <= 389
  155. for 15
  156. if not usetype! 0xf39 or weight >= 390
  157. replay
  158. stop
  159. endif
  160. waitfortarget 1000
  161. targettileoffset -1 0 0
  162. pause 1000
  163. if @injournal 'there is no metal' 'system'
  164. clearjournal
  165. replay
  166. stop
  167. endif
  168. endfor
  169. else
  170. break
  171. endif
  172. pause 3000
  173. endfor
  174. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement