Mining

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

Mining

Postby Tillblik » Fri Apr 21, 2017 7:19 pm

Here is a macro that mines continuously, directly under your feet, and moves all your ore to a pack animal. You'll either need shovels or alternatively tinker tools and some ingots, you should start with two tinker tools and two shovels to make the macro run smoother. FYI the graphic I used is player made tinker tools not the bought ones.

Code: Select all
// get your pack animal
promptalias 'pack'
while not dead
  // make sure you have enough tinker tools
  if counttype 0x1eb8 'any' 'backpack' < 2
    headmsg 'making tinker tools'
    usetype 0x1eb8
    waitforgump 0x38920abd 15000
    replygump 0x38920abd 23
    waitforgump 0x38920abd 15000
    replygump 0x38920abd 0
  endif
  // make sure you have enough shovels
  if counttype 0xf39 'any' 'backpack' < 2
    headmsg 'making a shovel'
    usetype 0x1eb8
    waitforgump 0x38920abd 15000
    replygump 0x38920abd 72
    waitforgump 0x38920abd 15000
    replygump 0x38920abd 0
  endif
  // Macro checking
  if @gumpexists 0xfbca4821
    messagebox 'Player Name' 'Macro Check'
  endif
  msg 'all come'
  // mining under your feet
  clearjournal
  autotargettileoffset 0 0 0
  usetype 0xf39
  settimer 'minetimeout' 0
  while not dead
    if timer 'minetimeout' > 10000
      break
    endif
    if @injournal "You can't mine"
      break
    elseif @injournal 'There is no metal here to mine' 'system'
      break
    elseif @injournal 'You dig' 'system'
      break
    elseif @injournal 'You loosen some rocks' 'system'
      break
    endif
    pause 200
  endwhile
  if weight > 350
    while not dead
      if @findtype 0x19b9 'any' 'backpack'
        moveitem 'found' 'pack'
        pause 500
      else
        break
      endif
    endwhile
  endif
endwhile

Posts: 856
Joined: Thu Apr 17, 2014 12:48 pm
Location: Austin, Massachusetts

Re: Mining

Postby Chest Rockwell » Fri Apr 21, 2017 10:30 pm

what about stone?

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

Re: Mining

Postby Tillblik » Sun Apr 23, 2017 12:25 pm

should be easy to modify.


Return to Macros

Who is online

Users browsing this forum: No registered users and 2 guests

cron