Advertisement
Guest User

Untitled

a guest
Apr 28th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. //Creates a list of pack animals
  2. @removelist packlist
  3. @createlist packlist
  4. @pushlist! packlist "0x123" //Pack Horse
  5. @pushlist! packlist "0x124" //Pack Llama
  6. //Creates a list of ores and metals
  7. //Smelting priority from top to bottom.
  8. @removelist orelist
  9. @createlist orelist
  10. @removelist metallist
  11. @createlist metallist
  12. @pushlist! orelist "0x19b9" //Big Ore
  13. @pushlist! orelist "0x19b8" //Round Ore
  14. @pushlist! orelist "0x19ba" //Medium Ore
  15. @pushlist! orelist "0x19b7" //Small Ore
  16. @pushlist! metallist "0" //Iron
  17. @pushlist! metallist "2419" //Dull Copper
  18. @pushlist! metallist "2406" //Shadow Iron
  19. @pushlist! metallist "2413" //Copper
  20. @pushlist! metallist "2418" //Bronze
  21. @pushlist! metallist "2213" //Gold
  22. @pushlist! metallist "2425" //Agapite
  23. @pushlist! metallist "2207" //Verite
  24. @pushlist! metallist "2219" //Valorite
  25. //Checks if you have followers
  26. for 6
  27. if @followers > 0
  28. if not findalias pack1
  29. //Then looks for packhorses and packllamas and sets one to pack1
  30. for 0 to packlist
  31. if @findtype packlist[] 0 ground 1 2 and friend found
  32. @setalias pack1 found
  33. headmsg "pack1 set"
  34. break
  35. endif
  36. endfor
  37. endfor
  38. endif
  39. while @weight > 380
  40. for 0 to metallist
  41. for 0 to orelist
  42. while @findtype orelist[] metallist[] 'backpack'
  43. @clearjournal
  44. movetype orelist[] backpack pack1
  45. endfor
  46. endwhile
  47. endwhile
  48. //If the pack animal is full the ore lands on the ground. The macro detects this, retrieves the ore and ignores that animal for the rest of the mining step
  49. for 0 to orelist
  50. if @findtype orelist[] any ground any 2
  51. moveitem found self
  52. unsetalias pack1
  53. headmsg "Pack1 IGNORED" 666
  54. playsound 'chime.wav'
  55. headmsg 'PACK FULL'
  56. pause 500
  57. stop
  58. endif
  59. while @gumpexists '0x5d553c08'
  60. playsound 'chime.wav'
  61. headmsg 'GUMP'
  62. pause 5000
  63. endwhile
  64. //Check & Craft TinkTool
  65. while counttype '0x1eb8' 'any' 'backpack' < 2
  66. headmsg 'CRAFTING TINKER TOOLS'
  67. usetype '0x1eb8'
  68. waitforgump 0x38920abd 15000
  69. replygump 0x38920abd 8
  70. waitforgump 0x38920abd 15000
  71. replygump 0x38920abd 23
  72. waitforgump 0x38920abd 15000
  73. endwhile
  74. // Check & Craft Shovel
  75. while counttype '0xf39' 'any' 'backpack' < 2
  76. headmsg 'CRAFTING SHOVEL'
  77. usetype '0x1eb8'
  78. waitforgump 0x38920abd 15000
  79. replygump 0x38920abd 8
  80. waitforgump 0x38920abd 15000
  81. replygump 0x38920abd 72
  82. waitforgump 0x38920abd 15000
  83. endwhile
  84. //
  85. usetype 0xf39
  86. waitingfortarget 15000
  87. targettilerelative 'self' '1' 'false'
  88. pause 1000
  89. if @injournal 'no metal' 'system'
  90. playsound 1000
  91. clearjournal
  92. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement