Player
The Player class represent the currently logged in character.
Table of Contents
Properties
AR
Player.ARInt32Resistance to Phisical damage.
Backpack
Player.BackpackItemPlayer backpack, as Item object.
Bank
Player.BankItemPlayer bank chest, as Item object.
Body
Player.BodyInt32Player Body or MobileID (see: Mobile.Body)
Buffs
Player.BuffsList[String]List of Player active buffs: Meditation Agility Animal Form Arcane Enpowerment Arcane Enpowerment (new) Arch Protection Armor Pierce Attunement Aura of Nausea Bleed Bless Block Bload Oath (caster) Bload Oath (curse) BloodWorm Anemia City Trade Deal Clumsy Confidence Corpse Skin Counter Attack Criminal Cunning Curse Curse Weapon Death Strike Defense Mastery Despair Despair (target) Disarm (new) Disguised Dismount Prevention Divine Fury Dragon Slasher Fear Enchant Enemy Of One Enemy Of One (new) Essence Of Wind Ethereal Voyage Evasion Evil Omen Faction Loss Fan Dancer Fan Fire Feeble Mind Feint Force Arrow Berserk Fly Gaze Despair Gift Of Life Gift Of Renewal Healing Heat Of Battle Hiding Hiryu Physical Malus Hit Dual Wield Hit Lower Attack Hit Lower Defense Honorable Execution Honored Horrific Beast Hawl Of Cacophony Immolating Weapon Incognito Inspire Invigorate Invisibility Lich Form Lighting Strike Magic Fish Magic Reflection Mana Phase Mass Curse Medusa Stone Mind Rot Momentum Strike Mortal Strike Night Sight NoRearm Orange Petals Pain Spike Paralyze Perfection Perseverance Poison Poison Resistance Polymorph Protection Psychic Attack Consecrate Weapon Rage Rage Focusing Rage Focusing (target) Reactive Armor Reaper Form Resilience Rose Of Trinsic Rotworm Blood Disease Rune Beetle Corruption Skill Use Delay Sleep Spell Focusing Spell Focusing (target) Spell Plague Splintering Effect Stone Form Strangle Strength Surge Swing Speed Talon Strike Vampiric Embrace Weaken Wraith Form
BuffsInfo
Player.BuffsInfoList[BuffInfo]Returns a list with every detailed active buff
ColdResistance
Player.ColdResistanceInt32Resistance to Cold damage.
Connected
Player.ConnectedBooleanRetrieves Connected State
Corpses
Player.CorpsesHashSet[Item]Each Death Player corpse item is added here
DamageChanceIncrease
Player.DamageChanceIncreaseInt32Get total Damage Chance Increase.
DefenseChanceIncrease
Player.DefenseChanceIncreaseInt32Get total Defense Chance Increase.
Dex
Player.DexInt32Stats value for Dexterity.
DexterityIncrease
Player.DexterityIncreaseInt32Get total Dexterity Increase.
Direction
Player.DirectionStringPlayer current direction, as text.
EnergyResistance
Player.EnergyResistanceInt32Resistance to Energy damage.
EnhancePotions
Player.EnhancePotionsInt32Get total Enhance Potions.
Fame
Player.FameInt32Fame has to be reverse engineered from the title so it is just ranges: 0: neutral - 3 is highest fame
FasterCastRecovery
Player.FasterCastRecoveryInt32Get total Faster Cast Recovery.
FasterCasting
Player.FasterCastingInt32Get total Faster Casting.
Female
Player.FemaleBooleanPlayer is a female.
FireResistance
Player.FireResistanceInt32Resistance to Fire damage.
Followers
Player.FollowersInt32Player current amount of pet/followers.
FollowersMax
Player.FollowersMaxInt32Player maximum amount of pet/followers.
Gold
Player.GoldInt32Player total gold, in the backpack.
HasPrimarySpecial
Player.HasPrimarySpecialBooleanHasSecondarySpecial
Player.HasSecondarySpecialBooleanHasSpecial
Player.HasSpecialBooleanPlayer have a special abilities active.
HitChanceIncrease
Player.HitChanceIncreaseInt32Get total Hit Chance Increase.
HitPointsIncrease
Player.HitPointsIncreaseInt32Get total Hit Points Increase.
HitPointsRegeneration
Player.HitPointsRegenerationInt32Get total Hit Points Regeneration.
Hits
Player.HitsInt32Current hit points.
HitsMax
Player.HitsMaxInt32Maximum hit points.
InParty
Player.InPartyBooleanPlayer is in praty.
Int
Player.IntInt32Stats value for Intelligence.
IntelligenceIncrease
Player.IntelligenceIncreaseInt32Get total Intelligence Increase.
IsGhost
Player.IsGhostBooleanPlayer is a Ghost
Karma
Player.KarmaInt32Karma has to be reverse engineered from the title so it is just ranges: -5: most evil, 0: neutral, 5 most good
KarmaTitle
Player.KarmaTitleStringThis is the title string returned from the server
LowerManaCost
Player.LowerManaCostInt32Get total Lower Mana Cost.
LowerReagentCost
Player.LowerReagentCostInt32Get total Lower Reagent Cost.
Luck
Player.LuckInt32Player total luck.
Mana
Player.ManaInt32Current mana.
ManaIncrease
Player.ManaIncreaseInt32Get total Mana Increase.
ManaMax
Player.ManaMaxInt32Maximum mana.
ManaRegeneration
Player.ManaRegenerationInt32Get total Mana Regeneration.
Map
Player.MapInt32Player current map, or facet.
MaxWeight
Player.MaxWeightInt32Player maximum weight.
MaximumHitPointsIncrease
Player.MaximumHitPointsIncreaseInt32Get total Maximum Hit Points Increase.
MaximumStaminaIncrease
Player.MaximumStaminaIncreaseInt32Get total Maximum Stamina Increase.
MobileID
Player.MobileIDInt32Player MobileID or Body (see: Mobile.MobileID)
Mount
Player.MountItemPlayer current Mount, as Item object. NOTE: On some server the Serial return by this function doesn't match the mount serial.
Name
Player.NameStringPlayer name.
Notoriety
Player.NotorietyBytePlayer notoriety 1: blue, innocent 2: green, friend 3: gray, neutral 4: gray, criminal 5: orange, enemy 6: red, hostile 6: yellow, invulnerable
Paralized
Player.ParalizedBooleanPlayer is Paralyzed. True also while frozen because of casting of spells.
Pets
Player.PetsList[Mobile]Finds all neutral pets in the area that can be renamed. This isn't the server information on your pets, but its good enough for most cases
PoisonResistance
Player.PoisonResistanceInt32Resistance to Poison damage.
Poisoned
Player.PoisonedBooleanPlayer is Poisoned
Position
Player.PositionPoint3DCurrent Player position as Point3D object.
PrimarySpecial
Player.PrimarySpecialUInt32Quiver
Player.QuiverItemPlayer quiver, as Item object.
ReflectPhysicalDamage
Player.ReflectPhysicalDamageInt32Get total Reflect Physical Damage.
SecondarySpecial
Player.SecondarySpecialUInt32Serial
Player.SerialInt32Player unique Serial.
SpellDamageIncrease
Player.SpellDamageIncreaseInt32Get total Spell Damage Increase.
Stam
Player.StamInt32Current stamina.
StamMax
Player.StamMaxInt32Maximum stamina.
StaminaIncrease
Player.StaminaIncreaseInt32Get total Stamina Increase.
StaminaRegeneration
Player.StaminaRegenerationInt32Get total Stamina Regeneration.
StatCap
Player.StatCapInt32Get the stats cap.
StaticMount
Player.StaticMountInt32Retrieves serial of mount set in Filter/Mount GUI.
Str
Player.StrInt32Stats value for Strenght.
StrengthIncrease
Player.StrengthIncreaseInt32Get total Strength Increase.
SwingSpeedIncrease
Player.SwingSpeedIncreaseInt32Get total Swing Speed Increase.
Visible
Player.VisibleBooleanPlayer is visible, false if hidden.
WarMode
Player.WarModeBooleanPlayer has war mode active.
Weight
Player.WeightInt32Player current weight.
YellowHits
Player.YellowHitsBooleanPlayer HP bar is not blue, but yellow.
Methods
Area
Player.Area()Get the name of the area in which the Player is currently in. (Ex: Britain, Destard, Vesper, Moongate, etc) Regions are defined inside by Persistence/regions.json.
StringAttack
Player.Attack(serial)Attack a Mobile.
serial(Int32): Serial or Mobile to attack.
VoidAttackLast
Player.AttackLast()Attack last target.
VoidAttackType
Player.AttackType(graphic, rangemax, selector, color, notoriety)graphic(Int32)rangemax(Int32)selector(String)color(List[Int32])notoriety(List[Byte])
BooleanBuffTime
Player.BuffTime(buffname)buffname(String)
Int32BuffsExist
Player.BuffsExist(buffname, okayToGuess)Check if a buff is active, by buff name.
buffname(String)okayToGuess(Boolean)
BooleanChatAlliance
Player.ChatAlliance(msg)Send message to the alliace chat.
msg(String): Message to send.
VoidChatChannel
Player.ChatChannel(msg)Send an chat channel message.
msg(String): Message to send.
VoidChatEmote
Player.ChatEmote(color, msg)Send an emote in game.
color(Int32): Color of the textmsg(String): Message to send.
VoidChatGuild
Player.ChatGuild(msg)Send message to the guild chat.
msg(String): Message to send.
VoidChatParty
Player.ChatParty(msg, recepient_serial)Send message in arty chat. If a recepient_serial is specified, the message is private.
msg(String): Text to send.recepient_serial(Int32): Optional: Target of private message.
VoidChatSay
Player.ChatSay(color, msg)Send message in game. Send message in game using 1153 for color.
color(Int32): Color of the textmsg(String): Message to send.
VoidChatWhisper
Player.ChatWhisper(color, msg)Send an wishper message.
color(Int32): Color of the textmsg(String): Message to send.
VoidChatYell
Player.ChatYell(color, msg)Send an yell message.
color(Int32): Color of the textmsg(String): Message to send.
VoidCheckLayer
Player.CheckLayer(layer)Check if a Layer is equipped by the Item.
layer(String): Layers: RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Hair Waist InnerTorso Bracelet FacialHair MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs Talisman
BooleanClearCorpseList
Player.ClearCorpseList()Clear the Player corpse item list
VoidDistanceTo
Player.DistanceTo(target)Returns the distance between the Player and a Mobile or an Item.
target(UOEntity): The other Mobile or Item
Int32EmoteAction
Player.EmoteAction(action)action(String)
VoidEquipItem
Player.EquipItem(serial)Equip an Item
serial(Int32): Serial or Item to equip.
VoidEquipLastWeapon
Player.EquipLastWeapon()Equip the last used weapon
VoidEquipUO3D
Player.EquipUO3D(serials)Equip a python list of item by using UO3D packet.
serials(List[Int32])
VoidFly
Player.Fly(status)Enable or disable Gargoyle Flying.
status(Boolean): True: Gargoyle Fly ON - False: Gargoyle fly OFF
VoidGetBuffInfo
Player.GetBuffInfo(buffName, okayToGuess)Check if buff information is active by buff name and returns it.
buffName(String)okayToGuess(Boolean)
BuffInfoGetItemOnLayer
Player.GetItemOnLayer(layer)Returns the Item associated with a Mobile Layer.
layer(String): Layers: RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Hair Waist InnerTorso Bracelet FacialHair MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs Talisman
ItemGetPropStringByIndex
Player.GetPropStringByIndex(index)Get a single line of Properties of the Player, from the tooltip, as text.
index(Int32): Line number, start from 0.
StringGetPropStringList
Player.GetPropStringList()Get the list of Properties of the Player, as list of lines of the tooltip.
List[String]GetPropValue
Player.GetPropValue(name)Get the numeric value of a specific Player property, from the tooltip.
name(String): Name of the property.
Int32GetRealSkillValue
Player.GetRealSkillValue(skillname)Get the base/real value of the skill for the given the skill name.
skillname(String): Alchemy Anatomy Animal Lore Item ID Arms Lore Parry Begging Blacksmith Fletching Peacemaking Camping Carpentry Cartography Cooking Detect Hidden Discordance EvalInt Healing Fishing Forensics Herding Hiding Provocation Inscribe Lockpicking Magery Magic Resist Mysticism Tactics Snooping Musicianship Poisoning Archery Spirit Speak Stealing Tailoring Animal Taming Taste ID Tinkering Tracking Veterinary Swords Macing Fencing Wrestling Lumberjacking Mining Meditation Stealth Remove Trap Necromancy Focus Chivalry Bushido Ninjitsu Spell Weaving Imbuing
DoubleGetSkillCap
Player.GetSkillCap(skillname)Get the skill cap for the given the skill name.
skillname(String): Alchemy Anatomy Animal Lore Item ID Arms Lore Parry Begging Blacksmith Fletching Peacemaking Camping Carpentry Cartography Cooking Detect Hidden Discordance EvalInt Healing Fishing Forensics Herding Hiding Provocation Inscribe Lockpicking Magery Magic Resist Mysticism Tactics Snooping Musicianship Poisoning Archery Spirit Speak Stealing Tailoring Animal Taming Taste ID Tinkering Tracking Veterinary Swords Macing Fencing Wrestling Lumberjacking Mining Meditation Stealth Remove Trap Necromancy Focus Chivalry Bushido Ninjitsu Spell Weaving Imbuing
DoubleGetSkillStatus
Player.GetSkillStatus(skillname)Get lock status for a specific skill.
skillname(String): Alchemy Anatomy Animal Lore Item ID Arms Lore Parry Begging Blacksmith Fletching Peacemaking Camping Carpentry Cartography Cooking Detect Hidden Discordance EvalInt Healing Fishing Forensics Herding Hiding Provocation Inscribe Lockpicking Magery Magic Resist Mysticism Tactics Snooping Musicianship Poisoning Archery Spirit Speak Stealing Tailoring Animal Taming Taste ID Tinkering Tracking Veterinary Swords Macing Fencing Wrestling Lumberjacking Mining Meditation Stealth Remove Trap Necromancy Focus Chivalry Bushido Ninjitsu Spell Weaving Imbuing
Int32GetSkillValue
Player.GetSkillValue(skillname)Get the value of the skill, with modifiers, for the given the skill name.
skillname(String): Alchemy Anatomy Animal Lore Item ID Arms Lore Parry Begging Blacksmith Fletching Peacemaking Camping Carpentry Cartography Cooking Detect Hidden Discordance EvalInt Healing Fishing Forensics Herding Hiding Provocation Inscribe Lockpicking Magery Magic Resist Mysticism Tactics Snooping Musicianship Poisoning Archery Spirit Speak Stealing Tailoring Animal Taming Taste ID Tinkering Tracking Veterinary Swords Macing Fencing Wrestling Lumberjacking Mining Meditation Stealth Remove Trap Necromancy Focus Chivalry Bushido Ninjitsu Spell Weaving Imbuing
DoubleGetStatStatus
Player.GetStatStatus(statname)Get lock status for a specific stats.
statname(String): Strength Dexterity Intelligence
Int32GuildButton
Player.GuildButton()Press the Guild menu button in the paperdoll.
VoidHeadMessage
Player.HeadMessage(color, msg)Display a message above the Player. Visible only by the Player.
color(Int32): Color of the Text.msg(String): Text of the message.
VoidInRange
Player.InRange(entity, range)Check if the mobile or item is within a certain range (<=). Check if the serial is within a certain range (<=).
entity(UOEntity)range(Int32): Maximum distance in tiles.
BooleanInRangeItem
Player.InRangeItem(item, range)Check if the Item is within a certain range (<=).
item(Int32): Serial or Item object.range(Int32): Maximum distance in tiles.
BooleanInRangeMobile
Player.InRangeMobile(mobile, range)Check if the Mobile is within a certain range (<=). Check if the mobile is within a certain range (<=).
mobile(Int32): Serial or Mobile object.range(Int32): Maximum distance in tiles.
BooleanInvokeVirtue
Player.InvokeVirtue(virtue)Invoke a virtue by name. Invoke a virtue by name.
virtue(String): Honor Sacrifice Valor Compassion Honesty Humility Justice Spirituality
VoidKickMember
Player.KickMember(serial)Kick a member from party by serial. Only for party leader
serial(Int32): Serial of the Mobile to remove.
VoidLeaveParty
Player.LeaveParty(force)Leaves a party.
force(Boolean): True: Leave the party invite even you notin any party.
VoidMapSay
Player.MapSay(msg)Send message in the Map chat.
msg(String): Message to send
VoidOpenPaperDoll
Player.OpenPaperDoll()Open Player's Paperdoll
VoidPartyAccept
Player.PartyAccept(from_serial, force)Accept an incoming party offer. In case of multiple party oebnding invitation, from_serial is specified,
from_serial(Int32): Optional: Serial to accept party from.( in case of multiple offers )force(Boolean): True: Accept the party invite even you are already in a party.
BooleanPartyCanLoot
Player.PartyCanLoot(CanLoot)Set the Party loot permissions.
CanLoot(Boolean)
VoidPartyInvite
Player.PartyInvite()Invite a person to a party. Prompt for a in-game Target.
VoidPathFindTo
Player.PathFindTo(x, y, z)Go to the given coordinates using Client-provided pathfinding. Go to the position supplied using Client-provided pathfinding. Go to the position supplied using Client-provided pathfinding.
x(Int32): X map coordinates or Point3Dy(Int32): Y map coordinatesz(Int32): Z map coordinates
VoidQuestButton
Player.QuestButton()Press the Quest menu button in the paperdoll.
VoidRun
Player.Run(direction)Run one step in the specified direction and wait for the confirmation of the new position by the server. If the character is not facing the direction, the first step only "turn" the Player in the required direction. Info: Walking: 5 tiles/sec (~200ms between each step) Running: 10 tiles/sec (~100ms between each step)
direction(String): North South East West Up Down Left Right
BooleanSetSkillStatus
Player.SetSkillStatus(skillname, status)Set lock status for a specific skill.
skillname(String): Alchemy Anatomy Animal Lore Item ID Arms Lore Parry Begging Blacksmith Fletching Peacemaking Camping Carpentry Cartography Cooking Detect Hidden Discordance EvalInt Healing Fishing Forensics Herding Hiding Provocation Inscribe Lockpicking Magery Magic Resist Mysticism Tactics Snooping Musicianship Poisoning Archery Spirit Speak Stealing Tailoring Animal Taming Taste ID Tinkering Tracking Veterinary Swords Macing Fencing Wrestling Lumberjacking Mining Meditation Stealth Remove Trap Necromancy Focus Chivalry Bushido Ninjitsu Spell Weaving Imbuingstatus(Int32): Lock status: 0: Up 1: Down 2: Locked
VoidSetStatStatus
Player.SetStatStatus(statname, status)Set lock status for a specific skill.
statname(String): Strength Dexterity Intelligencestatus(Int32): Lock status: 0: Up 1: Down 2: Locked
VoidSetStaticMount
Player.SetStaticMount(serial)Sets serial of mount set in Filter/Mount GUI.
serial(Int32)
VoidSetWarMode
Player.SetWarMode(warflag)Set war Mode on on/off.
warflag(Boolean): True: War - False: Peace
VoidSkillDelay
Player.SkillDelay()Returns the remaining milliseconds until the next skill use is allowed by the server.
Returns 0 if no skill delay is active.
Use with
Int32SpellIsEnabled
Player.SpellIsEnabled(spellname)Check if spell is active using the spell name (for spells that have this function).
spellname(String): Name of the spell.
BooleanSumAttribute
Player.SumAttribute(attributename)Scan all the equipped Item, returns the total value of a specific property. (ex: Lower Reagent Cost ) NOTE: This function is slow.
attributename(String): Name of the property.
SingleToggleAlwaysRun
Player.ToggleAlwaysRun()Toggle on/off the awlays run flag. NOTE: Works only on OSI client.
VoidTrackingArrow
Player.TrackingArrow(x, y, display, target)Display a fake tracking arrow
x(UInt16): X coordinate.y(UInt16): Y coordinate.display(Boolean): True = On, False = offtarget(UInt32): object serial targeted
VoidUnEquipItemByLayer
Player.UnEquipItemByLayer(layer, wait)Unequip the Item associated with a specific Layer.
layer(String): Layers: RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Hair Waist InnerTorso Bracelet FacialHair MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs Talismanwait(Boolean): Wait for confirmation from the server.
VoidUnEquipUO3D
Player.UnEquipUO3D(_layers)UnEquip a python list of layer names by using UO3D packet.
_layers(IEnumerable[String])
VoidUpdateKarma
Player.UpdateKarma()Costly! Updates the Fame and Karma of the Mobile, but it can take as long as 1 second to complete.
BooleanUseSkill
Player.UseSkill(skillname, target, wait)Use a specific skill, and optionally apply that skill to the target specified.
skillname(String): Alchemy Anatomy Animal Lore Item ID Arms Lore Parry Begging Blacksmith Fletching Peacemaking Camping Carpentry Cartography Cooking Detect Hidden Discordance EvalInt Healing Fishing Forensics Herding Hiding Provocation Inscribe Lockpicking Magery Magic Resist Mysticism Tactics Snooping Musicianship Poisoning Archery Spirit Speak Stealing Tailoring Animal Taming Taste ID Tinkering Tracking Veterinary Swords Macing Fencing Wrestling Lumberjacking Mining Meditation Stealth Remove Trap Necromancy Focus Chivalry Bushido Ninjitsu Spell Weaving Imbuingtarget(Int32): Optional: Serial, Mobile or Item to target. (default: null)wait(Boolean): Optional: True: wait for confirmation from the server (default: False)
VoidUseSkillOnly
Player.UseSkillOnly(skillname, wait)skillname(String)wait(Boolean)
VoidWalk
Player.Walk(direction)direction(String)
BooleanWeaponClearSA
Player.WeaponClearSA()Disable any active Special Ability of the weapon.
VoidWeaponDisarmSA
Player.WeaponDisarmSA()Toggle Disarm Ability.
VoidWeaponPrimarySA
Player.WeaponPrimarySA()Toggle on/off the primary Special Ability of the weapon.
VoidWeaponSecondarySA
Player.WeaponSecondarySA()Toggle on/off the secondary Special Ability of the weapon.
VoidWeaponStunSA
Player.WeaponStunSA()Toggle Stun Ability.
VoidZone
Player.Zone()Get the type of zone in which the Player is currently in. Regions are defined inside by Persistence/regions.json.
String