EN Runtime API 26 Mobile Search - LIHACHTETAN/ClassicUO-Bad-Newbie-CSharp-Scripts-IDE GitHub Wiki

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

Runtime API - Search for characters

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

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

UO.FindByNotoriety

Search

Finds the closest other character/NPC with one of the specified notoriety statuses. Useful when you need to first select an enemy, ally, or observed target, and only then decide separately whether to attack or follow it.

UO.FindMobile

Finds one closest loaded character/creature using joint string filters. The player himself is excluded.

Searches loaded ClassicUO mobiles with progressively narrower state/range/vertical/direction/kind filters. The zero-argument form is equivalent to all filters set to 'all'. Returns the selected mobile serial or 0 when no mobile matches.