RunUO Constructor Guide

From RunUO Wiki
Jump to: navigation, search

RunUO Constructor Guide and Commands 10-11-2016, 02:26 AM

RunUO Contructor Guide

Original post by Ezekiel

This guide will cover the basic in-game commands necessary for constructing items with basic & advanced syntax input.

Adding Items

To add an item in the game you must use the proper syntax, and the correct item name in order for the server to recognize your command. This can be done in many ways, simple and advanced. Here we will cover how to add items in both ways, one at a time.

Add Commands

[addmenu - Using this syntax alone will bring up an alternate version of the "add menu" in which you can input search text to find items by name and their proper syntax for addition. This is very useful for finding the add-name of an item you wish to add but do not know the proper syntax of the item by memory.

[m add - This command cannot be used alone, it is a "multiplier" command which allows you to retain your target cursor after the first addition, so that you may continuously "click-add" items in repetition, instead of having to re-type or ctrl-q the command syntax.

[adddoor - Using this command will prompt a gump which allows you to add a variety of doors, which come complete with door functions.

Now lets use these commands in an example, both basic & advanced syntax additions.

Add

[add sandals - This will add a pair of sandals at the location you click.

[addtopack sandals - This will add a pair of sandals into the container or player's backpack of your choice.

Now lets try the same commands with additional parameters added for additional settings.

[add sandals set hue 1 loottype blessed weight 11 - This will add a pair of sandals with the hue 1 (black), which are blessed & weigh 11 stones.

[addtopack sandals set hue 1 loottype blessed weight 11 - This will add a pair of black sandals, which are blessed & weigh 11 stones, into the container or player's backpack of your choice.

[m add sandals set hue 1 loottype blessed weight 11 - Same effect as above, except you will not lose your target cursor and can add multiples of the item without having to re-write your command line.

[m addtopack sandals set hue 1 loottype blessed weight 11 - Same effect as above, except you will not lose your target cursor and can add multiples of the item without having to re-write your command line.

Addmenu

This is a very nifty command which will help you find items you do not know how to properly spell or what their add-names are. This is a rather basic command. To utilize this command, all you need to do is type [addmenu <what you are looking for>

So, if you were trying to add a potted plant but are unsure of the proper name syntax or type, you could utilize this command like this.

[addmenu potted - This command will open the add-menu gump and match all item names with the term "potted" in them. You can refine this search query to shorter or longer text matching at your discretion.

[addmenu pot [addmenu pottedplant [addmenu plant [addmenu tree

Etc, and so forth. Tinkering with it for a short time should give you the full feel of how it works, its basically your dictionary for finding item-names (not statics).

Now that we've covered the basics of item construction, let's move on to more complex construction which will save your countless hours of time & clicking your mouse all over the place. There are only a couple of commands in this category, but setting additional parameters to them will increase your array of capabilities tremendously.

Advanced Construction Commands

[area - Invokes settings to everything caught within the bounding box of the effect. Very powerful & useful tool for invoking properties on a large area of things at once.

[tile - A large-scale adding tool. Generates items in a bounding box grid, at one item per tile for the full bounding box you determine.

Let's cover the [tile command first, since it is actually an item generation command, where-as [area is not and is mostly a support command to help finish your construction properties, but does not actually add items itself. Here are some examples of executing the [tile command in both basic & advanced syntax, under the same general concepts as listed above.

[tile sandals - This will generate sandals on every tile (one per tile) for the entire bounding box area you provide. Upon using the command, you will be prompted to target the first location of the bounding box, and then the second. Your first target is "corner 1" and the second target is "corner 2". Once completed, the system will generate the item you specified on each tile within these bounds. Be cautious with this command, attempting to add items within a very large bounds may cause server lag or a potential crash. It is not recommended to tile items in a large radius unless you know exactly what you are doing.

[tile sandals set hue 1 loottype blessed weight 11 - This command will net you the same results as above, except now all of the sandals you create will be of a black hue, blessed loottype, and weigh 11 stones.

The "add" & "tile" commands work with statics as well, I am simply using items as a demonstration purpose. You can just as easily use [tile static 1313 set hue 1 movable true, if you wanted to add black cobblestone tiles in an area which were movable for players to pick up.

Lastly, we will cover the area command. This command is mostly a support modifier, as it does not add items itself, it only invokes properties onto items caught within the bounds. This is most useful in the scenario where you are building construction in an area, and need to invoke additional properties onto a large amount of items which are not part of their default settings. A good example of this is hue-ing floor tiles to a different color of that of their default. Now let's use some examples.

[area set hue 1 - Using this command will prompt you to connect 2 locations for your bounding box, exactly the same as the [tile command. Once specified, everything caught within the radius will be set to hue 1, black.

Sometimes you may have a large array of items/statics within a certain area, stacked on top of each-other, or just arranged in a certain fashion where you cannot tag them separately from other items you do not wish to be tagged within the bounds. Adding additional parameters to this will allow you to exclude items from the tagging. Let's try an example.

[area set hue 1 where item itemid = 1313 - After specifying your bounding box, this command will hue all items 1 (black) within the bounding box, but only if their itemID matches the parameters entered above, 1313. So, in this instance you are able to hue all floor tiles (1313) black, but anything else caught within the bounds will not be affected. This command can be used in many various ways with these parameters to achieve all kinds of different results.