EN Runtime API 20 Equipment Operations - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki

Українська · Русский · English · Deutsch · Français · Italiano · Español · 繁體中文 · 日本語 · 한국어

Runtime API - Equipment Operations

Home · C# · IDE · UO API · A–Z · Examples · Languages

Each team opens a card with C#-signatures, parameters and several independent examples.

UO.Dress

Character

Restores a previously saved named clothing set.

UO.DressSavedSet

Character

Restores a set of clothes saved by calling UO.SetDress() without a name.

UO.DressSpeed

Character

Reads or sets the pause between dressing/undressing operations in the current runtime. Helps to avoid sending a series of actions too quickly for server rules.

UO.Equip

Character

Equips the selected item to the specified layer of your character.

UO.EquipDressSet

Character

Alternate name DressSavedSet: Restores the same unnamed set of clothes.

UO.EquipItems

Character

Equip one item or an array of items. The layer of each item is determined by its wearable data, so the item can be put on from a backpack.

UO.EquipLastWeapon

Character

Requests re-equipment of the last saved right and left hand items.

UO.EquipT

Character

UO.GetEquipment

Character

Reads the list of equipment on non-zero object layers.

UO.GetLayer

Items

UO.GetLayerCount

World & Geometry

Counts non-earth geometry records in one cell.

UO.GetPlayerStatusText

Character

Generates a short text of the object's name and health.

UO.GetTileLayer

World & Geometry

Reads the equipment layer number from the tiledata entry.

UO.ObjAtLayer

Character

Finds an item on the specified layer of your own character's equipment.

UO.ObjAtLayerEx

Reads an item/container in the specified layer for the specified loaded character.

Returns the serial number (ID) of the item equipped in the specified layer of the given mobile.

UO.SetDress

Character

Remembers currently worn clothing and armor for subsequent restoration.

UO.SetDressSpeed

Character

Sets a pause between requests to change clothes.

UO.Undress

Character

Removes clothing and armor from layers 3,4,5,6,7,8,10,12,13,14,17,18,19,20,22,23,24. Hands, hair, beard, backpack, mount and bank are not affected.

UO.Unequip

Character

Removes his item from the specified layer into his own backpack.

UO.UnequipItems

Character

Takes the listed personal items into the backpack. ID of someone else's item does not remove your item from the same layer.

UO.UnsetDress

Character

Deletes an entry for a named set of clothes without removing the items.

UO.WearItem

Character

Equips the selected item to your character's number layer.