Simple Miner, attended by 大向

Description: This is a simple mining script that mines all tiles around you. It will not stop until the spot is depleted, and it will let you know when that's the case.

This script does NOT automate the usage of pack animals. It will spit out instructions on how to set up Razor to continue, namely:

Go into Razor -> Options -> Additional Options -> Check "Stack Ore/Logs/Fish at your feet"

You can then frog the ore you mined to a forge and smelt it, or grab it with another char and carry it away.

Or you can just bring your packy and drop the shit from the ground into its pack.

If you carry multiple pickaxes in your backpack, it will cycle through them.

This script does not move your character. It's just there to make mining more convenient. I based this off of Jase's simple Lumber script that has since been updated to be a fully packy-powered one.

if lhandempty if findtype "pickaxe" backpack as item lift item drop self lefthand wait 650 endif endif if diffweight < 5 or weight > maxweight overhead "Go into Razor -> Options -> Additional Options -> Check Stack Ore/Logs/Fish at your feet" 34 wait 1000 replay endif if insysmsg "Your backpack is full" overhead "Backpack is full, drop or smelt" 34 wait 1000 replay endif hotkey "Use item in hand" wft 500 targetrelloc -1 0 for 20 if insysmsg "can't mine here" overhead "You can't mine here" 88 wait 500 replay elseif insysmsg "loosen some rock" // do nothing replay elseif insysmsg "dig some" // do nothing replay elseif insysmsg "no metal here" hotkey "Use item in hand" wft 500 targetrelloc -1 1 for 20 if insysmsg "can't mine here" overhead "You can't mine here" 88 wait 500 replay elseif insysmsg "loosen some rock" // do nothing replay elseif insysmsg "dig some" // do nothing replay elseif insysmsg "no metal here" hotkey "Use item in hand" wft 500 targetrelloc 0 -1 for 20 if insysmsg "can't mine here" overhead "You can't mine here" 88 wait 500 replay elseif insysmsg "loosen some rock" // do nothing replay elseif insysmsg "dig some" // do nothing replay elseif insysmsg "no metal here" hotkey "Use item in hand" wft 500 targetrelloc 1 -1 for 20 if insysmsg "can't mine here" overhead "You can't mine here" 88 wait 500 replay elseif insysmsg "loosen some rock" // do nothing replay elseif insysmsg "dig some" // do nothing replay elseif insysmsg "no metal here" hotkey "Use item in hand" wft 500 targetrelloc 1 0 for 20 if insysmsg "can't mine here" overhead "You can't mine here" 88 wait 500 replay elseif insysmsg "loosen some rock" // do nothing replay elseif insysmsg "dig some" // do nothing replay elseif insysmsg "no metal here" hotkey "Use item in hand" wft 500 targetrelloc 1 1 for 20 if insysmsg "can't mine here" overhead "You can't mine here" 88 wait 500 replay elseif insysmsg "loosen some rock" // do nothing replay elseif insysmsg "dig some" // do nothing replay elseif insysmsg "no metal here" hotkey "Use item in hand" wft 500 targetrelloc 0 1 for 20 if insysmsg "can't mine here" overhead "You can't mine here" 88 wait 500 replay elseif insysmsg "loosen some rock" // do nothing replay elseif insysmsg "dig some" // do nothing replay elseif insysmsg "no metal here" hotkey "Use item in hand" wft 500 targetrelloc -1 1 for 20 if insysmsg "can't mine here" overhead "You can't mine here" 88 wait 500 replay elseif insysmsg "loosen some rock" // do nothing replay elseif insysmsg "dig some" // do nothing replay elseif insysmsg "no metal here" // move overhead "Spot depleted, move on" 88 wait 500 replay endif wait 200 endfor endif wait 200 endfor endif wait 200 endfor endif wait 200 endfor endif wait 200 endfor endif wait 200 endfor endif wait 200 endfor endif wait 200 endfor

Back to "mining" tags