Using UOR's [where command to safely use any house door anywhere with a single universal hotkey.

Discussion in 'Guides' started by Jill Stihl, Apr 9, 2020.

  1. Jill Stihl

    Jill Stihl Well-Known Member
    UO:R Subscriber

    Joined:
    Apr 10, 2017
    Messages:
    1,467
    Likes Received:
    1,915
    UOR has a [where command that when entered anywhere in the UO world will give you precise co-ordinates, including your height above 'sea level'. With a little setting up time this can be used to provide you with a single universal hot key that will unlock, open, close, re-lock and do a detect hidden/auto ban for every door of every house you own.

    Here's a journal pic of it in action after I arrive at the door and press my hotkey -

    Where01.jpg

    Summary of the whole process -

    The Master Door macro simply speaks the [where command and awaits the two system message replies that state exactly where I am standing.

    Depending on the location a specific door macro is then called. In this case Door - L-Shape which is my front door. This macro unlocks the door, opens it, waits a moment for me to manually walk through then closes and locks the door.

    At that point the Detect at Feet macro is called, which as its name suggests performs a detect hidden check on my own location. In the above journal example nobody is seen, so the process ends. If an uninvited guest had been detected, the macro would auto ban nearest grey humanoid, then auto ban nearest red humanoid, and if neither of those were detected it would leave me with a targeting cursor to ban whatever else might be the problem.

    If the [where command had replied with a location that is not a registered house door, the hiding skill will be used so I can figure out what's gone wrong (usually hitting the macro just before I'm actually on the tile in front of the door).

    .......................

    In more detail -
    .......................

    Here's what the Master Door macro looks like in Razor -

    Where02.jpg
    Where03.jpg

    It just cycles through all the known door locations and calls the appropriate individual door macro. If none match the hiding skill kicks in.

    .......................

    Below is one of the individual door macros that are called by the Master macro -

    Where04.jpg

    It D-clicks the key ring and targets the door, opens the door, pauses 1.5 seconds while I manually pass through, closes the door, then D-clicks the key ring and targets the door again.

    All the door macros are essentially the same, they just target different key rings/doors.

    Lastly it calls the Detect at Feet macro -

    Where05.jpg
    Where06.jpg

    This just performs a Detect Hidden skill use (which in a house you are at least friended to has 100% success rate even with 0 skill) then either stops the macro if nothing is detected, or initiates two auto ban processes if something is detected - Ban nearest grey and ban nearest red.

    If neither of those are found a targeting cursor is left up to manually target whatever else may be in your house.

    ..........................

    And that's it. You're through any door, reasonably safely, in any house you have with just a single universal hotkey for all of the locations.

    ..........................

    Below are the macros themselves. Obviously these need modifying for your own locations, key rings and doors.

    Also some of the pauses can probably be adjusted or even omitted. I have a laggy connection so they are probably longer than they need to be.


    The Master Door macro -

    Assistant.Macros.SpeechAction|0|52|3|ENG|0|[where
    Assistant.Macros.PauseAction|00:00:00.6000000
    Assistant.Macros.IfAction|4|0|1796 2776 5
    Assistant.Macros.HotKeyAction|0|Play: Door - L Shape
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|1786 2759 5
    Assistant.Macros.HotKeyAction|0|Play: Door - L Shape Down
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|1790 2772 25
    Assistant.Macros.HotKeyAction|0|Play: Door - L Shape Up
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|700 1486 2
    Assistant.Macros.HotKeyAction|0|Play: Door - Seclusion
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|245 1025 2
    Assistant.Macros.HotKeyAction|0|Play: Door - Mining Tower
    Assistant.Macros.EndIfAction
    Assistant.Macros.IfAction|4|0|251 1013 4
    Assistant.Macros.HotKeyAction|0|Play: Door - Shed
    Assistant.Macros.EndIfAction
    Assistant.Macros.ElseAction
    Assistant.Macros.UseSkillAction|21


    A sample individual door macro (you need one of these tailoring to each door) -

    Assistant.Macros.DoubleClickAction|1094622435|5993
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1075963709|1796|2775|5|1701
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.DoubleClickAction|1075963709|1701
    Assistant.Macros.PauseAction|00:00:01.5000000
    Assistant.Macros.DoubleClickAction|1075963709|1701
    Assistant.Macros.PauseAction|00:00:00.8000000
    Assistant.Macros.DoubleClickAction|1094623029|5993
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.AbsoluteTargetAction|0|0|1075963709|0|0|0|1701
    Assistant.Macros.PauseAction|00:00:00.5000000
    Assistant.Macros.HotKeyAction|0|Play: Detect at Feet


    The Detect at Feet macro -

    Assistant.Macros.UseSkillAction|14
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.HotKeyAction|1059|
    Assistant.Macros.PauseAction|00:00:00.2000000
    Assistant.Macros.IfAction|4|0|nothing
    Assistant.Macros.HotKeyAction|1083|
    Assistant.Macros.ElseAction
    Assistant.Macros.SpeechAction|0|52|3|ENG|2|16|52|I ban thee
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.PauseAction|00:00:00.2000000
    Assistant.Macros.HotKeyAction|1517|
    Assistant.Macros.PauseAction|00:00:00.2000000
    Assistant.Macros.HotKeyAction|1195|
    Assistant.Macros.SpeechAction|0|52|3|ENG|2|16|52|I ban thee
    Assistant.Macros.WaitForTargetAction|30
    Assistant.Macros.PauseAction|00:00:00.2000000
    Assistant.Macros.HotKeyAction|1510|
    Assistant.Macros.PauseAction|00:00:00.2000000
    Assistant.Macros.HotKeyAction|1195|


    Ensure you still pay attention to the system messages and your surroundings while using this. Security is not a 100% foolproof thing on UO, so you should still keep your wits about you when entering your home.

    This takes a while to set up. But it's a do once process. Personally I've found it very useful both for ease of hotkey remembering and for security.

    Hope it's of some use.
    Thanks.
    Last edited: Apr 23, 2020
  2. Jill Stihl

    Jill Stihl Well-Known Member
    UO:R Subscriber

    Joined:
    Apr 10, 2017
    Messages:
    1,467
    Likes Received:
    1,915
    Reserved Spot
    Last edited: Apr 9, 2020
  3. Earsnot

    Earsnot Well-Known Member
    UO:R Subscriber

    Joined:
    Jan 20, 2018
    Messages:
    1,732
    Likes Received:
    3,195
    *reserved for clapping gif*
    Jill Stihl likes this.
  4. Jill Stihl

    Jill Stihl Well-Known Member
    UO:R Subscriber

    Joined:
    Apr 10, 2017
    Messages:
    1,467
    Likes Received:
    1,915
    A proofread would be good if anybody has a minute. Thanks.
    Last edited: Apr 9, 2020
  5. Raajaton

    Raajaton Active Member
    UO:R Subscriber

    Joined:
    Apr 21, 2018
    Messages:
    303
    Likes Received:
    248
    Damn, this is freakin awesome! Thanks a lot for putting this together I really needed this lol.
    Jill Stihl likes this.
  6. Phoenix

    Phoenix Active Member

    Joined:
    May 16, 2019
    Messages:
    150
    Likes Received:
    159
    Great guide, using the [where command is top notch!
    Yukon Jack and Jill Stihl like this.
  7. NCCML

    NCCML Well-Known Member
    UO:R Subscriber

    Joined:
    Jan 18, 2018
    Messages:
    1,412
    Likes Received:
    1,701
    Yeah this is awesome. Absolutely helpful.
    Jill Stihl likes this.
  8. Cretoma

    Cretoma Active Member

    Joined:
    Feb 23, 2018
    Messages:
    236
    Likes Received:
    123
    I love this!
    Because I am still exploring Razor functionality, I would like to know: would it be possible to do some of this macro in a script?
    Jill Stihl likes this.
  9. Chadarius

    Chadarius Active Member
    UO:R Subscriber

    Joined:
    Nov 7, 2015
    Messages:
    118
    Likes Received:
    97
    So this was awesome! I also added in macros to automatically unlock a table in some of my houses so I can get to secure areas with the same macro key. It works great. I wish Razor had a much better way of writing macros though.
    Jill Stihl likes this.
  10. Chadarius

    Chadarius Active Member
    UO:R Subscriber

    Joined:
    Nov 7, 2015
    Messages:
    118
    Likes Received:
    97
    I am shocked that this worked. I was going to try something like this a long time ago. However I thought that reading SysMessages didn't work?
    Cretoma likes this.
  11. Raajaton

    Raajaton Active Member
    UO:R Subscriber

    Joined:
    Apr 21, 2018
    Messages:
    303
    Likes Received:
    248
    If you are using the latest and greatest Razor you will have a new tab called 'Scripts'. This is a more intuitive way of writing macros using a scripting language, which makes it far easier to type out what you want it to do rather than having to record and click around.

    Here's a link to the help guide where you will find the syntax and plenty of examples to get you started :

    http://www.uor-razor.com/guide/

    These can obviously be hotkeyed just like Macros can either within Razor, or within the ClassicUO client.
  12. Cretoma

    Cretoma Active Member

    Joined:
    Feb 23, 2018
    Messages:
    236
    Likes Received:
    123
    I have not figured out how to hotkey scripts in CUO. How does one do that?
  13. Erza Scarlet

    Erza Scarlet Well-Known Member
    UO:R Donor

    Joined:
    May 24, 2015
    Messages:
    1,896
    Likes Received:
    2,197
    clever use of the [where command!
  14. Chadarius

    Chadarius Active Member
    UO:R Subscriber

    Joined:
    Nov 7, 2015
    Messages:
    118
    Likes Received:
    97
    Hotkeys tab in Razor. Then click on Scripts tp see the list of scripts. You can also set the hotkey from the script tab by hitting the Set HK button.
  15. Chadarius

    Chadarius Active Member
    UO:R Subscriber

    Joined:
    Nov 7, 2015
    Messages:
    118
    Likes Received:
    97
    Hey! Thanks again for the inspiration. I'm doing the same thing with tables for inside my houses. :)

    I also added a location check to my smelting macro so if I'm on my mining house steps it runs the organizer agent to stash my ingots.
  16. Jill Stihl

    Jill Stihl Well-Known Member
    UO:R Subscriber

    Joined:
    Apr 10, 2017
    Messages:
    1,467
    Likes Received:
    1,915
    Thought some newer arrivals might like to catch this.
  17. Chadarius

    Chadarius Active Member
    UO:R Subscriber

    Joined:
    Nov 7, 2015
    Messages:
    118
    Likes Received:
    97
    I am constantly using [where in macros now. All my characters have the same first 8 runes in their rune books. I have a "smart" recall macro that knows when I'm at my bank and recalls home. It also knows when I'm not at the bank and recalls to the bank, all with the same hot key.

    Using the same techniques I also setup a macro that recalls back and forth to Delucia in seconds.

    [where not only tells you your coordinates but it also tells you what town region you are in. If you are in a house it tells you that you are in a house. You can use those key words and coordinates in lots of different creative ways.
    Venger and Jill Stihl like this.
  18. Hydrox

    Hydrox Well-Known Member
    UO:R Donor

    Joined:
    Jan 24, 2015
    Messages:
    2,119
    Likes Received:
    1,346
    Well done!

Share This Page