Advertisement
matsamilla

Untitled

Dec 15th, 2018
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.53 KB | None | 0 0
  1. // !! Find and equip any axe in backpack ***
  2. if not listexists 'AxeList'
  3. createlist 'AxeList'
  4. endif
  5. // !! axe data
  6. @clearlist 'AxeList'
  7. @pushlist 'AxeList' 0xf43 //Hatchet
  8. @pushlist 'AxeList' 0xf45 //Executioner's Axe
  9. @pushlist 'AxeList' 0xf4d //Bardiche
  10. @pushlist 'AxeList' 0xf4b //Double Axe
  11. @pushlist 'AxeList' 0x143e //Halberd
  12. @pushlist 'AxeList' 0x13fb //Large Battle Axe
  13. @pushlist 'AxeList' 0x1443 //Two Handed Axe
  14. @pushlist 'AxeList' 0xf47 //Battle Axe
  15. @pushlist 'AxeList' 0xf49 //Axe
  16. //
  17. // !! Equip Axe
  18. for 0 to 'AxeList'
  19. if @findtype 'AxeList[]' 'any' 'backpack'
  20. unsetalias 'AXE'
  21. setalias 'AXE' 'found'
  22. endif
  23. endfor
  24. //******************************************
  25. //
  26. // !! Main chopping routine
  27. while weight < maxweight
  28. clearjournal
  29. if not @findlayer 'self' 2
  30. equipitem 'AXE' 2
  31. pause 600
  32. endif
  33. // chop chop
  34. useobject 'LeftHand'
  35. waitfortarget 1000
  36. if direction == 0
  37. targettileoffset! 0 -1 0
  38. elseif direction == 1
  39. targettileoffset! 1 -1 0
  40. elseif direction == 2
  41. targettileoffset! 1 0 0
  42. elseif direction == 3
  43. targettileoffset! 1 1 0
  44. elseif direction == 4
  45. targettileoffset! 0 1 0
  46. elseif direction == 5
  47. targettileoffset! -1 1 0
  48. elseif direction == 6
  49. targettileoffset! -1 0 0
  50. elseif direction == 7
  51. targettileoffset! -1 -1 0
  52. endif
  53. pause 500
  54. //
  55. //
  56. //****** Wait for it **********************
  57. // !! System hickup insurance loop
  58. for 60
  59. if @injournal 'enough wood here' 'system'
  60. break
  61. elseif @injournal 'You chop' 'system'
  62. break
  63. elseif @injournal "fail to" "system"
  64. break
  65. elseif @injournal "You can't" "system"
  66. break
  67. elseif @injournal "You can" "system"
  68. break
  69. elseif not @findlayer 'self' 2
  70. break
  71. else
  72. pause 100
  73. endif
  74. endfor
  75. //
  76. //******************************************
  77. //
  78. //*** Display proper feedback
  79. if @injournal "You can't" "system"
  80. pause 500
  81. endif
  82. if @injournal 'enough wood here' 'system'
  83. headmsg 'NO MORE WOOD' '2124'
  84. headmsg 'go to next tree' '2124'
  85. msg '[e whistle'
  86. pause 2000
  87. turn "East"
  88. walk "East"
  89. turn "South"
  90. walk "South"
  91. walk "South"
  92. turn "West"
  93. walk "West"
  94. turn "South"
  95. run "South"
  96. run "South"
  97. run "South"
  98. run "South"
  99. run "South"
  100. run "South"
  101. run "South"
  102. run "South"
  103. run "South"
  104. run "South"
  105. pause 800
  106. endif
  107. if @injournal 'some ordinary' 'system'
  108. headmsg '--Ordinary wood--' '1150'
  109. clearjournal
  110. endif
  111. if @injournal 'some oak' 'system'
  112. headmsg '--OAK--' '2010'
  113. clearjournal
  114. endif
  115. if @injournal 'some ash' 'system'
  116. headmsg '--ASH--' '1191'
  117. clearjournal
  118. endif
  119. if @injournal 'some yew' 'system'
  120. headmsg '--YEW--' '1192'
  121. msg '[e ah'
  122. clearjournal
  123. endif
  124. if @injournal 'some heartwood' 'system'
  125. headmsg '>!!!--HEARTWOOD--!!!<' '1193'
  126. msg '[e yea'
  127. clearjournal
  128. endif
  129. if @injournal 'some bloodwood' 'system'
  130. headmsg '>!!!--BLOODWOOD--!!!<' '1194'
  131. msg '[e woohoo'
  132. clearjournal
  133. endif
  134. if @injournal 'some frostwood' 'system'
  135. headmsg '>!!!--FROSTWOOD--!!!<' '1151'
  136. msg '[e woohoo'
  137. clearjournal
  138. endif
  139. //******************************************
  140. //
  141. //
  142. endwhile
  143. headmsg 'Over Weight Fatty !' '89'
  144. headmsg 'go home and unload!' '89'
  145. if @findtype '0x1bdd' 'any' 'backpack' 'any' 'any'
  146. @setalias 'Logs' 'Found'
  147. useobject 'LeftHand'
  148. autotargetobject 'Logs'
  149. pause 1000
  150. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement