Lumberjacking South

Posts: 184
Joined: Fri Feb 19, 2016 9:46 pm

Lumberjacking South

Postby Tillblik » Tue Feb 28, 2017 9:53 pm

This macro harvests on the West side of the char and walks South, must be looped

Code: Select all
if @gumpexists 0xfbca4821
  guildmsg 'MACRO CHECK'
endif
clearjournal
while not dead
// if no hatchet in hand arm one.
  if @findlayer 'self' 2
    @setalias 'axe' 'found'
  elseif @findtype 0xf43 0 'backpack' 1
    @setalias 'axe' 'found'
    equipitem 'axe' 2
    pause 350
  endif
  clearjournal
  useobject 'axe'
  waitfortarget 10000
  targettileoffset! -1 0 0
//check for success or failure
  while not dead
    pause 100
    if @injournal 'logs and put them into your backpack' 'system'
      break
    elseif @injournal 'You hack at the tree for a while' 'system'
      break
    elseif @injournal "You can't use an axe on that." "system"
      break
    elseif @injournal  'not enough wood here to harvest' 'system'
      turn 'south'
      break
    endif
  endwhile
  if @injournal "You can't use an axe on that." "system"
    break
  elseif @injournal  'not enough wood here to harvest' 'system'
    break
  endif
endwhile
//chop up logs into boards
if @findtype 0x1bdd 'any'  'backpack'
  useobject 'axe'
  waitfortarget 10000
  targettype 0x1bdd 'any'
endif
walk 'south'
pause 350
// this part I wrote for me to put boards in my packhorse, you'll have to delete it or fix it for your pack horse
// just replace the 0x7c6c (both of them) to the serial of your pack horse
if counttype 0x1bd7 'any' 0x7c6c <= 1540
  if @findtype 0x1bd7 'any' 'backpack'
    movetype 0x1bd7 'backpack' 0x7c6c
  endif
endif

Return to Macros

Who is online

Users browsing this forum: No registered users and 3 guests

cron