Advertisement
Guest User

Untitled

a guest
Feb 18th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.81 KB | None | 0 0
  1. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  2. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  3. //$$ Manual Lumberjacking assistant
  4. //$$ By: Amonseti
  5. //$$ V 1.8
  6. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  7. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  8. //
  9. //??? USAGE GUIDE LINES:
  10. //??? Simply create a new macro. give it an appropreate name,
  11. //??? Any will do.
  12. //???
  13. //??? Run the macro. with an axe equiped or in your backpack
  14. //??? The macro will look for a tree first tile west
  15. //??? of where your character is standing.
  16. //??? The macro will tell you when to move onto the next
  17. //??? tree until your weight has exceeded 380stones. ( This
  18. //??? is based off of assuming your lumberjacker has 100strength)
  19. //??? There are some trees that due to terrain height are unchoppable
  20. //??? if for some reason you find yourself just standing there not
  21. //??? Collecting wood ... Then move on to next tree.
  22. //???
  23. //???
  24. //
  25. //
  26. // !! Find and equip any axe in backpack ***
  27. if not listexists 'AxeList'
  28. createlist 'AxeList'
  29. endif
  30. // !! axe data
  31. @clearlist 'AxeList'
  32. @pushlist 'AxeList' 0xf43 //Hatchet
  33. @pushlist 'AxeList' 0xf45 //Executioner's Axe
  34. @pushlist 'AxeList' 0xf4d //Bardiche
  35. @pushlist 'AxeList' 0xf4b //Double Axe
  36. @pushlist 'AxeList' 0x143e //Halberd
  37. @pushlist 'AxeList' 0x13fb //Large Battle Axe
  38. @pushlist 'AxeList' 0x1443 //Two Handed Axe
  39. @pushlist 'AxeList' 0xf47 //Battle Axe
  40. @pushlist 'AxeList' 0xf49 //Axe
  41. //
  42. // !! Equip Axe
  43. for 0 to 'AxeList'
  44. if @findtype 'AxeList[]' 'any' 'backpack'
  45. unsetalias 'AXE'
  46. setalias 'AXE' 'found'
  47. endif
  48. endfor
  49. //******************************************
  50. //
  51. // !! Main chopping routine
  52. while weight < 440
  53. clearjournal
  54. if not @findlayer 'self' 2
  55. equipitem 'AXE' 2
  56. pause 600
  57. endif
  58. //
  59. useobject 'LeftHand'
  60. waitfortarget 1000
  61. targettileoffset -1 0 0
  62. pause 500
  63. //
  64. //
  65. //****** Wait for it **********************
  66. // !! System hickup insurance loop
  67. for 60
  68. if @injournal 'enough wood here' 'system'
  69. break
  70. elseif @injournal 'You chop' 'system'
  71. break
  72. elseif @injournal 'You put' 'system'
  73. break
  74. elseif @injournal "fail to" "system"
  75. break
  76. elseif @injournal "You can't" "system"
  77. break
  78. elseif @injournal "You can" "system"
  79. break
  80. elseif not @findlayer 'self' 2
  81. break
  82. else
  83. pause 100
  84. endif
  85. endfor
  86. //
  87. //******************************************
  88. //
  89. //*** Display proper feedback
  90. if @injournal "You can't" "system"
  91. pause 500
  92. endif
  93. if @injournal 'enough wood here' 'system'
  94. headmsg 'NO MORE WOOD' '2124'
  95. headmsg 'go to next tree' '2124'
  96. msg '[e whistle'
  97. pause 2000
  98. endif
  99. if @injournal 'some ordinary' 'system'
  100. headmsg '--Ordinary wood--' '1150'
  101. clearjournal
  102. endif
  103. if @injournal 'some oak' 'system'
  104. headmsg '--OAK--' '2010'
  105. clearjournal
  106. endif
  107. if @injournal 'some ash' 'system'
  108. headmsg '--ASH--' '1191'
  109. clearjournal
  110. endif
  111. if @injournal 'some yew' 'system'
  112. headmsg '--YEW--' '1192'
  113. msg '[e ah'
  114. clearjournal
  115. endif
  116. if @injournal 'some heartwood' 'system'
  117. headmsg '>!!!--HEARTWOOD--!!!<' '1193'
  118. msg '[e yea'
  119. clearjournal
  120. endif
  121. if @injournal 'some bloodwood' 'system'
  122. headmsg '>!!!--BLOODWOOD--!!!<' '1194'
  123. msg '[e woohoo'
  124. clearjournal
  125. endif
  126. if @injournal 'some frostwood' 'system'
  127. headmsg '>!!!--FROSTWOOD--!!!<' '1151'
  128. msg '[e woohoo'
  129. clearjournal
  130. endif
  131. //******************************************
  132. //
  133. //
  134. endwhile
  135. headmsg 'Over Weight Fatty !' '89'
  136. headmsg 'go home and unload!' '89'
  137. « Last Edit: November 06, 2016, 05:21:29 PM by Evolution »
  138. Logged
  139. UO Evolution Custom Shard
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement