EN Runtime API 11 Casting Commands - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki

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

Runtime API — Cast commands

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

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

UO.Cast

Magic

Requests the use of a spell by name. Exactly one parameter: spellName, for example UO.Cast("Heal"). The target is selected separately: with the mouse using the appeared crosshair or via WaitTargetObject before Cast. Accepting a request does not confirm a successful effect.

UO.CastAbility

Magic

Toggles the currently selected ability of the current weapon via UseAbility: Calling an already selected ability again deselects it.

UO.CastToObject

Magic

Places a waiting object target and sends a spell by name or numeric ID.

UO.IsActiveSpellAbility

Magic

Checks whether the server has reported the active state of the selected ability/spell. Useful before reactivating a channeled ability. It does not turn on anything, does not cast or select a target.

UO.TicksSpell

Magic

Reads the saved mark TicksSpell.