Revision for “Example Macros” created on March 26, 2023 @ 07:03:38
Title | Example Macros |
---|---|
Content | <h3>Enhanced Client Examples</h3>
Below are some simple macros, and beyond them, some more complex examples using the <a href="#command">'command-script'</a> option.
<strong>Training Poisoning, contributed by Rock</strong>
<img class="aligncenter size-medium wp-image-22483" src="https://uo.com/wp-content/uploads/2020/05/poison-train-256x300.jpg" alt="" width="256" height="300" />
In text, the macro is:
Poisoning skill
Delay (0.2)
Target Default Object 2
Delay (0.3)
Target Default Object 3
Delay (9.5)
The image shows part of the hot bar, including the macro icon itself. Next to it are the Store Default Object 2 and Store Default Object 3 actions. SDO2 is used to remember the stack of poison potions to use, while SDO3 is used to remember the target, typically a weapon or piece of food. While training, I start with 21 bottles of poison, and a keg to refill them after two runs of ten. The reason for 21 instead of 20 is that the system will consider the poison stack the same if it never runs out. If all are used, the next poison stack will be different, and SDO2 will have to be used again before starting the macro.
<strong>Heal a Pet Using Bandages</strong>
<img class="aligncenter size-medium wp-image-22485" src="https://uo.com/wp-content/uploads/2020/05/pet-bandage-300x242.jpg" alt="" width="300" height="242" />
<strong>. </strong>
In text, the macro is:
Target Severely Injured Follower
Bandage Selected Target
While it is possible to create a macro specifically for each pet, this version works for whatever pet you have with you, and if you have more than one, will target the one that is the most damaged.
<strong>Heal a Pet Using Magery</strong>
<img class="aligncenter size-medium wp-image-22484" src="https://uo.com/wp-content/uploads/2020/05/pet-castheal-300x245.jpg" alt="" width="300" height="245" />
In text, the macro is:
Target Severely Injured Follower
Cast spell, Greater Heal (target = current)
As with the bandage macro, it is possible to create individual macros for each pet.
<strong>Mining Ore (image edited for clarity)</strong>
<img class="aligncenter wp-image-22486 size-full" src="https://uo.com/wp-content/uploads/2020/05/mining.jpg" alt="" width="737" height="257" />
In text the macro is:
Target by resource (add shovel, select 'ore') delay 1.0
Repeat those two actions twice
Place in next box iron ore (target = stored; Fire Beetle)
Delay 1.0
Place in next box dull copper ore (target = stored; Fire Beetle)
Delay 1.0
Add as you find them each of the other ore types, setting the same 'target = stored; Fire Beetle' placing them before the final delay.
<strong>Write Repair Deeds by Victim of Siege</strong>
<a href="https://uo.com/wp-content/uploads/2020/05/repair-macro.jpg"><img class="size-medium wp-image-26385 aligncenter" src="https://uo.com/wp-content/uploads/2020/05/repair-macro-300x243.jpg" alt="" width="300" height="243" /></a>
In text the macro is:
Repair Item
WaitForTarget
Cursor Target Last
Delay 0.2
These four actions can be repeated in the macro if desired.
To use the macro:
Use the craft tool and create one repair deed using the crafting menu, then run the macro.
<a name="command"></a>
<h4>Command Script Macros</h4>
The command script action is found in the 'other' section of the actions menu.
<strong>Open the Organiser Agent</strong>
<a href="https://uo.com/wp-content/uploads/2020/05/organise-macro.jpg"><img class="aligncenter size-medium wp-image-25235" src="https://uo.com/wp-content/uploads/2020/05/organise-macro-300x235.jpg" alt="" width="300" height="235" /></a>
The command to enter for this macro is:
script MainMenuWindow.OnToggleAgentsSettings()
<strong>Harvesting from Plants, Commands by <span class="Author">Khyro </span></strong>
<a href="https://uo.com/wp-content/uploads/2020/05/plant-harvest.jpg"><img class="aligncenter wp-image-25236 size-full" src="https://uo.com/wp-content/uploads/2020/05/plant-harvest.jpg" alt="" width="321" height="262" /></a>
This macro will harvest all seeds and resources from a plant. First open the plant's gump to the reproduction/harvesting page.
The actions for this macro are
First command action: script GumpsParsing.PressButton(22222,6)
delay 0.1
Second command action: script GumpsParsing.PressButton(22222,7)
delay 0.1
Set repeat to 8.
<strong>Tame & Release (image edited for clarity) Devised by <span id="NOFDP"><span class="Author">Arroth_Thaiel</span></span></strong>
<a href="https://uo.com/wp-content/uploads/2020/05/tamerelease.jpg"><img class="aligncenter wp-image-25281 size-full" src="https://uo.com/wp-content/uploads/2020/05/tamerelease.jpg" alt="" width="420" height="260" /></a>
Actions for this macro are
<pre>Target Nearest Mobile
Skill, Animal taming (right click - Target Current)
Delay (12.0s approximately, adjust for connection speed)
Target Nearest Follower
Command Action: script RequestContextMenu(TargetWindow.TargetId)
<em><span id="NOFDP">This command will call target context menu</span></em>
<span id="NOFDP">Command Action: script ContextMenu.ExecuteMenuItem(919)
<em>This command will execute rename</em>
Command Action: script TextEditBoxSetText( "RenameWindowTextEntryBox", L"PetNameHere" )
<em>This command renames the pet, edit this script with your chosen name before adding it to the macro, as in this example:</em>
<span style="color: #003366">For the purpose of testing the actual script used was: script TextEditBoxSetText( "RenameWindowTextEntryBox", L"bob" )</span>
Command Action: script RenameWindow.OnSubmit()
<em>This command submits the new name</em>
Say: NewPetName Release
<span style="color: #003366">For the purpose of testing the actual words said were: bob release</span>
Command Action: script WindowSetShowing("ContextMenu", false)
<em>This command closes the context menu</em>
</span></pre> |
Excerpt |