Guide to Automating Level 1 Treasure Chests

Discussion in 'Guides' started by maobear, Feb 21, 2018.

  1. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    In the interest of FRIENDSHIP and the butt-kicking of EVIL, the BANK of JUSTICE provides you with these magical macros for the automation of level 1 treasure chests.

    WARNING: This is a WIP guide! Currently only supports characters that use axes. Updates and more macros to come.



    How It Works
    • Recall to treasure chest location
    • Take one step to the left
    • Trigger the "Dig Up" macro:
      • Automatically dismount
      • Gives you 5 seconds to target the correct treasure map
        • If you fail, or the chest is blocked, the macro will automatically exit and let you know
      • Automatically dig up treasure chest
      • Automatically remount
      • Gives you 3 seconds to run away to prevent trap damage (only cowards run though)
      • Automatically cast "Unlock" and "Telekinesis" on chest
      • Automatically equip your axe of justice
      • Automatically self-apply a bandage
      • Automatically kill everything around you (or make them flee off-screen)
    • Trigger the "Loot by Value" macro:
      • Automatically target treasure chest with 3 preset restock agents
      • Automatically loot valuables like gold, gems, and maps first into locked container
      • Automatically loot items to ID into locked container
      • Automatically loot vendor trash into your sell hotbag
    • Trigger the "Axe & Go Home" macro:
      • Automatically equip your axe
      • Automatically axe the container
      • Automatically return to rune library or your home
    • Optional security features are included
    • All macros are compatible with Razor Last Target and Target Queues
    In This Guide

    Download


    Setup

    Requirements
    • Axe in a Razor "Dress" setting
    • Level 1 treasure maps
    • Shovel
    • Recall Rune to a Rune Library / Your Home
    • >50 Magery
      • >70 Magery preferred
    • Healing and bandages preferred
    • Locked container for Loot preferred
    • Optional locked container for Axe
    Setting Up Razor Object Delay
    • Make sure your object delay (found in "More Options" tab of Razor) is high enough for your connection to the server
    • If you see messages like "You must wait to perform another action" then your object delay is too low
    Setting Up Axe Dress
    • Create a new Arm/Dress setting in Razor, name it "Axe"
    • Add your specific axe you will be using to kill all or axe the chest. Don't use a type list as you may loot additional axes from the chest.
    • If you wish to secure your axe automatically:
      • Set the undress hotbag to a locked container other than your loot hotbag
      • Read the setups for the "Dig Up" and "Axe & Go Home" macros below
    Setting Up Macros & Restock Agents
    Last edited: Feb 21, 2018
    Soear, Fin, PaddyOBrien and 2 others like this.
  2. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    Dig Up, Unlock, Untrap & Clear

    Set Up
    • To re-mount your horse, you will need to replace mount action:
      • Found right after the 25 second pause
      • You cannot retarget this, only re-record using "Begin Recording Here"
    Customization
    • If you are using the "Secure Axe" version:
      • Make sure your Axe undress hotbag is set to the locked box
      • Retarget the relevant double-click and absolute target actions around "DressAction|Axe"
    • For non-axers, you may replace the "Keep Attacking Until Clear" macro at the end with your own clear macro
      • For tamers, they could simply execute a "Guard Me" command then immediately call the "Loot by Value" macro. Please contact me if you try this, would like to know the results!

    Dig Up Macro (No Axe Security)
    Code:
    Assistant.Macros.HotKeyAction|1473|
    Assistant.Macros.IfAction|4|0|you dig and dig
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|you can't mine
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|you have found the treasure
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|the chest can't be dug
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1195|
    Assistant.Macros.DoubleClickTypeAction|3897|True
    Assistant.Macros.PauseAction|00:00:05
    Assistant.Macros.TargetRelLocAction|1|-1
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.IfAction|4|0|you can't mine
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|17|52|I must select a treasure map!
    Assistant.Macros.ElseAction
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.IfAction|4|0|you dig and dig
    Assistant.Macros.SpeechAction|0|52|3|ENU|4|32|17|19|64|No treasure here, I must ADJUST!
    Assistant.Macros.ElseAction
    Assistant.Macros.IfAction|4|0|you have found the treasure
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|17|52|The treasure chest is blocked!
    Assistant.Macros.ElseAction
    Assistant.Macros.IfAction|4|0|the chest can't be dug
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|17|52|I am blocking the treasure chest!
    Assistant.Macros.ElseAction
    Assistant.Macros.PauseAction|00:00:25
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.DoubleClickAction|2406559|204
    Assistant.Macros.PauseAction|00:00:03
    Assistant.Macros.MacroCastSpellAction|23
    Assistant.Macros.PauseAction|00:00:01.8000000
    Assistant.Macros.TargetTypeAction|False|3648
    Assistant.Macros.MacroCastSpellAction|21
    Assistant.Macros.PauseAction|00:00:01.8000000
    Assistant.Macros.TargetTypeAction|False|3648
    Assistant.Macros.DressAction|Axe
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.HotKeyAction|1025|
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.HotKeyAction|1195|
    Assistant.Macros.HotKeyAction|0|Play: Combat\Keep Attacking Until Nothing
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction
    Dig Up Macro (Secure Axe)
    Code:
    Assistant.Macros.HotKeyAction|1473|
    Assistant.Macros.IfAction|4|0|you dig and dig
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|you can't mine
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|you have found the treasure
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|the chest can't be dug
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1195|
    Assistant.Macros.DoubleClickTypeAction|3897|True
    Assistant.Macros.PauseAction|00:00:05
    Assistant.Macros.TargetRelLocAction|1|-1
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.IfAction|4|0|you can't mine
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|17|52|I must select a treasure map!
    Assistant.Macros.ElseAction
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.IfAction|4|0|you dig and dig
    Assistant.Macros.SpeechAction|0|52|3|ENU|4|32|17|19|64|No treasure here, I must ADJUST!
    Assistant.Macros.ElseAction
    Assistant.Macros.IfAction|4|0|you have found the treasure
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|17|52|The treasure chest is blocked!
    Assistant.Macros.ElseAction
    Assistant.Macros.IfAction|4|0|the chest can't be dug
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|17|52|I am blocking the treasure chest!
    Assistant.Macros.ElseAction
    Assistant.Macros.PauseAction|00:00:25
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.DoubleClickAction|2406559|204
    Assistant.Macros.PauseAction|00:00:03
    Assistant.Macros.MacroCastSpellAction|23
    Assistant.Macros.PauseAction|00:00:01.8000000
    Assistant.Macros.TargetTypeAction|False|3648
    Assistant.Macros.MacroCastSpellAction|21
    Assistant.Macros.PauseAction|00:00:01.8000000
    Assistant.Macros.TargetTypeAction|False|3648
    Assistant.Macros.DoubleClickAction|1137689064|4110
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1137689063|98|66|0|2474
    Assistant.Macros.DressAction|Axe
    Assistant.Macros.DoubleClickAction|1137689064|4110
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1137689063|98|66|0|2474
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.HotKeyAction|1025|
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.HotKeyAction|1195|
    Assistant.Macros.HotKeyAction|0|Play: Combat\Keep Attacking Until Clear
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction
    Assistant.Macros.EndIfAction
    Keep Attacking Until Clear Macro
    Code:
    !Loop
    Assistant.Macros.IfAction|4|0|no one watching that
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1515|
    Assistant.Macros.IfAction|4|0|no one matching that
    Assistant.Macros.HotKeyAction|1083|
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1395|
    Assistant.Macros.PauseAction|00:00:00.8000000
    Last edited: Feb 21, 2018
    Soear and Fin like this.
  3. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    Loot by Value

    Set Up
    • You will have to add these agents to your Razor profile
      • [How to placeholder]
    • If you don't use the same agent slots, the macros will also have to be updated accordingly. Agent slots used by default:
      • Gold / Gems / Reagents / Maps - Restock 1
      • Items to ID - Restock 4
      • Vendor Trash - Restock 5
    • Set your Valuables and ID restock hotbags to a locked container
    • Set your Vendor Trash restock hotbag to the same as your sell agent hotbag
    Customization
    • This entire set of macros and agents is easily replaceable by whatever you want
    • To not loot vendor trash, simply remove that line from the "Loot All" macro

    Loot All Macro
    Code:
    Assistant.Macros.HotKeyAction|0|Restock Agent-1
    Assistant.Macros.TargetTypeAction|False|3648
    Assistant.Macros.HotKeyAction|0|Restock Agent-4
    Assistant.Macros.TargetTypeAction|False|3648
    Assistant.Macros.HotKeyAction|0|Restock Agent-5
    Assistant.Macros.TargetTypeAction|False|3648
    Loot Valuables
    Code:
    Assistant.Macros.HotKeyAction|0|Restock Agent-1
    Assistant.Macros.TargetTypeAction|False|3648
    Loot ID Items Macro
    Code:
    Assistant.Macros.HotKeyAction|0|Restock Agent-4
    Assistant.Macros.TargetTypeAction|False|3648
    Loot Vendor Trash Macro
    Code:
    Assistant.Macros.HotKeyAction|0|Restock Agent-5
    Assistant.Macros.TargetTypeAction|False|3648

    Loot Valuables Restock Agent (Snippet) (WIP - Not Complete)
    Code:
           <Restock-1 hotbag="1137688881">
                <item id="3821" amount="100000" />
                <item id="3877" amount="1000" />
                <item id="3861" amount="1000" />
                <item id="3873" amount="1000" />
                <item id="3878" amount="1000" />
                <item id="3862" amount="1000" />
                <item id="3859" amount="1000" />
                <item id="3856" amount="1000" />
                <item id="3885" amount="1000" />
                <item id="3865" amount="1000" />
                <item id="3976" amount="1000" />
                <item id="3962" amount="1000" />
                <item id="3963" amount="1000" />
                <item id="3981" amount="1000" />
                <item id="3973" amount="1000" />
                <item id="3974" amount="1000" />
                <item id="3980" amount="1000" />
                <item id="5356" amount="100" />
                <item id="3972" amount="1000" />
            </Restock-1>
    Loot ID Items Restock Agent (Snippet) (WIP - Not Complete)
    Code:
           <Restock-4 hotbag="1137688881">
                <item id="5121" amount="1000" />
                <item id="3571" amount="1000" />
                <item id="3572" amount="1000" />
                <item id="3570" amount="1000" />
                <item id="5182" amount="1000" />
                <item id="7947" amount="1000" />
                <item id="5198" amount="1000" />
                <item id="5185" amount="1000" />
                <item id="3573" amount="1000" />
                <item id="5187" amount="1000" />
                <item id="3568" amount="1000" />
                <item id="5177" amount="1000" />
                <item id="5042" amount="1000" />
                <item id="5046" amount="1000" />
                <item id="3909" amount="1000" />
                <item id="3911" amount="1000" />
                <item id="5115" amount="1000" />
                <item id="3938" amount="1000" />
                <item id="3937" amount="1000" />
                <item id="5040" amount="1000" />
                <item id="3915" amount="1000" />
                <item id="5062" amount="1000" />
                <item id="5119" amount="1000" />
                <item id="3571" amount="1000" />
                <item id="5201" amount="1000" />
                <item id="5202" amount="1000" />
                <item id="3934" amount="1000" />
                <item id="5069" amount="1000" />
                <item id="3913" amount="1000" />
                <item id="5068" amount="1000" />
                <item id="5067" amount="1000" />
                <item id="5199" amount="1000" />
            </Restock-4>
    Loot Vendor Trash Restock Agent (Snippet) (WIP - Not Complete)
    Code:
           <Restock-5 hotbag="1180858074">
                <item id="8022" amount="1000" />
                <item id="8022" amount="1000" />
                <item id="8024" amount="1000" />
                <item id="7981" amount="1000" />
                <item id="8015" amount="1000" />
                <item id="3779" amount="1000" />
                <item id="5125" amount="1000" />
                <item id="5110" amount="1000" />
                <item id="8008" amount="1000" />
                <item id="7988" amount="1000" />
                <item id="8007" amount="1000" />
                <item id="7172" amount="1000" />
                <item id="7986" amount="1000" />
                <item id="8005" amount="1000" />
                <item id="7028" amount="1000" />
                <item id="8021" amount="1000" />
                <item id="7983" amount="1000" />
                <item id="8029" amount="1000" />
                <item id="8003" amount="1000" />
                <item id="8011" amount="1000" />
                <item id="7168" amount="1000" />
                <item id="7168" amount="1000" />
                <item id="5051" amount="1000" />
                <item id="5083" amount="1000" />
                <item id="5077" amount="1000" />
                <item id="7999" amount="1000" />
                <item id="7995" amount="1000" />
                <item id="8016" amount="1000" />
                <item id="7993" amount="1000" />
                <item id="5078" amount="1000" />
                <item id="8009" amount="1000" />
                <item id="7990" amount="1000" />
                <item id="7989" amount="1000" />
                <item id="3922" amount="1000" />
                <item id="7982" amount="1000" />
                <item id="7987" amount="1000" />
                <item id="8025" amount="1000" />
                <item id="7996" amount="1000" />
                <item id="5082" amount="1000" />
                <item id="7035" amount="1000" />
                <item id="8001" amount="1000" />
                <item id="5044" amount="1000" />
                <item id="7027" amount="1000" />
                <item id="5104" amount="1000" />
                <item id="5139" amount="1000" />
                <item id="7033" amount="1000" />
                <item id="8013" amount="1000" />
                <item id="8017" amount="1000" />
                <item id="8017" amount="1000" />
                <item id="7178" amount="1000" />
                <item id="8004" amount="1000" />
                <item id="8026" amount="1000" />
                <item id="3718" amount="1000" />
                <item id="7609" amount="1000" />
                <item id="8010" amount="1000" />
                <item id="8023" amount="1000" />
                <item id="5063" amount="1000" />
                <item id="5134" amount="1000" />
                <item id="7998" amount="1000" />
                <item id="8027" amount="1000" />
                <item id="5179" amount="1000" />
                <item id="8002" amount="1000" />
                <item id="5077" amount="1000" />
                <item id="7170" amount="1000" />
                <item id="7170" amount="1000" />
                <item id="7176" amount="1000" />
                <item id="7997" amount="1000" />
                <item id="3920" amount="1000" />
                <item id="7176" amount="1000" />
                <item id="5102" amount="1000" />
                <item id="8012" amount="1000" />
                <item id="8000" amount="1000" />
                <item id="5128" amount="1000" />
                <item id="5128" amount="1000" />
                <item id="3721" amount="1000" />
                <item id="7026" amount="1000" />
                <item id="8006" amount="1000" />
                <item id="5130" amount="1000" />
                <item id="5099" amount="1000" />
                <item id="8028" amount="1000" />
                <item id="8014" amount="1000" />
                <item id="7991" amount="1000" />
                <item id="7030" amount="1000" />
                <item id="5055" amount="1000" />
                <item id="7984" amount="1000" />
                <item id="7992" amount="1000" />
                <item id="3907" amount="1000" />
                <item id="5132" amount="1000" />
                <item id="7994" amount="1000" />
                <item id="8018" amount="1000" />
                <item id="7034" amount="1000" />
                <item id="5138" amount="1000" />
                <item id="5112" amount="1000" />
                <item id="7985" amount="1000" />
                <item id="5141" amount="1000" />
                <item id="7180" amount="1000" />
                <item id="5100" amount="1000" />
                <item id="5136" amount="1000" />
                <item id="5181" amount="1000" />
                <item id="5117" amount="1000" />
                <item id="7174" amount="1000" />
                <item id="8020" amount="1000" />
                <item id="5084" amount="1000" />
                <item id="3932" amount="1000" />
                <item id="5140" amount="1000" />
                <item id="3719" amount="1000" />
            </Restock-5>
    Last edited: Feb 21, 2018
    Soear and Fin like this.
  4. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    Axe & Go Home

    Set Up
    • Re-target your "Home" rune in the "Return Home" macro
    • Make sure you have an axe dress setting set up!
    Customization
    • If you are using the "Secure Axe" version:
      • Make sure your Axe undress hotbag is set to the locked box
      • Retarget the relevant double-click and absolute target actions around "DressAction|Axe"

    Axe & Go Home Macro (No Axe Security)
    Code:
    Assistant.Macros.IfAction|8|-1|0
    Assistant.Macros.DressAction|Axe
    Assistant.Macros.PauseAction|00:00:01.2000000
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.TargetTypeAction|False|3648
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.GumpResponseAction|1|0|0
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.HotKeyAction|0|Play: Travel\Return Home
    Axe & Go Home (Secure Axe)
    Code:
    Assistant.Macros.IfAction|8|-1|0
    Assistant.Macros.DoubleClickAction|1137689064|4110
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1137689063|98|66|0|2474
    Assistant.Macros.DressAction|Axe
    Assistant.Macros.DoubleClickAction|1137689064|4110
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1137689063|98|66|0|2474
    Assistant.Macros.PauseAction|00:00:01.2000000
    Assistant.Macros.EndIfAction
    Assistant.Macros.HotKeyAction|1305|
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.TargetTypeAction|False|3648
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.GumpResponseAction|1|0|0
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.HotKeyAction|0|Play: Travel\Return Home
    Return Home Macro
    Code:
    Assistant.Macros.UnDressAction|Axe|255
    Assistant.Macros.HotKeyAction|1195|
    Assistant.Macros.HotKeyAction|3002042|
    Assistant.Macros.PauseAction|00:00:02
    Assistant.Macros.AbsoluteTargetAction|0|0|1180867892|127|94|0|7956
    Last edited: Feb 21, 2018
    Soear likes this.
  5. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    Banking

    Set Up
    • Set up the macro:
      • If you use a secure loot box:
        • Re-target the key and box double click and absolute target actions
      • If you don't use a secure loot box:
        • Delete the everything between the first pause action and the organizer agent actions
    • Setup organizer agents in your Razor profile
      • [ How to placeholder ]
      • If you use different organizer slots the macro will also need to updated
      • Default agent slots used:
        • Valuables (Coins & Gems) - Organizer 1
        • Reagents - Organizer 10
      • Set hotbags in your bank for each organizer
    Customization
    • These macros and agents are optional and can be replaced with whatever you want

    Deposit All Macro
    Code:
    Assistant.Macros.SpeechAction|0|52|3|ENU|2|16|2|bank
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.DoubleClickAction|1137688882|4110
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1137688881|121|66|0|2474
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.HotKeyAction|0|Organizer Agent-1
    Assistant.Macros.HotKeyAction|0|Organizer Agent-9
    Assistant.Macros.HotKeyAction|0|Organizer Agent-10
    Valuables Organizer (Snippet)
    Code:
           <Organizer-1 hotbag="1154101024">
                <item id="3821" />
                <item id="3873" />
                <item id="3885" />
                <item id="3856" />
                <item id="3877" />
                <item id="3861" />
                <item id="3878" />
                <item id="3865" />
                <item id="3862" />
                <item id="3859" />
            </Organizer-1>
    Reagents Organizer (Snippet)
    Code:
           <Organizer-10 hotbag="1154094696">
                <item id="3974" />
                <item id="3963" />
                <item id="3962" />
                <item id="3973" />
                <item id="7121" />
                <item id="3980" />
                <item id="3972" />
                <item id="3976" />
                <item id="3981" />
            </Organizer-10>
    Last edited: Feb 21, 2018
    Soear and Fin like this.
  6. OptimisticSam

    OptimisticSam Well-Known Member
    UO:R Subscriber

    Joined:
    Dec 17, 2016
    Messages:
    871
    Likes Received:
    884
    Nice! How long does it take to do average map with this?
  7. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    Good question, will test later.
  8. maobear

    maobear Member
    UO:R Subscriber
    UO:R Donor

    Joined:
    Jan 31, 2018
    Messages:
    62
    Likes Received:
    44
    Tested < 1 minute if you don't wait for the monster clear at the beginning.
  9. Fin

    Fin Well-Known Member
    UO:R Subscriber

    Joined:
    Aug 20, 2014
    Messages:
    481
    Likes Received:
    395
    Nice work and nice presentation.

Share This Page