Script by Brozan Spot Miner with recall on Track and dump to pack horse
GatheringOrganizing
Spot Miner.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/a9e468d0-9e2e-4419-850c-154e86fb853d for latest2# Automation by Jaseowns3## Script: Spot Miner4## Created by: Brozan (Syal)#45235#############################################6 7#Script by Brozan8#Spot Miner with recall on Track9# and dump to pack horse10 11###12 13// REQUIRES script "Miner Recall"14// If you do not want to set this up15// create a script named above16// and just have a recall routine in it17 18###19// YOU MUST SET UP Organizer 1520// To dump ore 21// Before you Run This22// Agents->Organizer 15->Add Target23// Then target a pile of ore24###25 26#Needs magery 6027#Have a marked recall rune in pack28# and regs and no unmarked29 30#Need tracking turned on31# and set to all hostile 32# not in houses/party/guild33 34clearsysmsg 35@createlist packAnimals36if not varexist startMining37 #Assign pack animals to variables38 #On first launch of UO 39 if list packAnimals <= 040 @clearlist packAnimals41 @pushlist 'packAnimals' "p1"42 @pushlist 'packAnimals' "p2"43 @pushlist 'packAnimals' "p3"44 @pushlist 'packAnimals' "p4"45 endif 46 #We use this as a first run loop to set vars47 overhead 'First Run!'48 createtimer "miner"49 settimer "miner" 110050 hotkey 'Tracking'51 wait 50052 # Setup pack variable53 overhead 'If you have less than 4 pack animals'54 overhead 'Just click the same ones for later animals'55 wait 100056 overhead 'Select your pack1'57 setvar! 'pack1'58 wait 20059 overhead 'Select your pack2'60 setvar! 'pack2'61 wait 20062 overhead 'Select your pack3'63 setvar! 'pack3'64 wait 20065 overhead 'Select your pack4'66 setvar! 'pack4'67 wait 20068 69 #sysmsg 'Using Follow Packies In Order' 2370 #sysmsg pack171 #sysmsg pack272 #sysmsg pack373 #sysmsg pack474 say 'all follow me'75 overhead 'Make Sure Tracking is on!'76 sysmsg 'Make Sure Tracking is on!'77endif78 79setvar! startMining 080 81overhead 'Starting'82 83# Equip a pickaxe84if rhandempty85 dclicktype '3718'86 wait 60087endif88 89#Hit it once90hotkey 'use item in hand'91settimer "miner" 092//long delay for lag and empty spot check93wait 125094 95#Mining Loop96while not insysmsg 'You do not see any'97//while insysmsg 'Ore'98 if insysmsg 'Now tracking'99 overhead 'Ah shit!!!'100 script 'Miner Recall'101 endif 102 if weight >= 365103 overhead 'Too fat - restart'104 break105 endif106 107 if timer "miner" >= 1000108 #wait 100109 if insysmsg 'Harvesting is not'110 overhead 'Cant harvest'111 break112 endif113 if insysmsg 'recently travel'114 overhead 'Just recalled'115 break116 endif117 if insysmsg 'You have worn out your tool!'118 break119 endif 120 121 //captcha check122 if not insysmsg "skill gain" and not insysmsg 'world is saving' and not insysmsg 'world will save' and not insysmsg 'World save complete' and not insysmsg 'You dig' and not insysmsg 'You loosen' and not insysmsg 'Distance to destination' and not insysmsg 'Now tracking'123 //pause and check again124 wait 250125 if not insysmsg "skill gain" and not insysmsg 'world is saving' and not insysmsg 'world will save' and not insysmsg 'World save complete' and not insysmsg 'You dig' and not insysmsg 'You loosen' and not insysmsg 'Distance to destination' and not insysmsg 'Now tracking'126 overhead 'Captcha break or Done!' 34127 break128 endif129 endif130 131 #clearsysmsg 132 hotkey 'use item in hand'133 settimer "miner" 0134 wait 100135 endif136 wait 50137endwhile138 139overhead 'Spot Done' 33140sysmsg 'Spot Done' 33141#dclicktype 'lute'142 143#Dump ore if we have it144 145 146 147if findtype 6585 'backpack'148 149 #Check if we have used all packies150 if list packAnimals <= 0151 @clearlist packAnimals152 @pushlist 'packAnimals' "p1"153 @pushlist 'packAnimals' "p2"154 @pushlist 'packAnimals' "p3"155 @pushlist 'packAnimals' "p4"156 endif157 158 #Set Oragnizer 15 to whatever packie is next159 if inlist 'packAnimals' 'p1'160 overhead 'Pack 1 Dump!'161 organizer 15 'set' 162 wft 500163 target 'pack1'164 poplist 'packAnimals' 'front'165 elseif inlist 'packAnimals' 'p2'166 overhead 'Pack 2 Dump!'167 organizer 15 'set' 168 wft 500169 target 'pack2'170 poplist 'packAnimals' 'front'171 elseif inlist 'packAnimals' 'p3'172 overhead 'Pack 3 Dump!'173 organizer 15 'set' 174 wft 500175 target 'pack3'176 poplist 'packAnimals' 'front'177 elseif inlist 'packAnimals' 'p4'178 overhead 'Pack 4 Dump!'179 organizer 15 'set' 180 wft 500181 target 'pack4'182 poplist 'packAnimals' 'front'183 else 184 overhead 'Something done broke'185 endif 186 wait 100187 188 #Organizer is now set, dump189 organizer 15190 while queued191 wait 1000192 endwhile193 194 #if counttype 6585 pack4 <= 200195endif196 197hotkey 'All Names'198 199while not dead200 if timer "miner" >= 3000201 #dclicktype 'lute'202 overhead 'Tracking'203 settimer miner 0204 endif205 if insysmsg 'Now tracking'206 overhead 'Ah shit!!!'207 script 'Miner Recall'208 endif209 wait 500210 211 if weight >= 365212 overhead 'Too fat'213 endif214endwhile