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.
Player class represents your currently logged-in character and is accessible everywhere in your scripts as the global player variable. It extends Mobile, inheriting all entity and mobile properties, and adds player-specific stats such as resistances, skill values, gold, weight, and combat abilities.
player is always available as a global variable when a script is running in-game. It extends Mobile, so all Mobile and Entity properties are also available.Properties
Core Stats
| Property | Type | Description |
|---|---|---|
hits | number | Current hit points. Returns 0 if entity is off-screen. |
maxHits | number | Maximum hit points. |
mana | number | Current mana (real value for the player). |
maxMana | number | Maximum mana. |
stamina | number | Current stamina (real value for the player). |
maxStamina | number | Maximum stamina. |
strength | number | Strength attribute. |
intelligence | number | Intelligence attribute. |
dexterity | number | Dexterity attribute. |
statsCap | number | The player’s stat cap. |
Identity & Economy
| Property | Type | Description |
|---|---|---|
serial | number | Unique serial of the player. |
name | string | Character name. |
gold | number | Amount of gold in the player’s pack. |
weight | number | Current carried weight. |
weightMax | number | Maximum carry weight. |
map | number | Current map/facet index. |
tithingPoints | number | Current tithing points. |
luck | number | Luck stat. |
followers | number | Current number of followers. |
maxFollowers | number | Maximum allowed followers. |
Resistances
| Property | Type | Description |
|---|---|---|
physicalResistance | number | Physical resistance value. |
fireResistance | number | Fire resistance value. |
coldResistance | number | Cold resistance value. |
poisonResistance | number | Poison resistance value. |
energyResistance | number | Energy resistance value. |
maxPhysicResistence | number | Maximum physical resistance cap. |
maxFireResistence | number | Maximum fire resistance cap. |
maxColdResistence | number | Maximum cold resistance cap. |
maxPoisonResistence | number | Maximum poison resistance cap. |
maxEnergyResistence | number | Maximum energy resistance cap. |
Combat & Abilities
| Property | Type | Description |
|---|---|---|
damageMin | number | Minimum weapon damage. |
damageMax | number | Maximum weapon damage. |
damageIncrease | number | Damage increase bonus. |
hitChanceIncrease | number | Hit chance increase bonus. |
defenseChanceIncrease | number | Defense chance increase bonus. |
maxDefenseChanceIncrease | number | Max defense chance increase cap. |
swingSpeedIncrease | number | Swing speed increase bonus. |
spellDamageIncrease | number | Spell damage increase bonus. |
fasterCasting | number | Faster casting bonus. |
fasterCastRecovery | number | Faster cast recovery bonus. |
lowerManaCost | number | Lower mana cost bonus. |
lowerReagentCost | number | Lower reagent cost bonus. |
primaryAbility | Abilities | Currently set primary combat ability. |
secondaryAbility | Abilities | Currently set secondary combat ability. |
Status Flags
| Property | Type | Description |
|---|---|---|
isPoisoned | boolean | true if the player is currently poisoned (green hue). |
isYellowHits | boolean | true if the player’s health bar is yellow (Invulnerable). |
isHidden | boolean | true if the player is hidden. |
isParalyzed | boolean | true if the player is paralyzed. |
isDead | boolean | true if the player is dead. |
isFemale | boolean | true if the player is female. |
inWarMode | boolean | true if the player is in war mode. |
Equipment & Inventory
Thebackpack property returns the player’s top-level backpack container. equippedItems exposes every equipment slot as a named property.
Position (inherited from Entity)
| Property | Type | Description |
|---|---|---|
x | number | Current X coordinate. |
y | number | Current Y coordinate. |
z | number | Current Z coordinate. |
graphic | number | Graphic/body ID of the player. |
hue | number | Hue/color of the player. |
notoriety | Notorieties | Notoriety status (Innocent, Gray, etc.). |
direction | number | Facing direction. Compare using the Directions enum. |
Methods
say()
The text to say in chat.
Optional hue/colour for the message text.
walk()
true if the character can walk.
run()
true if the character can run.
use()
The item or entity to use.
useType()
useItemInHand()
useLastObject()
equip()
moveItem()
The item to move.
The destination container.
Optional X placement within the container.
Optional Y placement within the container.
Optional Z placement within the container.
Amount to move (for stackable items).
moveType()
moveItemOnGroundOffset()
attack()
cast()
castTo()
useSkill()
useVirtue()
getSkill()
value is stored as an integer — e.g. 74.6 skill becomes 746.
getAllSkills()
setSkillLock()
setAbility()
true for primary ability, false for secondary.true to activate, false to deactivate.hasBuffDebuff()
true if the player currently has the given buff or debuff active.
waitForBuffDebuff()
toggleWarMode()
toggleFlying()
fly() / land()
openDoor()
click()
moveTypeOnGroundOffset()
dressKr()
Array of item serials or Item objects to dress.
undressKr()
Array of layer values to undress.