Compatibility unverified
This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.
Simple Auto Miner with Player Escape Based on Bapeths/Jaseowns examples Features: - Auto Mines using "Use Item in Hand" - Maintains Tracking buff (Tracks All Players) - Auto Recalls if a player is found nearby - Offloads ore to pack animal…
GatheringTracking
Bigguns Simple Miner.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/2fce4de4-c095-4252-8427-5a69af850354 for latest2# Automation by Jaseowns3## Script: Bigguns Simple Miner4## Created by: bigguns.#05#############################################6 7# Simple Auto Miner with Player Escape8# Based on Bapeths/Jaseowns examples9#10# Features:11# - Auto Mines using "Use Item in Hand"12# - Maintains Tracking buff (Tracks All Players)13# - Auto Recalls if a player is found nearby14# - Offloads ore to pack animal if weight > 50015#16# Requirements:17# - Mining Tool in hand18# - Pack Animal nearby19# - Runebook or Rune for escape20#21# Setup:22# 1. Set your escape rune/book when prompted23# 2. Have a pack animal nearby24 25# Configuration26@setvar! maxWeight 50027@setvar! searchDistance 4028 29# --- Initialization ---30 31if not varexist "escapeRune"32 overhead "Select your Escape Rune or Runebook" 8833 setvar "escapeRune"34endif35 36if not varexist "myPackAnimal"37 if findtype "291|292" ground -1 -1 2 as animal38 @setvar "myPackAnimal" animal39 overhead "Pack animal found" 6840 else41 overhead "Target your pack animal" 8842 setvar "myPackAnimal"43 endif44endif45 46# --- Main Loop ---47 48clearsysmsg49while not dead50 # 1. Safety Check (High Priority)51 # Check for specific distances (1-39 spaces) in system messages52 # Matches format "(X spaces" as seen in logs53 if insysmsg "(1 spaces" or insysmsg "(2 spaces" or insysmsg "(3 spaces" or insysmsg "(4 spaces" or insysmsg "(5 spaces" or insysmsg "(6 spaces" or insysmsg "(7 spaces" or insysmsg "(8 spaces" or insysmsg "(9 spaces"54 overhead "PLAYER CLOSE! ESCAPING!" 3855 hotkey 'Cancel Current Target'56 cast "Recall"57 wft 350058 target "escapeRune"59 stop60 elseif insysmsg "(10 spaces" or insysmsg "(11 spaces" or insysmsg "(12 spaces" or insysmsg "(13 spaces" or insysmsg "(14 spaces" or insysmsg "(15 spaces" or insysmsg "(16 spaces" or insysmsg "(17 spaces" or insysmsg "(18 spaces" or insysmsg "(19 spaces"61 overhead "PLAYER CLOSE! ESCAPING!" 3862 hotkey 'Cancel Current Target'63 cast "Recall"64 wft 350065 target "escapeRune"66 stop67 elseif insysmsg "(20 spaces" or insysmsg "(21 spaces" or insysmsg "(22 spaces" or insysmsg "(23 spaces" or insysmsg "(24 spaces" or insysmsg "(25 spaces" or insysmsg "(26 spaces" or insysmsg "(27 spaces" or insysmsg "(28 spaces" or insysmsg "(29 spaces"68 overhead "PLAYER CLOSE! ESCAPING!" 3869 hotkey 'Cancel Current Target'70 cast "Recall"71 wft 350072 target "escapeRune"73 stop74 elseif insysmsg "(30 spaces" or insysmsg "(31 spaces" or insysmsg "(32 spaces" or insysmsg "(33 spaces" or insysmsg "(34 spaces" or insysmsg "(35 spaces" or insysmsg "(36 spaces" or insysmsg "(37 spaces" or insysmsg "(38 spaces" or insysmsg "(39 spaces"75 overhead "PLAYER CLOSE! ESCAPING!" 3876 hotkey 'Cancel Current Target'77 cast "Recall"78 wft 350079 target "escapeRune"80 stop81 elseif insysmsg "(40 spaces" or insysmsg "(41 spaces" or insysmsg "(42 spaces" or insysmsg "(43 spaces" or insysmsg "(44 spaces" or insysmsg "(45 spaces" or insysmsg "(46 spaces" or insysmsg "(47 spaces" or insysmsg "(48 spaces" or insysmsg "(49 spaces"82 overhead "PLAYER CLOSE! ESCAPING!" 3883 hotkey 'Cancel Current Target'84 cast "Recall"85 wft 350086 target "escapeRune"87 stop88 elseif insysmsg "(50 spaces" or insysmsg "(51 spaces" or insysmsg "(52 spaces" or insysmsg "(53 spaces" or insysmsg "(54 spaces" or insysmsg "(55 spaces" or insysmsg "(56 spaces" or insysmsg "(57 spaces" or insysmsg "(58 spaces" or insysmsg "(59 spaces"89 overhead "PLAYER CLOSE! ESCAPING!" 3890 hotkey 'Cancel Current Target'91 cast "Recall"92 wft 350093 target "escapeRune"94 stop95 elseif insysmsg "(60 spaces" or insysmsg "(61 spaces" or insysmsg "(62 spaces" or insysmsg "(63 spaces" or insysmsg "(64 spaces" or insysmsg "(65 spaces" or insysmsg "(66 spaces" or insysmsg "(67 spaces" or insysmsg "(68 spaces" or insysmsg "(69 spaces"96 overhead "PLAYER CLOSE! ESCAPING!" 3897 hotkey 'Cancel Current Target'98 cast "Recall"99 wft 3500100 target "escapeRune"101 stop102 elseif insysmsg "(70 spaces"103 overhead "PLAYER CLOSE! ESCAPING!" 38104 hotkey 'Cancel Current Target'105 cast "Recall"106 wft 3500107 target "escapeRune"108 stop109 endif110 111 # Clear buffer AFTER checking, so we're ready for new messages during the next mining cycle112 clearsysmsg113 114 # 2. Tracking Maintenance115 # Checks if tracking buff is missing116 if not findbuff "Tracking"117 # Clear any existing gumps first118 if gumpexists 4267467659119 gumpclose 4267467659120 endif121 122 useskill "Tracking"123 waitforgump 4267467659 2000124 125 # Select "Players" (Adjust button ID if needed for your specific shard/gump)126 # Often: 5=Animals, 6=Monsters, 7=Humans/Players, 8=Everything127 # Assuming Button 8 for "All/Everything" or check your server's specific ID128 gumpresponse 7 4267467659129 130 # Wait for potential sub-gump or confirmation131 wait 500132 if gumpexists 4267467659133 # confirm tracking134 gumpresponse 6 4267467659135 endif136 137 pause 1000138 endif139 140 # 3. Weight Check & Unload141 if weight > maxWeight142 if find "myPackAnimal" ground -1 -1 4143 overhead "Overweight. Unloading..." 55144 145 # Open pack animal bag if needed146 dclick "myPackAnimal"147 pause 600148 149 # Find Ore (Graphic 6585 is generic ore pile, add others if needed)150 while findtype "6585" backpack as ore151 lift ore 60000152 drop "myPackAnimal"153 pause 600154 endwhile155 156 overhead "Unload Complete" 68157 else158 overhead "Pack animal too far!" 38159 endif160 endif161 162 # 4. Mining Loop163 # Assumes tool is in hand (Outlands style)164 if findlayer self righthand or findlayer self lefthand165 hotkey 'Use Item in Hand'166 167 # Wait for system response or target cursor168 # Adjust delay based on mining speed169 wait 1000170 171 if targetexists 172 target "self"173 endif174 else175 overhead "Equip a mining tool!" 38176 pause 2000177 endif178 179 # Small delay to prevent CPU spam180 wait 200181endwhile