EN Runtime API 01 Combat and Abilities - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki

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

Runtime API - Combat and abilities

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

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

UO.Attack

Combat

Directs an attack request to a specific serial. Suitable when the target has already been selected by the user or found by another team; There is no independent search by clothing/distance here.

UO.AttackNearest

Combat

Selects one suitable combat target and passes it to the attack handler. Filters limit acceptable characters; custom classMask sets equipment and class priority, nearest — choice within a class.

UO.IsWarMode

Combat

Checks mobile's fighting stance.

UO.LastAttack

Combat

Reads the serial of the last attack target.

UO.SetWarMode

Combat

Requests the character's combat or peaceful mode.

UO.WarMode

Combat

Reads or queries the character's combat mode.

UO.WarTargetID

Combat

Reads the serial of the last attack target.