Player¶
Properties¶
Player.AR
Int32Resistance to Phisical damage.Player.Backpack
ItemPlayer backpack, as Item object.Player.Bank
ItemPlayer bank chest, as Item object.Player.Body
Int32Player Body or MobileID (see: Mobile.Body)Player.Buffs
List[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
Player.ColdResistance
Int32Resistance to Cold damage.Player.DamageChanceIncrease
Int32Get total Damage Chance Increase.Player.DefenseChanceIncrease
Int32Get total Defense Chance Increase.Player.Dex
Int32Stats value for Dexterity.Player.DexterityIncrease
Int32Get total Dexterity Increase.Player.Direction
StringPlayer current direction, as text.Player.EnergyResistance
Int32Resistance to Energy damage.Player.EnhancePotions
Int32Get total Enhance Potions.Player.FasterCasting
Int32Get total Faster Casting.Player.FasterCastRecovery
Int32Get total Faster Cast Recovery.Player.Female
BooleanPlayer is a female.Player.FireResistance
Int32Resistance to Fire damage.Player.Followers
Int32Player current amount of pet/followers.Player.FollowersMax
Int32Player maximum amount of pet/followers.Player.Gold
Int32Player total gold, in the backpack.Player.HasSpecial
BooleanPlayer have a special abilities active.Player.HitPointsIncrease
Int32Get total Hit Points Increase.Player.HitPointsRegeneration
Int32Get total Hit Points Regeneration.Player.Hits
Int32Current hit points.Player.HitsMax
Int32Maximum hit points.Player.InParty
BooleanPlayer is in praty.Player.Int
Int32Stats value for Intelligence.Player.IntelligenceIncrease
Int32Get total Intelligence Increase.Player.IsGhost
BooleanPlayer is a GhostPlayer.LowerManaCost
Int32Get total Lower Mana Cost.Player.LowerReagentCost
Int32Get total Lower Reagent Cost.Player.Luck
Int32Player total luck.Player.Mana
Int32Current mana.Player.ManaIncrease
Int32Get total Mana Increase.Player.ManaMax
Int32Maximum mana.Player.ManaRegeneration
Int32Get total Mana Regeneration.Player.Map
Int32Player current map, or facet.Player.MaximumHitPointsIncrease
Int32Get total Maximum Hit Points Increase.Player.MaximumManaIncrease
Int32Get total Maximum Mana Increase.Player.MaximumStaminaIncrease
Int32Get total Maximum Stamina Increase.Player.MaxWeight
Int32Player maximum weight.Player.MobileID
Int32Player MobileID or Body (see: Mobile.MobileID)Player.Mount
ItemPlayer current Mount, as Item object.
NOTE: On some server the Serial return by this function doesn’t match the mount serial.
Player.Name
StringPlayer name.Player.Notoriety
BytePlayer notoriety1: blue, innocent 2: green, friend 3: gray, neutral 4: gray, criminal 5: orange, enemy 6: red, hostile 6: yellow, invulnerable
Player.Paralized
BooleanPlayer is Paralized. True also while frozen because of casting of spells.Player.Poisoned
BooleanPlayer is PoisonedPlayer.PoisonResistance
Int32Resistance to Poison damage.Player.Position
Point3DCurrent Player position as Point3D object.Player.Quiver
ItemPlayer quiver, as Item object.Player.ReflectPhysicalDamage
Int32Get total Reflect Physical Damage.Player.Serial
Int32Player unique Serial.Player.SpellDamageIncrease
Int32Get total Spell Damage Increase.Player.Stam
Int32Current stamina.Player.StaminaIncrease
Int32Get total Stamina Increase.Player.StaminaRegeneration
Int32Get total Stamina Regeneration.Player.StamMax
Int32Maximum stamina.Player.StatCap
Int32Get the stats cap.Player.StaticMount
Int32Retrieves serial of mount set in Filter/Mount GUI.Player.Str
Int32Stats value for Strenght.Player.StrengthIncrease
Int32Get total Strength Increase.Player.SwingSpeedIncrease
Int32Get total Swing Speed Increase.Player.Visible
BooleanPlayer is visible, false if hidden.Player.WarMode
BooleanPlayer has war mode active.Player.Weight
Int32Player current weight.Player.YellowHits
BooleanPlayer HP bar is not blue, but yellow.
Methods¶
- Player.Area() → String¶
Get the name of the area in which the Player is currently in. (Ex: Britain, Destard, Vesper, Moongate, etc) Regions are defined inside by Config/regions.json.
- Player.Attack(serial) → Void¶
serial:
Int32Serial or Mobile to attack.
Attack a Mobile.
- Player.Attack(mobile) → Void¶
mobile:
Mobile
- Player.AttackLast() → Void¶
Attack last target.
- Player.BuffsExist(buffname) → Boolean¶
buffname:
StringMeditation
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
Check if a buff is active, by buff name.
- Player.ChatAlliance(msg) → Void¶
msg:
Int32
- Player.ChatAlliance(msg) → Void¶
msg:
StringMessage to send.
Send message to the alliace chat.
- Player.ChatChannel(msg) → Void¶
msg:
Int32
- Player.ChatChannel(msg) → Void¶
msg:
StringMessage to send.
Send an chat channel message.
- Player.ChatEmote(color, msg) → Void¶
color:
Int32Color of the textmsg:
StringMessage to send.
Send an emote in game.
- Player.ChatEmote(color, msg) → Void¶
color:
Int32msg:
Int32
- Player.ChatGuild(msg) → Void¶
msg:
Int32
- Player.ChatGuild(msg) → Void¶
msg:
StringMessage to send.
Send message to the guild chat.
- Player.ChatParty(msg, recepient_serial) → Void¶
msg:
StringText to send.recepient_serial:
Int32Optional: Target of private message.
Send message in arty chat. If a recepient_serial is specified, the message is private.
- Player.ChatSay(color, msg) → Void¶
color:
Int32Color of the textmsg:
StringMessage to send.
Send message in game.
- Player.ChatSay(color, msg) → Void¶
color:
Int32msg:
Int32
- Player.ChatWhisper(color, msg) → Void¶
color:
Int32Color of the textmsg:
StringMessage to send.
Send an wishper message.
- Player.ChatWhisper(color, msg) → Void¶
color:
Int32msg:
Int32
- Player.ChatYell(color, msg) → Void¶
color:
Int32msg:
Int32
- Player.ChatYell(color, msg) → Void¶
color:
Int32Color of the textmsg:
StringMessage to send.
Send an yell message.
- Player.CheckLayer(layer) → Boolean¶
- layer:
StringLayers: RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Hair Waist InnerTorso Bracelet FacialHair MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs Talisman
- layer:
Check if a Layer is equipped by the Item.
- Player.DistanceTo(target) → Int32¶
target:
MobileThe other Mobile or Item
Returns the distance between the Player and a Mobile or an Item.
- Player.DistanceTo(target) → Int32¶
target:
Item
- Player.EquipItem(item) → Void¶
item:
Item
- Player.EquipItem(serial) → Void¶
serial:
Int32Serial or Item to equip.
Equip an Item
- Player.EquipUO3D(serials) → Void¶
serials:
List[Int32]
- Player.Fly(status) → Void¶
status:
BooleanTrue: Gargoyle Fly ON - False: Gargoyle fly OFF
Enable or disable Gargoyle Flying.
- layer:
StringLayers: RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Hair Waist InnerTorso Bracelet FacialHair MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs Talisman
- layer:
Returns the Item associated with a Mobile Layer.
- Player.GetPropStringByIndex(index) → String¶
index:
Int32Line number, start from 0.
Get a single line of Properties of the Player, from the tooltip, as text.
- Player.GetPropStringList() → List[String]¶
Get the list of Properties of the Player, as list of lines of the tooltip.
- Player.GetPropValue(name) → Int32¶
name:
StringName of the property.
Get the numeric value of a specific Player property, from the tooltip.
- Player.GetRealSkillValue(skillname) → Double¶
skillname:
StringAlchemy
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
Get the base/real value of the skill for the given the skill name.
- Player.GetSkillCap(skillname) → Double¶
skillname:
StringAlchemy
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
Get the skill cap for the given the skill name.
- Player.GetSkillStatus(skillname) → Int32¶
skillname:
StringAlchemy
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
Get lock status for a specific skill.
- Player.GetSkillValue(skillname) → Double¶
skillname:
StringAlchemy
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
Get the value of the skill, with modifiers, for the given the skill name.
- Player.GetStatStatus(statname) → Int32¶
statname:
StringStrength
Dexterity Intelligence
Get lock status for a specific stats.
- Player.GuildButton() → Void¶
Press the Guild menu button in the paperdoll.
- Player.HeadMessage(color, msg) → Void¶
color:
Int32msg:
Int32
- Player.HeadMessage(color, msg) → Void¶
color:
Int32Color of the Text.msg:
StringText of the message.
Display a message above the Player. Visible only by the Player.
- Player.InRangeItem(item, range) → Boolean¶
item:
Itemrange:
Int32
- Player.InRangeItem(item, range) → Boolean¶
item:
Int32range:
Int32
- Player.InRangeMobile(mobile, range) → Boolean¶
mobile:
Int32range:
Int32
- Player.InRangeMobile(mobile, range) → Boolean¶
mobile:
Mobilerange:
Int32
- Player.InvokeVirtue(virtue) → Void¶
virtue:
StringHonor
Sacrifice Valor Compassion Honesty Humility Justice
Invoke a virtue by name.
- Player.KickMember(serial) → Void¶
serial:
Int32Serial of the Mobile to remove.
Kick a member from party by serial. Only for party leader
- Player.LeaveParty(force) → Void¶
force:
BooleanTrue: Leave the party invite even you notin any party.
Leaves a party.
- Player.MapSay(msg) → Void¶
msg:
StringMessage to send
Send message in the Map chat.
- Player.MapSay(msg) → Void¶
msg:
Int32
- Player.PartyAccept(from_serial, force) → Boolean¶
from_serial:
Int32Optional: Serial to accept party from.( in case of multiple offers )force:
BooleanTrue: Accept the party invite even you are already in a party.
Accept an incoming party offer. In case of multiple party oebnding invitation, from_serial is specified,
- Player.PartyCanLoot(CanLoot) → Void¶
CanLoot:
Boolean
Set the Party loot permissions.
- Player.PartyInvite() → Void¶
Invite a person to a party. Prompt for a in-game Target.
- Player.PathFindTo(x, y, z) → Void¶
x:
Int32X map coordinates or Point3Dy:
Int32Y map coordinatesz:
Int32Z map coordinates
Go to the given coordinates using Client-provided pathfinding.
- Player.PathFindTo(Location) → Void¶
Location:
Point3D
- Player.QuestButton() → Void¶
Press the Quest menu button in the paperdoll.
- Player.Run(direction, checkPosition) → Boolean¶
direction:
StringNorth
South
East
West
Up
Down
Left
Right
* checkPosition: Boolean True: Wait until the server confirm the new Player.Position - False: Don’t wait.
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. Optional: When checkPosition is True allow for slower but safe walking, the new position confirmed at each step via return value. When checkPosition is Flase allow for faster walking/running, but requires custom delay and position checking. Info: Walking: 5 tiles/sec (~200ms between each step) Running: 10 tiles/sec (~100ms between each step)
- Player.SetSkillStatus(skillname, status) → Void¶
skillname:
StringAlchemy
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
* status: Int32 Lock status:
0: Up 1: Down 2: Locked
Set lock status for a specific skill.
- Player.SetStatStatus(statname, status) → Void¶
statname:
String- status:
Int32Lock status: 0: Up 1: Down 2: Locked
- status:
Set lock status for a specific skill.
- Player.SetWarMode(warflag) → Void¶
warflag:
BooleanTrue: War - False: Peace
Set war Mode on on/off.
- Player.SpellIsEnabled(spellname) → Boolean¶
spellname:
StringName of the spell.
Check if spell is active using the spell name (for spells that have this function).
- Player.SumAttribute(attributename) → Single¶
attributename:
StringName of the property.
Scan all the equipped Item, returns the total value of a specific property. (ex: Lower Reagent Cost ) NOTE: This function is slow.
- Player.ToggleAlwaysRun() → Void¶
Toggle on/off the awlays run flag. NOTE: Works only on OSI client.
- Player.UnEquipItemByLayer(layer, wait) → Void¶
- layer:
StringLayers: RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Hair Waist InnerTorso Bracelet FacialHair MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs Talisman
- layer:
wait:
BooleanWait for confirmation from the server.
Unequip the Item associated with a specific Layer.
- Player.UseSkill(skillname, target, wait) → Void¶
skillname:
Stringtarget:
Itemwait:
Boolean
- Player.UseSkill(skillname, wait) → Void¶
skillname:
Stringwait:
Boolean
- Player.UseSkill(skillname, target, wait) → Void¶
skillname:
StringAlchemy
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
* target: Int32 Optional: Serial, Mobile or Item to target. (default: null)
* wait: Boolean Optional: True: wait for confirmation from the server (default: False)
Use a specific skill, and optionally apply that skill to the target specified.
- Player.UseSkill(skillname, target, wait) → Void¶
skillname:
Stringtarget:
Mobilewait:
Boolean
- Player.UseSkill(skillname) → Void¶
skillname:
String
- Player.UseSkillOnly(skillname, wait) → Void¶
skillname:
Stringwait:
Boolean
- Player.Walk(direction, checkPosition) → Boolean¶
direction:
StringNorth
South
East
West
Up
Down
Left
Right
* checkPosition: Boolean True: Wait until the server confirm the new Player.Position - False: Don’t wait.
Walk 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. Optional: When checkPosition is True allow for slower but safe walking, the new position confirmed at each step via return value. When checkPosition is Flase allow for faster walking/running, but requires custom delay and position checking. Info: Walking: 5 tiles/sec (~200ms between each step) Running: 10 tiles/sec (~100ms between each step)
- Player.WeaponClearSA() → Void¶
Disable any active Special Ability of the weapon.
- Player.WeaponDisarmSA() → Void¶
Toggle Disarm Ability.
- Player.WeaponPrimarySA() → Void¶
Toggle on/off the primary Special Ability of the weapon.
- Player.WeaponSecondarySA() → Void¶
Toggle on/off the secondary Special Ability of the weapon.
- Player.WeaponStunSA() → Void¶
Toggle Stun Ability.
- Player.Zone() → String¶
Get the type of zone in which the Player is currently in. Regions are defined inside by Config/regions.json.