You will need to create two macros in your %appdata%/razor/macros directory, or wherever your macros are stored on your system. They need to be named the same, mining and ingotKeys.
Set up instructions will follow the macros.
Here is the mining macro:
Code: Select all
!Loop
Assistant.Macros.IfAction|4|0|the requested target is
Assistant.Macros.HotKeyAction|1332|
Assistant.Macros.SetLastTargetAction
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|5|1|400
Assistant.Macros.SpeechAction|0|906|3|ENU|0|Full!
Assistant.Macros.ForAction|6
Assistant.Macros.DoubleClickTypeAction|6585|True
Assistant.Macros.PauseAction|00:00:00.2500000
Assistant.Macros.AbsoluteTargetAction|0|0|1090859205|161|74|0|3634
Assistant.Macros.PauseAction|00:00:00.5000000
Assistant.Macros.EndForAction
Assistant.Macros.HotKeyAction|0|Play: ingotKeys
Assistant.Macros.SetLastTargetAction
Assistant.Macros.ElseAction
Assistant.Macros.IfAction|4|0|you have worn out your tool
Assistant.Macros.SpeechAction|2|537|3|ENU|0|
Assistant.Macros.DoubleClickTypeAction|7864|True
Assistant.Macros.WaitForGumpAction|2002155655|False|1
Assistant.Macros.GumpResponseAction|8|0|0
Assistant.Macros.WaitForGumpAction|2002155655|False|1
Assistant.Macros.GumpResponseAction|72|0|0
Assistant.Macros.WaitForGumpAction|2002155655|False|1
Assistant.Macros.PauseAction|00:00:00.7500000
Assistant.Macros.ElseAction
Assistant.Macros.DoubleClickTypeAction|3897|True
Assistant.Macros.WaitForTargetAction|1
Assistant.Macros.LastTargetAction
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.ElseAction
Assistant.Macros.IfAction|4|0|dig some
Assistant.Macros.DoubleClickTypeAction|3897|True
Assistant.Macros.WaitForTargetAction|1
Assistant.Macros.LastTargetAction
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.ElseAction
Assistant.Macros.IfAction|4|0|no metal
Assistant.Macros.SpeechAction|0|906|3|ENU|0|Move on!
Assistant.Macros.DoubleClickTypeAction|3897|True
Assistant.Macros.PauseAction|00:00:05
Assistant.Macros.EndIfAction
Assistant.Macros.IfAction|4|0|target cannot be seen.
Assistant.Macros.DoubleClickTypeAction|3897|True
Assistant.Macros.PauseAction|00:00:02.5000000
Assistant.Macros.EndIfAction
Assistant.Macros.EndIfAction
Assistant.Macros.EndIfAction
Assistant.Macros.EndIfAction
Code: Select all
Assistant.Macros.DoubleClickAction|1094255793|5995
Assistant.Macros.ForAction|8
Assistant.Macros.PauseAction|00:00:00.2500000
Assistant.Macros.GumpResponseAction|15|0|0
Assistant.Macros.PauseAction|00:00:00.1250000
Assistant.Macros.TargetTypeAction|False|7154
Assistant.Macros.EndForAction
Assistant.Macros.GumpResponseAction|0|0|0
Assistant.Macros.PauseAction|00:00:00.2500000
Assistant.Macros.HotKeyAction|1332|
Assistant.Macros.PauseAction|00:00:01
Assistant.Macros.HotKeyAction|0|Play: mining
This is pretty straight forward. You need to have in your bag the following:
Shovel with a high use amount
*(The script was originally set up to create a new shovel using tinker tools if it broke, but because of the keys portion of this updated version, the iron ingots go to your keys and are not available for tinkering)
Mobile Forge
Metal Worker's Keys
Load mining.macro in razor. The script is set up to target by type (shovel) but if for some strange reason it cannot find your shovel, you may have to highlight the lines that say Double Click (shovel(0F39)), right click, click on retarget and click your shovel.
Inside the ingotKeys macro, you will need to click on "Absolute Target" and retarget that to your metal worker's keys. I also carry other keys, so using target by type was not plausible.
Run the mining.macro.
You will be given a target, click where you'd like to mine. When your bag hits 400 weight (You can adjust the weight in the macro near the top), it will automatically smelt all your ores on the mobile forge (*Note: It goes through a loop of 6 currently , if you ever find yourself digging up more than 6 types of ore before you are "full", feel free to change this number. You can also make it less to speed up the macro if you never need 6...)
After the ingots are created, it will open up ingotKeys and add, again in a 6 loop, all the ingots to your keys. It will close the gump, cancel last target and restart mining, asking you to retarget.
If there is nothing to mine in a spot, you will have a new target and about 5 - 6 seconds to walk to a new spot and click it. If again, nothing to mine, just walk again. So yeah, the only thing you really need to do is move and click the next spot, the rest is all automated.
Let me know what you think, or if you can make it even better...