Compatibility unverified
This community Razor script has not been tested in game by the Hub. Read its setup and client requirements before use.
Script by Brozan If you are using it you know what it is designed for
Gathering
Walking miner with multiple rails.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/7f292030-d0a9-498a-9e80-a4dd6f98eeb4 for latest2# Automation by Jaseowns3## Script: Walking miner with multiple rails4## Created by: Brozan (Syal)#45235#############################################6 7#Script by Brozan8#If you are using it you know9# what it is designed for10 11###12# YOU MUST SET UP Organizer 1513# To dump ore 14# Before you Run This15# Agents->Organizer 15->Add Target16# Then target a pile of ore17###18 19#Needs magery 6020#Have a marked recall rune in pack21# and regs22 23#Need tracking turned on24# and set to all hostile 25# not in houses/party/guild26 27clearsysmsg 28@createlist packAnimals29 30#First Run Routine31if not timerexists "miner"32 #Assign pack animals to variables33 #On first launch of UO 34 #Tracking Routine - Turn it on if we have not yet35 while not insysmsg "You will receive"36 hotkey 'Tracking'37 wait 50038 gumpresponse 6 426746765939 wait 55040 gumpclose 426746765941 endwhile 42 if list packAnimals <= 043 @clearlist packAnimals44 @pushlist 'packAnimals' "p1"45 @pushlist 'packAnimals' "p2"46 @pushlist 'packAnimals' "p3"47 @pushlist 'packAnimals' "p4"48 endif 49 #We use this as a first run loop to set vars50 overhead 'First Run!'51 createtimer "miner"52 settimer "miner" 110053 createtimer "aid time"54 settimer "aid time" 1210055 createtimer 'healpot time'56 settimer "healpot time" 1210057 createtimer 'anti pot spam'58 settimer "anti pot spam" 1210059 createtimer 'hostility'60 settimer "hostility" 1210061 # Setup pack variable62 overhead 'If you have less than 4 pack animals'63 overhead 'Just click the same ones for later animals'64 wait 100065 overhead 'Select your pack1'66 setvar! 'pack1'67 wait 20068 overhead 'Select your pack2'69 setvar! 'pack2'70 wait 20071 overhead 'Select your pack3'72 setvar! 'pack3'73 wait 20074 overhead 'Select your pack4'75 setvar! 'pack4'76 wait 200 77 overhead 'Select your escape rune/book'78 setvar! 'escape'79 wait 200 80 say 'all follow me'81 overhead 'Make Sure Tracking is on!'82 sysmsg 'Make Sure Tracking is on!'83 wait 20084 overhead 'Make Sure Tracking is on!'85 sysmsg 'Make Sure Tracking is on!'86 wait 20087 overhead 'Make Sure Tracking is on!'88 sysmsg 'Make Sure Tracking is on!'89 wait 20090endif91 92#####Smart(ish) movement choser######93@createlist moveList94overhead 'Scissors->Move up/right'95wait 25596overhead 'Heal Pot->Move Up/Left'97wait 25598overhead 'Dagger->Move left/up'99wait 255100overhead 'Pick->Move left/down'101wait 255102overhead 'Book->Move down/left'103wait 255104overhead 'Pouch->Move right/down'105wait 255106overhead 'Backpack->Move right/North'107wait 255108setvar! 'moveQueuePicker'109wait 250110 111####Modify here if you want different movement options######112#check label113getlabel 'moveQueuePicker' 'seriallabel'114if "scissors" in 'seriallabel'115 overhead 'You chose moving up/right' 53 116 @clearlist moveList117 for 4118 @pushlist 'moveList' "up"119 endfor 120 for 6121 @pushlist 'moveList' "right"122 endfor 123elseif "dagger" in 'seriallabel'124 overhead 'You chose moving left/up' 53 125 @clearlist moveList126 for 4127 @pushlist 'moveList' "left"128 endfor 129 for 6130 @pushlist 'moveList' "up"131 endfor 132elseif "Heal" in 'seriallabel'133 overhead 'You chose moving up/left' 53 134 @clearlist moveList135 for 4136 @pushlist 'moveList' "up"137 endfor 138 for 6139 @pushlist 'moveList' "left"140 endfor 141elseif "book" in 'seriallabel'142 overhead 'You chose moving down/left' 53 143 @clearlist moveList144 for 4145 @pushlist 'moveList' "down"146 endfor 147 for 6148 @pushlist 'moveList' "left"149 endfor 150elseif "pouch" in 'seriallabel'151 overhead 'You chose moving down/right' 53 152 @clearlist moveList153 for 6154 @pushlist 'moveList' "right"155 endfor 156 for 5157 @pushlist 'moveList' "down"158 endfor 159elseif "pick" in 'seriallabel'160 overhead 'You chose moving left/down' 53 161 @clearlist moveList162 for 4163 @pushlist 'moveList' "left"164 endfor 165 for 6166 @pushlist 'moveList' "down"167 endfor 168elseif "backpack" in 'seriallabel'169 overhead 'You chose moving right/North' 53 170 @clearlist moveList171 for 4172 @pushlist 'moveList' "right"173 endfor 174 for 6175 @pushlist 'moveList' "north"176 endfor 177else178 overhead 'You broke something, restart script' 33179endif 180 181while not dead 182 183 if insysmsg 'Now tracking'184 overhead 'Ah shit!!!'185 cast 'recall'186 waitfortarget187 target 'escape'188 wait 500189 while mana = maxmana190 overhead "Recall failed"191 cast 'recall'192 waitfortarget193 target 'escape'194 wait 500195 endwhile196 stop197 endif 198 199 overhead 'Love Tap!' 23200 #Hit it once to start 201 hotkey 'use item in hand'202 settimer "miner" 0203 wait 1250204 205 #######Mining Loop####### 206 while not insysmsg 'You do not see any'207 208 ####### Heal Routine ####### 209 # Healing Survival210 if skill 'Healing' > 1211 if insysmsg 'You begin applying the bandages'212 settimer 'aid time' 0213 endif214 if hits < maxhits and timer 'aid time' > 10250 215 hotkey 'bandage self'216 settimer 'aid time' 0217 endif218 endif219 # Cure Survival220 if poisoned 'self' and timer 'anti pot spam' > 1000221 overhead 'Used: Cure Potion' 33222 hotkey 'Drink Cure' 223 settimer 'anti pot spam' 0224 endif 225 # Heal Potion226 if hits < 55 and timer 'healpot time' > 10000 and timer 'anti pot spam' > 1000227 overhead 'Used: Heal Potion' 33228 hotkey 'Drink Heal'229 settimer 'healpot time' 0230 settimer 'anti pot spam' 0231 endif 232 233 234 if insysmsg 'Now tracking'235 overhead 'Ah shit!!!'236 cast 'recall'237 waitfortarget238 target 'escape'239 wait 500240 while mana = maxmana241 overhead "Recall failed"242 cast 'recall'243 waitfortarget244 target 'escape'245 wait 500246 endwhile247 stop248 endif 249 250 #Weight check251 if weight >= 365252 overhead 'Too fat - restart'253 break254 endif255 256 #Pick Check257 if rhandempty258 dclicktype '3718'259 wait 600260 endif261 262 #Above loops more often, this is where we wait for mining timer between swings263 if timer "miner" >= 1050264 #wait 100265 if insysmsg 'Harvesting is not'266 overhead 'Cant harvest'267 break268 endif269 if insysmsg 'recently travel'270 overhead 'Just recalled'271 break272 endif273 if insysmsg 'You have worn out your tool!'274 break275 endif 276 277 278 //captcha check279 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'280 //pause and check again281 wait 250282 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'283 while not insysmsg "Captcha"284 overhead 'Captcha break or Done!' 34285 wait 1000286 endwhile287 endif288 endif289 290 #clearsysmsg 291 hotkey 'use item in hand'292 settimer "miner" 0293 wait 200294 endif295 endwhile296 297 overhead 'Spot Done' 33298 sysmsg 'Spot Done' 33299 300 ######DUMP Loop#######301 if findtype 6585 'backpack'302 303 #Check if we have used all packies304 if list packAnimals <= 0305 @clearlist packAnimals306 @pushlist 'packAnimals' "p1"307 @pushlist 'packAnimals' "p2"308 @pushlist 'packAnimals' "p3"309 @pushlist 'packAnimals' "p4"310 endif311 312 #Set Oragnizer 15 to whatever packie is next313 if inlist 'packAnimals' 'p1'314 overhead 'Pack 1 Dump!'315 organizer 15 'set' 316 wft 500317 target 'pack1'318 poplist 'packAnimals' 'front'319 elseif inlist 'packAnimals' 'p2'320 overhead 'Pack 2 Dump!'321 organizer 15 'set' 322 wft 500323 target 'pack2'324 poplist 'packAnimals' 'front'325 elseif inlist 'packAnimals' 'p3'326 overhead 'Pack 3 Dump!'327 organizer 15 'set' 328 wft 500329 target 'pack3'330 poplist 'packAnimals' 'front'331 elseif inlist 'packAnimals' 'p4'332 overhead 'Pack 4 Dump!'333 organizer 15 'set' 334 wft 500335 target 'pack4'336 poplist 'packAnimals' 'front'337 else 338 overhead 'Something done broke'339 endif 340 wait 100341 342 #Organizer is now set, dump343 organizer 15344 endif345 346 hotkey 'All Names'347 overhead 'Time to move!'348 349 foreach x in moveList350 walk x351 wait 150352 endfor353 354endwhile 