Documentation 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.
The enums namespace provides named numeric constants that make your scripts readable and maintainable. Rather than remembering that spell ID 29 is Greater Heal or that layer 6 is the helmet slot, you can write Spells.GreaterHeal and Layers.Helmet directly. The constants below are the same values the game engine uses internally, so they are safe to pass to any API that accepts a numeric ID.
Abilities
Combat special move identifiers. Pass these values to the relevant client API to activate a special move.
Member Value None0ArmorIgnore1BleedAttack2ConcussionBlow3CrushingBlow4Disarm5Dismount6DoubleStrike7InfectiousStrike8MortalStrike9MovingShot10ParalyzingBlow11ShadowStrike12WhirlwindAttack13RidingSwipe14FrenziedWhirlwind15Block16DefenseMastery17NerveStrike18TalonStrike19Feint20DualWield21DoubleShot22ArmorPierce23Bladeweave24ForceArrow25LightningArrow26PsychicAttack27SerpentArrow28ForceOfNature29InfusedThrow30MysticArc31Invalid255
Directions
Direction values used when comparing entity.direction. North (0) is up on the map, and values increase clockwise.
Member Value North0Right1East2Down3South4Left5West6Up7
Example
if ( player . direction === Directions . North ) {
log ( 'Facing north' );
}
Layers
Equipment slot identifiers. Use these with client.findItemOnLayer() to inspect or interact with items in a specific equipment slot.
Member Value Invalid0OneHanded1TwoHanded2Shoes3Pants4Shirt5Helmet6Gloves7Ring8Talisman9Necklace10Hair11Waist12Torso13Bracelet14Face15Beard16Tunic17Earrings18Arms19Cloak20Backpack21Robe22Skirt23Legs24Mount25ShopBuyRestock26ShopBuy27ShopSell28Bank29
Example
const helmet = client . findItemOnLayer ( Layers . Helmet );
if ( helmet ) {
log ( 'Wearing helmet with serial:' , helmet . serial );
}
Spells
Spell identifiers to use with client.castSpell(). Magery spells start at 1, Necromancy spells at 101, Chivalry at 201, Bushido at 401, Ninjitsu at 501, Spellweaving at 601, Mysticism at 678, and Mastery spells at 701.
Member Value Clumsy1CreateFood2Feeblemind3Heal4MagicArrow5NightSight6ReactiveArmor7Weaken8Agility9Cunning10Cure11Harm12MagicTrap13RemoveTrap14Protection15Strength16Bless17Fireball18MagicLock19Poison20Telekinesis21Teleport22Unlock23WallOfStone24ArchCure25ArchProtection26Curse27FireField28GreaterHeal29Lightning30ManaDrain31Recall32BladeSpirits33DispelField34Incognito35MagicReflect36MindBlast37Paralyze38PoisonField39SummonCreature40Dispel41EnergyBolt42Explosion43Invisibility44Mark45MassCurse46ParalyzeField47Reveal48ChainLightning49EnergyField50FlameStrike51GateTravel52ManaVampire53MassDispel54MeteorSwarm55Polymorph56Earthquake57EnergyVortex58Resurrection59AirElemental60SummonDaemon61EarthElemental62FireElemental63WaterElemental64AnimateDead101BloodOath102CorpseSkin103CurseWeapon104EvilOmen105HorrificBeast106LichForm107MindRot108PainSpike109PoisonStrike110Strangle111SummonFamiliar112VampiricEmbrace113VengefulSpirit114Wither115WraithForm116Exorcism117CleanseByFire201CloseWounds202ConsecrateWeapon203DispelEvil204DivineFury205EnemyOfOne206HolyLight207NobleSacrifice208RemoveCurse209SacredJourney210HonorableExecution401Confidence402Evasion403CounterAttack404LightningStrike405MomentumStrike406FocusAttack501DeathStrike502AnimalForm503KiAttack504SurpriseAttack505Backstab506Shadowjump507MirrorImage508ArcaneCircle601GiftOfRenewal602ImmolatingWeapon603Attunement604Thunderstorm605NaturesFury606SummonFey607SummonFiend608ReaperForm609Wildfire610EssenceOfWind611DryadAllure612EtherealVoyage613WordOfDeath614GiftOfLife615ArcaneEmpowerment616NetherBolt678HealingStone679PurgeMagic680Enchant681Sleep682EagleStrike683AnimatedWeapon684StoneForm685SpellTrigger686MassSleep687CleansingWinds688Bombard689SpellPlague690HailStorm691NetherCyclone692RisingColossus693Inspire701Invigorate702Resilience703Perseverance704Tribulation705Despair706DeathRay707EtherealBurst708NetherBlast709MysticWeapon710CommandUndead711Conduit712ManaShield713SummonReaper714EnchantedSummoning715AnticipateHit716Warcry717Intuition718Rejuvenate719HolyFist720Shadow721WhiteTigerForm722FlamingShot723PlayingTheOdds724Thrust725Pierce726Stagger727Toughness728Onslaught729FocusedEye730ElementalFury731CalledShot732WarriorsGifts733ShieldBash734Bodyguard735HeightenSenses736Tolerance737InjectedStrike738Potency739Rampage740FistsOfFury741Knockout742Whispering743CombatTraining744Boarding745
Example
client . castSpell ( Spells . GreaterHeal );
sleep ( 1000 );
client . castSpell ( Spells . Recall );
SearchEntityOptions
Notoriety-based filter flags for client.selectEntity(). These values can be combined using the bitwise OR operator (|) to match multiple notoriety types at once.
Member Value Any1Enemy2Murderer4Criminal8Gray16Innocent32Unfriendly64Friend128Invulnerable256
Example
// Select the nearest enemy or murderer
const target = client . selectEntity (
SearchEntityOptions . Enemy | SearchEntityOptions . Murderer ,
SearchEntityRangeOptions . Nearest ,
SearchEntityTypeOptions . Any
);
SearchEntityRangeOptions
Controls iteration order when selecting entities with client.selectEntity().
Member Value Next0Previous1Nearest2Closest3
SearchEntityTypeOptions
Filters entity searches by creature type.
Member Value Any0Human1NonHuman2
Example
// Tab through the nearest human enemies only
const humanEnemy = client . selectEntity (
SearchEntityOptions . Enemy ,
SearchEntityRangeOptions . Nearest ,
SearchEntityTypeOptions . Human
);
if ( humanEnemy ) {
log ( 'Found human enemy:' , humanEnemy . name );
}
BuffDebuffs
Identifiers for active buffs and debuffs. Use these to check whether a specific buff or debuff is currently applied via the player namespace.
Member Value DismountPrevention1001NoRearm1002NightSight1005DeathStrike1006EvilOmen1007HonoredDebuff1008AchievePerfection1009DivineFury1010EnemyOfOne1011HidingAndOrStealth1012ActiveMeditation1013BloodOathCaster1014BloodOathCurse1015CorpseSkin1016Mindrot1017PainSpike1018Strangle1019GiftOfRenewal1020AttuneWeapon1021Thunderstorm1022EssenceOfWind1023EtherealVoyage1024GiftOfLife1025ArcaneEmpowerment1026MortalStrike1027ReactiveArmor1028Protection1029ArchProtection1030MagicReflection1031Incognito1032Disguised1033AnimalForm1034Polymorph1035Invisibility1036Paralyze1037Poison1038Bleed1039Clumsy1040FeebleMind1041Weaken1042Curse1043MassCurse1044Agility1045Cunning1046Strength1047Bless1048Sleep1049StoneForm1050SpellPlague1051Berserk1052MassSleep1053Fly1054Inspire1055Invigorate1056Resilience1057Perseverance1058TribulationTarget1059DespairTarget1060FishPie1062HitLowerAttack1063HitLowerDefense1064DualWield1065Block1066DefenseMastery1067DespairCaster1068Healing1069SpellFocusingBuff1070SpellFocusingDebuff1071RageFocusingDebuff1072RageFocusingBuff1073Warding1074TribulationCaster1075ForceArrow1076Disarm1077Surge1078Feint1079TalonStrike1080PsychicAttack1081ConsecrateWeapon1082GrapesOfWrath1083EnemyOfOneDebuff1084HorrificBeast1085LichForm1086VampiricEmbrace1087CurseWeapon1088ReaperForm1089ImmolatingWeapon1090Enchant1091HonorableExecution1092Confidence1093Evasion1094CounterAttack1095LightningStrike1096MomentumStrike1097OrangePetals1098RoseOfTrinsic1099PoisonImmunity1100Veterinary1101Perfection1102Honored1103ManaPhase1104FanDancerFanFire1105Rage1106Webbing1107MedusaStone1108TrueFear1109AuraOfNausea1110HowlOfCacophony1111GazeDespair1112HiryuPhysicalResistance1113RuneBeetleCorruption1114BloodwormAnemia1115RotwormBloodDisease1116SkillUseDelay1117FactionStatLoss1118HeatOfBattleStatus1119CriminalStatus1120ArmorPierce1121SplinteringEffect1122SwingSpeedDebuff1123WraithForm1124Humility1129Rampage1130Stagger1131Toughness1132Thrust1133Pierce1134PlayingTheOdds1135FocusedEye1136Onslaught1137ElementalFury1138ElementalFuryDebuff1139CalledShot1140Knockout1141SavingThrow1142Conduit1143EtherealBurst1144MysticWeapon1145ManaShield1146AnticipateHit1147Warcry1148Shadow1149WhiteTigerForm1150Bodyguard1151HeightenedSenses1152Tolerance1153DeathRay1154DeathRayDebuff1155Intuition1156EnchantedSummoning1157ShieldBash1158Whispering1159CombatTraining1160InjectedStrikeDebuff1161InjectedStrike1162UnknownTomato1163PlayingTheOddsDebuff1164DragonTurtleDebuff1165Boarding1166Potency1167ThrustDebuff1168FistsOfFury1169BarrabHemolymphConcentrate1170JukariBurnPoiltice1171KurakAmbushersEssence1172BarakoDraftOfMight1173UraliTranceTonic1174SakkhraProphylaxis1175Sparks1176Swarm1177BoneBreaker1178Unknown21179SwarmImmune1180BoneBreakerImmune1181UnknownGoblin1182UnknownRedDrop1183UnknownStar1184FeintDebuff1185CaddelliteInfused1186PotionGloriousFortune1187MysticalPolymorphTotem1188UnknownDebuff1189
Skills
Skill index values used with player.useSkill() and related APIs.
Member Value Alchemy0Anatomy1AnimalLore2ItemID3ArmsLore4Parry5Begging6Blacksmith7Fletching8Peacemaking9Camping10Carpentry11Cartography12Cooking13DetectHidden14Discordance15EvalInt16Healing17Fishing18Forensics19Herding20Hiding21Provocation22Inscribe23Lockpicking24Magery25MagicResist26Tactics27Snooping28Musicianship29Poisoning30Archery31SpiritSpeak32Stealing33Tailoring34AnimalTaming35TasteID36Tinkering37Tracking38Veterinary39Swords40Macing41Fencing42Wrestling43Lumberjacking44Mining45Meditation46Stealth47RemoveTrap48Necromancy49Focus50Chivalry51Bushido52Ninjitsu53Spellweaving54Mysticism55Imbuing56Throwing57
Example
player . useSkill ( Skills . Meditation );
sleep ( 10000 );
player . useSkill ( Skills . Anatomy );
Notorieties
Notoriety (karma/status) values that reflect how the game classifies a character or creature. These can be compared against entity.notoriety.
Member Value Unknown0Innocent1Ally2Gray3Criminal4Enemy5Murderer6Invulnerable7
SkillLock
Represents the lock state of a skill, controlling whether it is set to rise, fall, or stay fixed.
Member Value Up0Down1Locked2
MessageType
Message type identifiers used to categorise in-game speech and system messages.
Member Value Regular0System1Emote2Limit3Spell3Label6Focus7Whisper8Yell9Spell10Guild13Alliance14Command15Encoded192UOChat254Party255
Virtues
Identifiers for the three Virtues that can be invoked in-game.
Member Value Honor1Sacrifice2Valor3
Functions sleep, log, and exit — the built-in global functions
Client Namespace Cast spells, find items, and interact with the world
Player Namespace Read and act on player stats, skills, and equipment
Introduction Get started with scripting in ClassicUO Web