Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. //Description: Recalling Miner. Must have a 1 Pickaxe or ingots.
  2. //You will need a book with the default rune marked right next to your storage.
  3. //Stand South of each Spot you want to mine
  4. //All Books must have 16 runes to run properly!!
  5. //Be sure to stock Regs before playing!
  6. removelist 'Runes'
  7. removelist 'OreBook'
  8. @clearjournal
  9. headmsg "Reminder: Have your regs stocked..."
  10. pause 200
  11. headmsg 'About 100 of each recall reg...'
  12. if not @findalias 'Ore Storage'
  13. promptalias 'Ore Storage'
  14. endif
  15. if not @findobject 'Ore1'
  16. promptalias 'Ore1'
  17. endif
  18. if not @findobject 'Ore2'
  19. promptalias 'Ore2'
  20. endif
  21. if not @findobject 'Ore3'
  22. promptalias 'Ore3'
  23. endif
  24. if not @findobject 'HomeOre'
  25. promptalias 'HomeOre'
  26. endif
  27. if not listexists 'OreBook'
  28. createlist 'OreBook'
  29. endif
  30. if list 'OreBook' == 0
  31. pushlist 'OreBook' 'Ore1'
  32. pushlist 'OreBook' 'Ore2'
  33. pushlist 'OreBook' 'Ore3'
  34. endif
  35. if @findtype '0xe86' '0' 'backpack' 'any' '2'
  36. headmsg 'Pick found. Ready!'
  37. elseif @findtype '0x1bf2' '0' 'backpack' 'any' '2' and skill 'tinkering' > 80
  38. headmsg 'resorting to Tinkering....'
  39. @usetype '0x1eb8' '0' 'backpack' 'any' '2'
  40. waitforgump 0x38920abd 15000
  41. replygump 0x38920abd 8
  42. waitforgump 0x38920abd 15000
  43. replygump 0x38920abd 114
  44. waitforgump 0x38920abd 15000
  45. replygump 0x38920abd 114
  46. else
  47. headmsg 'No way to mine found...'
  48. stop
  49. endif
  50. if not listexists 'Runes'
  51. createlist 'Runes'
  52. endif
  53. if list 'Runes' == 0
  54. pushlist 'Runes' 5
  55. pushlist 'Runes' 11
  56. pushlist 'Runes' 17
  57. pushlist 'Runes' 23
  58. pushlist 'Runes' 29
  59. pushlist 'Runes' 35
  60. pushlist 'Runes' 41
  61. pushlist 'Runes' 47
  62. pushlist 'Runes' 53
  63. pushlist 'Runes' 59
  64. pushlist 'Runes' 65
  65. pushlist 'Runes' 71
  66. pushlist 'Runes' 77
  67. pushlist 'Runes' 83
  68. pushlist 'Runes' 89
  69. pushlist 'Runes' 95
  70. endif
  71. for 0 to OreBook
  72. for 0 to 'Runes'
  73. pause 500
  74. while mana < 40
  75. endwhile
  76. @clearjournal
  77. pause 500
  78. useobject OreBook[]
  79. waitforgump 0x554b87f3 5000
  80. replygump 0x554b87f3 Runes[]
  81. pause 4000
  82. if injournal 'blocked' 'system'
  83. @clearjournal
  84. replay
  85. endif
  86. while not @injournal 'There is no metal here to mine' 'system'
  87. //use Pick to northern tile until specified weight is reached
  88. pause 300
  89. usetype '0xe86' '0' 'backpack' 'any' '2'
  90. waitfortarget 1000
  91. targettileoffset 0 -1 0
  92. pause 800
  93. if @injournal "You can't mine there." "system"
  94. headmsg 'Bad Rune'
  95. @clearjournal
  96. poplist 'Runes' 'front'
  97. break
  98. endif
  99. // once weight is reached go home, if getting overweight, lower it
  100. if weight > '325'
  101. cast 'recall'
  102. autotargetobject 'HomeOre'
  103. pause 4000
  104. //put up Ore
  105. while @findtype '0x19b9' 'any' 'backpack' 'any' '2'
  106. moveitem 'found' 'Ore Storage'
  107. pause 800
  108. endwhile
  109. while mana < 40
  110. endwhile
  111. //recall back to where you were
  112. if mana < 25
  113. headmsg 'Need mana'
  114. useskill 'meditation'
  115. while mana < 40
  116. endwhile
  117. endif
  118. useobject OreBook[]
  119. waitforgump 0x554b87f3 5000
  120. replygump 0x554b87f3 Runes[]
  121. pause 2000
  122. endif
  123. if not @findtype '0xe86' '0' 'backpack' 'any' '2'
  124. headmsg 'Out of picks'
  125. replay
  126. endif
  127. endwhile
  128. if mana < 25
  129. headmsg 'Need mana'
  130. useskill 'meditation'
  131. while mana < 40
  132. endwhile
  133. endif
  134. endfor
  135. poplist 'Runes' 'front'
  136. endfor
  137. //recall home so Ore container is found
  138. pause 1000
  139. if mana < 25
  140. headmsg 'Need mana'
  141. useskill 'meditation'
  142. while mana < 40
  143. endwhile
  144. endif
  145. cast 'recall'
  146. autotargetobject 'HomeOre'
  147. pause 4000
  148. poplist 'OreBook' 'front'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement