Mining Macro (attended)

Discussion in 'Guides' started by Gharik, Sep 29, 2012.

  1. Gharik

    Gharik Active Member
    UO:R Subscriber

    Joined:
    May 19, 2012
    Messages:
    285
    Likes Received:
    30
    Alright, I'm going to post my mining macro here. Before any constructive, or not so constructive, criticism is given... keep in mind this will not do everything for you. Also, keep in mind I do a fair amount of roleplaying and you do not need most of the words it has you say. The little messages and emotes just keep mining from boring me to tears... Now that we have that out of the way... On to the macro!

    I have the following macro set to Alt + ,

    You will need to double click your shovel and choose a spot to mine. Then hit the macro and let it run. When you run out of ore, you get a message. When your shovel breaks, you get an emote (Not necessary) and it tinkers you a new shovel using the tool kit (Not the tinker's tools sold at the shops in town). When you're over 375 stone, you get a message, mount your horse, and the macro stops. This macro does NOT move for you, you will have to target new veins. I do this with a simple last object macro from the UO options menu in game. You can make a simple razor macro to just double click shovels if you'd rather. It would probably save you a few seconds if the current last object was a shovel that has broken.

    This is what the macro looks like in Razor

    If (Weight >= 375)
    Say: The Guardiannn demandsss additional resourcesss...
    Double Click (ox94e7)
    Exec: > Stop Current Macro
    Else
    If (SysMessage "you have worn out your tool")
    Emote: *Grumbles*
    Double Click (tool kit (1EB8))
    Wait for Gump (Any)
    GumpResponse (Button 8)
    Wait for Gump (Any)
    GumpResponse (Button 72)
    Wait for Gump (Any)
    Pause 1.50sec
    Else
    Double Click (shovel (0F39))
    Wait for Target
    Exec: Last Target
    Pause: 1.00sec
    Else
    If (SysMessage "dig some")
    Double Click (shovel (0F39))
    Wait for Target
    Exec: Last Target
    Pause 1.00sec
    Else
    If (SysMessage "no metal")
    Say: Thisss vein hasss depleted...
    Pause: 5.00sec
    End If
    End If
    End If
    End If

    All of the "Wait for" lines are set to 1

    Copy and paste this into your razor macros folder for the mining macro

    !Loop
    Assistant.Macros.IfAction|5|1|375
    Assistant.Macros.SpeechAction|0|906|3|ENU|0|The Guardiannn demandsss additional resourcesss...
    Assistant.Macros.DoubleClickAction|38119|200
    Assistant.Macros.HotKeyAction|1083|
    Assistant.Macros.ElseAction
    Assistant.Macros.IfAction|4|0|you have worn out your tool
    Assistant.Macros.SpeechAction|2|537|3|ENU|0|*Grumbles*
    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|Thisss vein hasss depleted...
    Assistant.Macros.DoubleClickTypeAction|3897|True
    Assistant.Macros.PauseAction|00:00:05
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction

    Simple smelting macro...
    Set to Alt + .

    Double Click (iron ore (19B9))
    Wait for Target
    Target by Type forge (0FB1)

    Copy and paste this into your razor macros folder

    Assistant.Macros.DoubleClickTypeAction|6585|True
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.TargetTypeAction|False|4017

    This will target the large piles of ore (all colors) and smelt them on small forges. You can add the other smaller piles of ore to the macro, I choose not to.

    These two macros work flawlessly for me, but do require that you pay attention.

    Happy mining!
    Steady Mobbin likes this.

Share This Page