Ok So I am a bit of a noob when it comes to macros and stuff, but I think, thanks to some of the info given by Djad in another post, I have come up with a work around for the problem of unlocking a box in the 30 to 76 skill range and needing a line in the macro to re lock the box.

If your level is 0 to 76, you wont be using a GM tinkered box.

Instead you will be using either a 30/30 tinker box or a 50/50 tinker box (depending on your level – see below).

0 – 30 Buy from NPC (or use 30/30 tinker box)
30 – 50 Use a 30/30 tinker box (create a new char with 30 tinker/30 carp)
50 – 76 Use a 50/50 tinker box (create a new char with 50 tinker/50 carp)
Confirmation needed 76 skill is the change over. It will be obvious, just switch to GM box as soon as poss.
76 – 95 Use a GM tinker box
95 – GM. Level 4 dungeon chests
(thanks to nightshark for this info)

Essentially my macro does this:

Target lock picks, wait for target, target last object, wait 1.5 seconds, target key (make sure you only have 1 box and 1 key in your backpack or the macro will find the other keys and it wont apply the right key to the right box), wait for target, target last (chest), wait 1.5 seconds – loop this 10x and cut and paste it in your characters document.

Your characters document is located here:

documents – EA games – Ultima Online Stygian Abyss – User Data – Your characters name – Your servers name

Important:
Before you make any manual changes to your characters document – make sure you save a copy of it somewhere safe – as the game has a tendency to reset your UI for no reason when you tinker with the characters document.

Also, make sure you click the lockpicks and click the chest and be unsuccessful before running the macro for the first time.

Note:
The macro will attempt to unpick the chest and regardless of whether successful of not it will then use the key on the chest.
Great – if you were successful in your lockpicking attempt – the macro relocks the chest – loops to repick the now locked chest again – yay – it rinses and repeats.
If not successful in the lockpicking attempt – the macro unlocks the locked chest – loops to repick the chest – it is already open – boo – but not to worry.
The macro will then lock the chest again.
So yes – while some small time is lost in unlocking the locked chest when you want to pick it – the macro will run all day long – depending on how many times you cut and paste it in notepad – all you need is alot of lockpicks and a box that will give you gains (see above regarding levels).

Where to cut and paste my macro in your characters document:

Open up the file appertaining to your characters name (use notepad) – scroll down to the section marked Macros (make a simple macro first so that the section begins and ends with the right macro lines) i.e:

<Macros>
Your macro data
</Macros>

If you haven’t already created a macro – all you will see in the notepad is one line:

</Macros>

– so either make a simple macro and exit game so it saves – or simply cut and paste my macro over the single macro line in your characters document:

Code:

 <Macros> <UserAction type="Macro" id="1" iconId="19" name="LP" repeatEnabled="true" repeatCount="10" binding=""> <UserAction type="UseObjectType" id="351993856" iconId="5371" targetType="Cursor" iconObjectType="0" iconObjectHue="0" /> <UserAction type="WaitForTargetCursor" id="0" iconId="618" targetType="Cursor" /> <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Cursor" /> <UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="1.50" /> <UserAction type="UseObjectType" id="269352960" iconId="4110" targetType="Cursor" iconObjectType="0" iconObjectHue="0" /> <UserAction type="WaitForTargetCursor" id="0" iconId="618" targetType="Cursor" /> <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Cursor" /> <UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="1.50" /> </UserAction> </Macros>

This will run the macro just ten times

If you want to cut and paste multiple times in the notepad document then just paste this section over and over:

Code:

 <UserAction type="UseObjectType" id="351993856" iconId="5371" targetType="Cursor" iconObjectType="0" iconObjectHue="0" /> <UserAction type="WaitForTargetCursor" id="0" iconId="618" targetType="Cursor" /> <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Cursor" /> <UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="1.50" /> <UserAction type="UseObjectType" id="269352960" iconId="4110" targetType="Cursor" iconObjectType="0" iconObjectHue="0" /> <UserAction type="WaitForTargetCursor" id="0" iconId="618" targetType="Cursor" /> <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Cursor" /> <UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="1.50" />

and just to ensure you are pasting it in the right place – it goes here (where I have typed HERE HERE HERE):

Code:

 <Macros> <UserAction type="Macro" id="1" iconId="19" name="LP" repeatEnabled="true" repeatCount="10" binding=""> <UserAction type="UseObjectType" id="351993856" iconId="5371" targetType="Cursor" iconObjectType="0" iconObjectHue="0" /> <UserAction type="WaitForTargetCursor" id="0" iconId="618" targetType="Cursor" /> <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Cursor" /> <UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="1.50" /> <UserAction type="UseObjectType" id="269352960" iconId="4110" targetType="Cursor" iconObjectType="0" iconObjectHue="0" /> <UserAction type="WaitForTargetCursor" id="0" iconId="618" targetType="Cursor" /> <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Cursor" /> <UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="1.50" /> HERE HERE HERE </UserAction> </Macros>

Once you hit 76+ in Lock Picking, you can switch to a GM tinker crafted box and can dispense with the having to use a key to relock the box.

Paste this new macro into your characters document in notepad:

Code:

 <UserAction type="Macro" id="2" iconId="875111" name="LP GM" repeatEnabled="true" repeatCount="10" binding=""> <UserAction type="UseObjectType" id="351993856" iconId="5371" targetType="Cursor" iconObjectType="0" iconObjectHue="0" /> <UserAction type="WaitForTargetCursor" id="0" iconId="618" targetType="Cursor" /> <UserAction type="CursorTargetLast" id="0" iconId="644" targetType="Cursor" /> <UserAction type="Delay" id="0" iconId="623" targetType="Cursor" delay="1.50" /> </UserAction>

Cut and paste is as you did with the 0-76 macro and voila – it should take you to 95.

For 95 and above gains – see the guide by nightshark below. It was written in 2011 – so some of the chest locations may be inaccurate – when my Lockpicking is high enough to adventure there – I will update this thread with more info:

UO Second Age: Lockpicking Full Guide/Cartography Macro Guide

Hope this helps :)