Hail there ! First of all, excuse my english i still have trouble with it ! So, getting back on UOR (and UO) after lot of years, i was looking for a newbie way to make some cash and mining seemed like an option. But mining with only one character was cutting profit so i was looking for a recall mining. After reading again and again the forum, macro already made were not responding to my exact need so i decided to make my own. DISCLAIMER : This macro is far from perfect, i am not programmer, i am still learning Razor program so yeah, there's space to make it better in lot of ways (and smaller) but IT WORKS. ANYWAY this isn't mean to be played AFK, don't forget it's illegal to AFK gather and that the gump will put you in jail ! WHAT THIS MACRO DOES : Teleport to a Runebook location -> Mine 2 spots (that you decide) there -> Go back to Bank & depose everything -> At the end of cycle craft shovels. The base of this macro is "Modularity" meaning you can add/delete spots location, stop/start from certains locations etc. IT LL TAKE TIME TO SET THIS UP . Time to Setup : 2-3h Difficulty : Not THAT difficult but long This macro was made to add to my Recall Miner setup which you can find here : http://uorforum.com/threads/recall-mining-crafter-build.49046/ EDIT 24/05/20 : Added a dropbox link to the .rar file. (bottom of the page) EDIT 25/05/20 : Corrected a bug on the Restock targeting (thx to Cretoman to be the crash test dummy ), reuploaded files. EDIT 28/05/20 : Added a V2.0 version at the end of the page. WHAT DO YOU NEED : - 1 to 2 Runebooks (2 is the best because this way you don't have to wait and make "non stop circle") - 6 Bags in Bank - 2 Bags on you - At least 1 Tool Kit - Some Iron Ingot (enough, depending to your Tinkering Skill, to make 25 shovels) -16 to 32 Blanks Runes (32 for 2 Runebooks wayyyyy better) -1 rune to a Bank -Some Recall Regs (probably, as much as you can) -A Character with 100 str / 100 int seems to be the best for me -70.2 in magery is a must, you can do it with less but it is greatly appreciated to not fail the recall **RAZOR ORGANIZATION IS NEEDED TOO** .... Mine is set like this : -[Mining] (category) -LaunchRM -[RECALLMINING] (subcategory) -BankRestock1 -BankRestock2... -Rune1 -Rune2... -ShovelCraft You also need to set counters for shovels and tool kit, lot of post are talking about it and it is kind of easy so i won't go through all the process. BAGS SETUP : -Bank : You need 6 bags : -1 for ore -1 for regs -1 for shovels -1 for tool kit -2 for ingots -Inventory : You need 2 bags : -1 for regs -1 for shovels AGENTS : First of all add 2 Counters, 1 for shovel & 1 for tool kit I use 9 Agents, i set mine like this : *Organizer-1 : iron ore (the 4 size) setup to bag N°1 in the bank *Organizer-3 : shovel setup to bag N°3 in the bank *Organizer-4 : tool kit setup to bag N°4 in the bank *Organizer-5 : iron ingots setup to bag N°2 in the bank *Restock-1 : 10 of each recall regs setup to bag N°1 in your inventory taken from bag N°5 in the bank *Restock-2 : Iron ingots (from 100 to 250) setup to your inventory (doesn't matter where) taken from N°2 bag in the bank *Restock-3 : 3 shovels setup up to bag N°2 in your inventory *Restock-4 : 5 tool kits setup to your inventory (doesn't matter where) taken from bag N°6 in the bank *Restock-5 : 25 shovels setup to your inventory (doesn't matter where) HOW DOEST IT WORKS (SKELETON) : The macro is composed of..... 34 to 67 macros () yeah you read right 34-67 macros (1 or 2 runebooks). With some twinking you can get lower (like about an half) but i like the way you can stop/restart from anywhere you want, and the fact that you can select specifically where to dig. It is setup like this : 1 Launching Macro -> 16 Bank Macros -> 16 Mining Macros -> 1 Craft Shovels Macro Launching Macro (calls) -> Bank Macro 1 (calls) -> Rune Macro 1 (calls) -> Bank Macro 2 (calls) -> Rune Macro 2 (calls) -> etc..... and the last of your Rune Macro calls Craft Shovels Macro (which calls Bank Macro 1 so it makes a loop) CORE : Ok if you still there, we will see how these macros works, for obvious purpose i ll only post 1 of each then you can add as much as you want. LAUNCH Macro : Make a new macro in your Mining folder and call it like RECALL MACRO START or anything you want Code: // START Assistant.Macros.HotKeyAction|0|Play: Mining\RECALLMINING\ShovelCraft Not much to be explained, just a simple command that start the ShovelCraft macro which should be in your RECALLMINING folder. Why starting with ShovelCraft ? Because the "full course" of the Recall Mining macro takes time, and sometimes you just stop like mid-way... As u need 1088 for a full run (22 shovels) if you start with less than 22 shovels you can't do the full run without missing some.... So with this macro it'll always start by check that you have enough shovels to do your run. ShovelCraft : Make a new macro in your Mining/RECALLMINING folder and call it like this (if u change name, be sure to change the call name in your start macro and last rune macro) Code: // Restock Assistant.Macros.SpeechAction|0|690|3|ENU|8|80|2|0|32|7|0|113|153|Bank Guards Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.HotKeyAction|0|Restock Agent-05 \\ The 25 shovels agent, it ll take all your shovels from bank (if you already have any like if u stopped your last time mid-way) Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.HotKeyAction|1059| \\ Target yourself so it takes from the bank Assistant.Macros.PauseAction|00:00:15 Assistant.Macros.HotKeyAction|0|Restock Agent-02 \\ Taking 100-250 iron ingot to a specific bag in your bank Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.HotKeyAction|1059| Assistant.Macros.PauseAction|00:00:01 Assistant.Macros.HotKeyAction|0|Restock Agent-04 \\ Taking 5 tool kit from the bank (should be higher than what is really there) Assistant.Macros.PauseAction|00:00:01 Assistant.Macros.HotKeyAction|1059| Assistant.Macros.PauseAction|00:00:00.3000000 // Toolkit (if tool kit is lower than 4 it makes some when it starts) Assistant.Macros.WhileAction|50|2|4|tool kit Assistant.Macros.DoubleClickTypeAction|7864|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.GumpResponseAction|23|0|0 Assistant.Macros.PauseAction|00:00:03.4000000 Assistant.Macros.GumpResponseAction|0|0|0 Assistant.Macros.PauseAction|00:00:00.3000000 // Shovel (it ll make shovels and repeat untill you got 25 of them in your bag) Assistant.Macros.WhileAction|50|2|25|shovel Assistant.Macros.DoubleClickTypeAction|7864|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.GumpResponseAction|72|0|0 Assistant.Macros.PauseAction|00:00:03.4000000 Assistant.Macros.GumpResponseAction|0|0|0 Assistant.Macros.EndWhileAction Assistant.Macros.EndWhileAction Assistant.Macros.PauseAction|00:00:00.3000000 // Destock (put everything bag (iron/shovels/tool kit) in specific bags in your bank) Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.HotKeyAction|0|Organizer Agent-05 Assistant.Macros.PauseAction|00:00:01 Assistant.Macros.HotKeyAction|0|Organizer Agent-04 Assistant.Macros.PauseAction|00:00:01 Assistant.Macros.HotKeyAction|0|Organizer Agent-03 Assistant.Macros.PauseAction|00:00:14 Assistant.Macros.HotKeyAction|0|Play: Mining\RECALLMINING\Bank Restock1 \\ Will call the first line of the rune, here we go ! With this macro, it ll take all your tool kit from bank -> take all your shovels -> take iron ingots from a specific bag -> check that you have enough tool kit, if not, make more of them -> make shovels till you have 25 of them (on you) -> then put everything back to bank (shovels in shovels bag, tool kit in tool kit bag, iron in what we will call "the crafting restock bag") before launching the first Bank Restock line of the macro The Crafting Restock Bag : If you stock all the ingots you are making in the mining character bank itself and if u don't do "only iron" mining, you need 2 differents ingots bags for your macro to work. Razor don't detect difference between iron and colored ingots, so you should have one bag for all type of ingots (you can set an organize macro we'll see this later) and one with iron only that you ll manually stock for crafting purpose. If you use 2 types of bags like me, switch the "TargetSelf" (Assistant.Macros.HotKeyAction|1059|) commands on Restock-Agent 02 for your own bag ! Bank Restock Macro : Now we get into the real subject with the start of everything... You ll need 1 Bank Restock macro for every spot you wanna use, meaning 1 runebook = 16, 2 runebooks = 32. Some people are using regs count as indicators to switch location but, as a newbie, that's way over my head and that is the simpliest way i did find to make it works So go into your Razor folder (UORenaissance/Razor/CUO/Macros), create a Folder named "RECALLMINING" and create a macro named Bank Restock1.macro ... Put the code in it then duplicate and rename for as much spots as you want from Bank Restock1 to Bank Restock32 if you want 2 full runebooks. You ll just have to change the call in the last line of each file, i'll explain it later Code: Assistant.Macros.SpeechAction|0|690|3|ENU|8|80|2|0|32|7|0|113|153|Bank Guards Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.HotKeyAction|0|Restock Agent-01 Assistant.Macros.HotKeyAction|1059| Assistant.Macros.PauseAction|00:00:02.3000000 Assistant.Macros.HotKeyAction|0|Restock Agent-03 Assistant.Macros.HotKeyAction|1059| Assistant.Macros.PauseAction|00:00:02.3000000 Assistant.Macros.HotKeyAction|0|Organizer Agent-01 Assistant.Macros.PauseAction|00:00:06.8000000 Assistant.Macros.HotKeyAction|0|Play: Mining\RECALLMINING\Rune1 This is a simple code that ll drop all your ore in a bag, restock shovels/regs then call the Rune1 macros. When you duplicated your macros just be sure to edit all last number like Bank Restock2 must launch Mining\RECALLMINING\Rune2 , Bank Restock3 must launch Mining\RECALLMINING\Rune3 etc.... (you just have to change the last number, not the whole line) Rune Mining Macro : Ok the main time consuming setup is this macro... What i ll advice you to do, take your runebook/s, take regs (enough to Mark all the rune you need, depend on your magery skill), take your unmarked runes, take some shovels and go for spots.... The best way i did find (without having to edit the .macro too much) is to go for spot 1 > try with shovels to see that you are between 2 minable spots (using cursor distance in your option make it easier, look for 3 distance to an edge then to the opposed one) > mark the first rune > drop it into the runebook > create your first macro as Rune1 (always in your RECALLMINING Folder) and paste the code in it > set your 2 absolute target for mining (we will see this) + the absolute target of your recall rune > set the code of your runebook .... THIS IS ONLY FOR SPOT 1. For other spots you ll just have to mark > drop in runebook > duplicate the Rune1 macro > rename it (Rune2, Rune3 etc...) > set the 2 absolute target > change recall gump (we ll see this too) and the restock macro call number in the last line. Code: Assistant.Macros.DoubleClickAction|1169737595|3834 // This is your runebook you need to set up the exact number and if you are using more than one, switch every 16 macros (meaning 1 runebook number for rune1 to 16, 1 runebook number for 17 to 32 etc) Assistant.Macros.PauseAction|00:00:00.5000000 Assistant.Macros.GumpResponseAction|5|0|0 // Gump number is corresponding to the rune in your runebook Assistant.Macros.PauseAction|00:00:03 // The pause is 3s (for public spots) or 13s for wild spots Assistant.Macros.IfAction|5|0|374 // Meaning it ll stop mining if weight >= 374 so u ll be able to recall Assistant.Macros.DoubleClickTypeAction|3897|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.AbsoluteTargetAction|1|0|0|2576|476|0|1339 // First Absolute Target you'll have to set Assistant.Macros.PauseAction|00:00:01.7500000 Assistant.Macros.ForAction|16 // Looping 16 times Assistant.Macros.IfAction|5|0|374 Assistant.Macros.DoubleClickTypeAction|3897|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.LastTargetAction Assistant.Macros.PauseAction|00:00:01.7500000 Assistant.Macros.EndIfAction Assistant.Macros.EndForAction Assistant.Macros.DoubleClickTypeAction|3897|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.AbsoluteTargetAction|1|0|0|2571|481|0|1339 // Second Absolute Target you ll have to set Assistant.Macros.PauseAction|00:00:01.7500000 Assistant.Macros.ForAction|16 // Looping 16 times Assistant.Macros.IfAction|5|0|374 Assistant.Macros.DoubleClickTypeAction|3897|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.LastTargetAction Assistant.Macros.PauseAction|00:00:01.7500000 Assistant.Macros.EndIfAction Assistant.Macros.EndForAction Assistant.Macros.EndIfAction Assistant.Macros.HotKeyAction|3002042| Assistant.Macros.PauseAction|00:00:02 Assistant.Macros.AbsoluteTargetAction|0|0|1164539156|136|95|-256|7956 // Target for your Recall rune (back to Bank) Assistant.Macros.PauseAction|00:00:02 Assistant.Macros.HotKeyAction|0|Play: Mining\RECALLMINING\Bank Restock2 // Rune1 call Bank Restock2 > Rune2 call Bank Restock3 > etc... Gump Numbers : They are always the same whatever runebook you are using : They goes like this : Rune 1 : 5 // Rune 2 : 11 Rune 3 : 17 // Rune 4 : 23 Rune 5 : 29 // Rune 6 : 35 Rune 7 : 41 // Rune 8 : 47 Rune 9 : 53 // Rune10 : 59 Rune 11 : 65 // Rune 12 : 71 Rune 13 : 77 // Rune 14 : 83 Rune 15 : 89 // Rune 16 : 95 Be sure to to have the correct number for the correct rune ! Runebook Numbers : On the macro above this is the number for my runebook, dunno how it is set exactly but for your, i ll advice you to create a temporary test macro, start recording and d-click on your runebook/s .... you then only have to do a copy/paste of you own line (don't forget to remove the previous one) First and Second Absolute Target are the spots you ll be mining at, you ll just have to "re-target" them for all you Runes so it'll mine PRECISELY where u want, be it in a cave, or mountain or anything else. Every spot you find, you mark a rune, drop it into the runebook, duplicate the macro, change the gump for the good number, re-target the 2 absolute target for the spot you want to mine and change the number of the macro call on the last line. You'll do this for all your spots. EASIER WAY : There is for me an easiest way to do this but it require you to go through your files and edit them. Start by making the first rune (don't even need to go to the spot yet), we gonna start by setting up all runes. Do the "runebook number" copy/paste line mentionned above and the select recall rune target first, then duplicate files and switch all the call numbers and gump numbers (don't forget rune1 should call bank restock 2, bank restock 2 must call rune2 which should call restock 3 etc...). This way the skeleton will be ready and all you will have to do is to go for a spot / mark it / drop in runebook / set the absolute target for the mining spots and... that's all. Last Mining Rune Macro : The last mining macro change a little bit from others on the last line, it'll just add a de-stock for ore and launch the ShovelCraft macro : Code: Assistant.Macros.DoubleClickAction|1086054893|3834 Assistant.Macros.PauseAction|00:00:00.5000000 Assistant.Macros.GumpResponseAction|95|0|0 Assistant.Macros.PauseAction|00:00:03 Assistant.Macros.IfAction|5|0|374 Assistant.Macros.DoubleClickTypeAction|3897|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.AbsoluteTargetAction|1|0|0|2551|405|34|0 Assistant.Macros.PauseAction|00:00:01.7500000 Assistant.Macros.ForAction|16 Assistant.Macros.IfAction|5|0|374 Assistant.Macros.DoubleClickTypeAction|3897|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.LastTargetAction Assistant.Macros.PauseAction|00:00:01.7500000 Assistant.Macros.EndIfAction Assistant.Macros.EndForAction Assistant.Macros.DoubleClickTypeAction|3897|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.AbsoluteTargetAction|1|0|0|2553|399|37|0 Assistant.Macros.PauseAction|00:00:01.7500000 Assistant.Macros.ForAction|16 Assistant.Macros.IfAction|5|0|374 Assistant.Macros.DoubleClickTypeAction|3897|True Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.LastTargetAction Assistant.Macros.PauseAction|00:00:01.7500000 Assistant.Macros.EndIfAction Assistant.Macros.EndForAction Assistant.Macros.EndIfAction Assistant.Macros.HotKeyAction|3002042| Assistant.Macros.PauseAction|00:00:02 Assistant.Macros.AbsoluteTargetAction|0|0|1164539156|136|95|-256|7956 Assistant.Macros.PauseAction|00:00:00.8000000 Assistant.Macros.PauseAction|00:00:02 Assistant.Macros.SpeechAction|0|690|3|ENU|8|80|2|0|32|7|0|113|153|Bank Guards // Difference start here Assistant.Macros.PauseAction|00:00:00.3000000 Assistant.Macros.HotKeyAction|0|Organizer Agent-01 // Calling for Ore stock agent Assistant.Macros.PauseAction|00:00:08.8000000 Assistant.Macros.HotKeyAction|0|Play: Mining\RECALLMINING\ShovelCraft // Then launch the ShovelCraft MORE ADVICE/INFOS : These are things that i do or that can be done to make this experience worthy : -Mark a rune to Cove bank close to the forge, you can smelt from the bank in there -I am using a locked box as container for my rune/regs in my backpack, it helps against robbers ! -I set an organize agent that drop all my ingots in an ingot bag at my bank (not the same one used for crafting shovels) -I set a Stop macro HotKey and a Fast Recall macro HotKey in case of problem, monsters, robbers etc... -You could probably use a 2nd recall location with the sysmsg "the location" in case someone is on your recall bank spot -You could use a runebook to bank spots to recall back to a different bank each time so you won't have someone waiting for your regs/runes -If you GM Tinkering you can switch the numbers of ingots restock / shovel crafted with the 100 durability -This macro is intended for 1088 hits, 17 on each spots so 34 per runes -The tool kit and shovels number never raise in your bank, that's the result of taking them all and using the "while" loop before making them -If you want a 2nd macro like this for another account (or even a 3th) just duplicate the folder and the Launch macro, rename it (don't forget to change the call in the last line then) and change the runebook number. -As your Tinkering raise, full cycle will be faster, than you ll be probably start seeing spot where there is no metal when u get back. 2 possibilities, someone came and took it before you but most probably your runs are too fast !!! Meaning that ore doesn't have the time to replenish before you get back. Ore respawn in 1h so if you start seeing the "no metal" deadly sentence, try adding a pause/wait at the end of the 32th rune macro... For 75 tinkering i am currently using a 120sec (2mn) wait. -If your magery isn't at 70+ you can add a while mana > 90 loop before every recall (don't forget the "end while" after) -Close all other UO sessions when you are setting up the Recall Miner, TRUST ME, i made the same mistake multiple time and it's always DAMN UGLY to finish setting up all the re-target just to see that another session has just overwrittent all you did... Thank you for reading, hope it can help even only one newbie like me, and many thanks to all the people that helped me on Discord makingn this work, it took me a lonnggggg time to set this up ! It's not the easiest nor the best recall mining macro but it does the work, the good part of it is to be able to mine specific spots and not only cave. FILES LINK : Sinces .rar can't be upload on the forum I made a drop link : https://www.dropbox.com/s/3ghwomygy2alhws/AUTOMINING.rar?dl=0 So what to do with it ! First you need to unrar this compressed files with a program like... winrar... Then put the Mining folder at root on the Razor macro folder. From here, steps by steps : -Set your agents -If you are using multiple ingots bags, be sure to retarget the one you want to take iron from in the ShovelCycle macro ! -Get your runebook and mark your runes -Create a test macro where you record yourself using the 2 runebooks, open your test file with a text editor, copy the line of the first runebook and replace the line in from files Rune1 to Rune16 (it should look like this : Assistant.Macros.DoubleClickAction|1169737595|3834 (it's the first line in the Runes macro).... Then do the same thing with your 2nd runebook from Rune 17 to rune 32. -Get on Razor, go to the Rune1, at the bottom of the macro you'll see a lines that says : Exec : Recall Pause 2.00sec Absolute Target Right-click on Absolute Target and click on "Re-Target" then select the Rune in your backpack that you are going to use to get back to the Bank. -Back to text editor search for the line of the target after recall it should looks like this : Assistant.Macros.HotKeyAction|3002042| Assistant.Macros.PauseAction|00:00:02 Assistant.Macros.AbsoluteTargetAction|0|0|1164539156|136|95|-256|7956 -Copy the line of the AbsoluteTargetAction and replace it from Runes2 to Runes32. -Mark your runes & drop them into the runebooks -Go to each spot one by one starting from Runes1 and Re-Target the 2 Absolute Target of the corresponding Runes after the 2 : Double Click (shovel (0F39)) Pause .30sec Absolute Target -YOU ARE READY TO GO !!!! ADVICE : -Don't forget to save, be it on text editor or razor -Close your game before doing this and only open 1 client when needed then re-close the game after you've set up everything.... Then you can launch and do it whenever you want ! -Close all other UO sessions when you are setting up the Recall Miner, TRUST ME, i made the same mistake multiple time and it's always DAMN UGLY to finish setting up all the re-target just to see that another session has just overwrittent all you did... VERSION 2.0 : I am setting up the VERSION 2.0 on an other section/files cause 1- Some people may dislike it / 2- It's still in beta test.... What can i still add from the first version ? Pretty simple, Hiding as soon as you bank, Setting a recall loop so if you fail your cast or get disrupted by a world save it'll recast, and adding a 2nd rune for getting back to bank in case the first one get a location blocked. THE FILES ARE HERE : https://www.dropbox.com/s/iarvdu4wz8c0z8o/AUTOMINERV2.rar?dl=0 What to change from the last version ? The setup is pretty much the same, you just need to re-target the last absolute target from the last recall of each runes files (make it for the first one and switch all others with text editor) and target a 2nd Bank rune. I am still a newbie with Razor & there are a lot of things that i don't know yet, so if any veteran can help, anyway all return all welcome, be it here or on Discord (Daping). Thank you !
This macro is version 0.9 i am thinking at some more things to change like switch the recall lines to a new recall macro so u don't have to re-set every target each time you want to change your Recall Bank rune....
This macro took me a while to set up, I won’t lie. I was glad to help work out some bugs and point out where things could be better explained. It really is a great macro! It has allowed me to GM mining on my main crafter, who hit a “wall of awful” after hitting 95 mining...2 years ago! My battle miner is now working mining—At 85 currently. Thanks, @Daping for your work on this!
If you guys experience any trouble setting it up (yeah it's not THAT simple and time consuming) just send me a PM on Discord and I'll help you through all the process.
This is cool, good work man If you ever want to chat about macros hit me up on Discord, happy to go over some advanced stuff to help you refine/add stuff, I'm a massive Razor nerd and always keen to help a fellow macro'er. - Patek