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 - 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 - 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 - 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 - 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.
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?
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.
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?
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.
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.
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.
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.