TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ClassicUO/classicuo-web/llms.txt
Use this file to discover all available pages before exploring further.
Mobile class represents any living entity in the game world — NPCs, creatures, other players, and your own character. It extends the base Entity class (which provides serial, name, graphic, hue, x, y, z, hits, maxHits, and isHidden) and is itself extended by the Player class, which adds character-specific stats.
Mobiles are returned by search functions like client.findType(), client.findAllMobilesOfType(), and client.selectEntity().
The
player global variable is also a Mobile. All properties documented here are available on player in addition to the player-specific stats.Properties
Identity & Position
| Property | Type | Description |
|---|---|---|
serial | number | Unique entity serial number. |
name | string | Name of the mobile. Empty string if not yet known to the client. |
graphic | number | Body/graphic ID. Returns 0 if off-screen. |
hue | number | Hue/colour. Returns 0 if off-screen. |
x | number | Current X coordinate. Returns 0 if off-screen. |
y | number | Current Y coordinate. Returns 0 if off-screen. |
z | number | Current Z coordinate. Returns 0 if off-screen. |
Health, Mana & Stamina
| Property | Type | Description |
|---|---|---|
hits | number | Current hit points. Returns 0 if unknown or off-screen. |
maxHits | number | Maximum hit points. Returns 0 if unknown or off-screen. |
mana | number | Current mana. Real value for the player; scale of 1–100 for others. |
maxMana | number | Maximum mana. |
stamina | number | Current stamina. Real value for the player; scale of 1–100 for others. |
maxStamina | number | Maximum stamina. |
Status Flags
| Property | Type | Description |
|---|---|---|
isPoisoned | boolean | true if the mobile is poisoned (green hue on health bar). |
isYellowHits | boolean | true if the mobile’s health bar is yellow (Invulnerable). |
isHidden | boolean | true if the mobile is hidden. |
isParalyzed | boolean | true if the mobile is currently paralyzed. |
isDead | boolean | true if the mobile is dead. |
isFemale | boolean | true if the mobile is female. |
inWarMode | boolean | true if the mobile is in war mode (humanoid). |
Notoriety
Notorieties enum.
Direction
Directions enum, or look up the name via reverse indexing.
Equipped Items
Item (or undefined if nothing is equipped there).
Inheritance Chain
TheMobile class sits in the middle of the entity hierarchy:
Entity properties (serial, name, graphic, hue, x, y, z, hits, maxHits, isHidden) are available on every Mobile. The Player class adds character-specific properties such as resistances, gold, skills, and more.