Advertisement
Guest User

Untitled

a guest
Sep 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.13 KB | None | 0 0
  1. Set %Hotkey F5
  2. set %resume 33
  3. Set %Logs TLK_ZLK
  4. set %HomeRune CEUMLRE
  5. Set %TreeRune WRSUKPD
  6. Set %DropChest TWXUVOD
  7. Set %SetWeight 200
  8.  
  9.  
  10. set #SYSMSGCOL 1186
  11. if *Trees = 0 || *Trees = N/A
  12. {
  13. event SysMessage Start chopping some trees.
  14. set *Trees 0
  15. }
  16. else
  17. {
  18. event SysMessage Press %Hotkey to chop last *Trees trees.
  19. event SysMessage Chop a tree to restart from the beginning.
  20. }
  21. set %Auto #FALSE
  22. set %Action Begin
  23. set %Carp #FALSE
  24. set #SCNT 0
  25. scanjournal 1
  26. deletejournal
  27.  
  28. start:
  29. if #SCNT > 10 && %Auto = #TRUE
  30. {
  31. set %Action Idle
  32. }
  33. if %Auto = #TRUE && %Action = Idle && #SCNT > 10
  34. {
  35. set *TreeIndex ( *TreeIndex + 1 ) % *Trees
  36. set #LTARGETX *TreeX . *TreeIndex
  37. set #LTARGETY *TreeY . *TreeIndex
  38. set #LTARGETZ *TreeZ . *TreeIndex
  39. set #LTARGETTILE *TreeT . *TreeIndex
  40. set #LTARGETKIND 3
  41. move #LTARGETX #LTARGETY 1 150s
  42. set #LOBJECTID *Hatchet
  43. event Macro 17 0
  44. target 120s
  45. if #TARGCURS = 1
  46. {
  47. event Macro 22 0
  48. }
  49. set #SCNT 0
  50. set %Action Auto
  51. }
  52.  
  53. for %N 5 1
  54. {
  55. if *Trees > 1 && %Auto = #FALSE
  56. {
  57. onhotkey %Hotkey
  58. {
  59. set %Auto #TRUE
  60. set *TreeIndex -1
  61. event SysMessage Automatic chopping now.
  62. set %Action = Idle
  63. set #SCNT 9
  64. }
  65. }
  66. scanjournal %N
  67. if You_stop_chopping in #JOURNAL && %Auto = #TRUE
  68. {
  69. event SysMessage Stopped. Press %Hotkey to restart.
  70. set %Auto #FALSE
  71. set %Action Idle
  72. set #SCNT 0
  73. scanjournal 1
  74. deletejournal
  75. }
  76. if You_begin_chopping in #JOURNAL && %Auto = #TRUE
  77. {
  78. deletejournal
  79. set %Action Chopping
  80. set *TreeN *TreeIndex + 1
  81. event SysMessage Chopping Tree # , *TreeN of # , *Trees
  82. }
  83. if You_begin_chopping in #JOURNAL && %Auto = #FALSE
  84. {
  85. deletejournal
  86. if %Action = Begin && *Trees > 0
  87. {
  88. event SysMessage Forgetting about your previous *Trees trees.
  89. set *Trees 0
  90. }
  91. set %Action Chopping
  92. set *TreeX . *Trees #LTARGETX
  93. set *TreeY . *Trees #LTARGETY
  94. set *TreeZ . *Trees #LTARGETZ
  95. set *TreeT . *Trees #LTARGETTILE
  96. set *Trees *Trees + 1
  97. set *Hatchet #LOBJECTID
  98. event SysMessage Chopping Tree # , *Trees
  99. }
  100. if You_fail_to_get_any_usable_wood in #JOURNAL || logs_in_your_backpack in #JOURNAL
  101. {
  102. deletejournal
  103. set %Action Chopping
  104. set #SCNT 0
  105. }
  106. if There's_not_enough_wood_here in #JOURNAL
  107. {
  108. deletejournal
  109. set %Action Boards
  110. finditem ZLK C_ , #BACKPACKID
  111. set #LTARGETID X
  112. set #LTARGETKIND 1
  113. if #FINDKIND <> -1
  114. {
  115. for %C 1 #FINDCNT
  116. {
  117. set #FINDINDEX %C
  118. if #FINDCOL = 0
  119. {
  120. set #LTARGETID #FINDID
  121. }
  122. }
  123. if #LTARGETID <> X
  124. {
  125. finditem AGG_BGG_CGG_DGG_EGG_HGG_IGG_JGG_KGG_CIG C_ , #BACKPACKID
  126. if #FINDKIND <> -1
  127. {
  128. set #LOBJECTID #FINDID
  129. event Macro 17 0
  130. repeat
  131. until #CONTSIZE = 504_454
  132. if %Carp = #FALSE
  133. {
  134. set %Carp #TRUE
  135. set #CONTPOSX 0
  136. set #CONTPOSY 0
  137. click 180 130
  138. wait 10
  139. set #CONTPOSX 0
  140. set #CONTPOSY 0
  141. click 160 210
  142. wait 10
  143. }
  144. else
  145. {
  146. set #CONTPOSX 0
  147. set #CONTPOSY 0
  148. click 75 390
  149. wait 10
  150. }
  151. target 120s
  152. if #TARGCURS = 1
  153. {
  154. event Macro 22 0
  155. repeat
  156. until #TARGCURS = 0
  157. target 5s
  158. if #TARGCURS = 1
  159. {
  160. key ESC
  161. }
  162. wait 3s
  163. }
  164. }
  165. }
  166. }
  167. set #SCNT 10
  168. set %Action Idle
  169. if %Auto = #FALSE
  170. {
  171. if *Trees = 1
  172. {
  173. event SysMessage Done, let's chop down another tree.
  174. }
  175. else
  176. {
  177. event SysMessage That's *Trees trees. Chop on, or press %Hotkey to chop first one.
  178. }
  179. }
  180. }
  181. }
  182. goto start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement