Discussion in   Tutorials   started     10 years ago   April 01, 2014, 05:11:56 PM   by   Kenandan

Mining mountain side macro

Kenandan
Offline
3 Posts
Topic :   Mining mountain side macro
10 years ago  April 01, 2014, 05:11:56 PM

This macro is mostly the beautiful work of Oslin, but where as he had his macro targeting the ground under him while mining, this targets 1 tile infront of where your character is facing. It does not have southeast (Directon 8) as you cant mine in that direction.


if not @findalias 'mobile forge'   promptalias 'mobile forge'
endif
usetype 0xf39
waitfortarget 750
if direction == 0
  targettileoffset 0 -1 0
elseif direction == 1
  targettileoffset 1 -1 0
elseif direction == 2
  targettileoffset 1 0 0
elseif direction == 3
  targettileoffset 1 1 0
elseif direction == 4
  targettileoffset 0 1 0
elseif direction == 5
  targettileoffset -1 1 0
elseif direction == 6
  targettileoffset -1 0 0
elseif direction == 7
  targettileoffset -1 -1 0
endif
pause 750
if contents 'backpack' > 100 or diffweight < 100
  for 3
    @usetype 0x19b9
    waitfortarget 750
    target! 'mobile forge'
    @usetype 0x19b8
    waitfortarget 750
    target! 'mobile forge'
    @usetype 0x19b7
    waitfortarget 750
    target! 'mobile forge'
    @usetype 0x19ba
    waitfortarget 750
    target! 'mobile forge'
  endfor
  usetype 0x1be8
  waitforgump 0x6abce12 1000
  replygump 0x6abce12 31
  waitforgump 0x6abce12 1000
  replygump 0x6abce12 0
  headmsg 'No more ore here. Smelting complete!'
  stop
endif