Mobile
The Mobile class represents an single alive entity. While the Mobile.Serial is unique for each Mobile, Mobile.MobileID is the unique for the Mobile appearance, or image. Sometimes is also called Body or Body ID. Mobiles which dies and leave a corpse behind, they stop existing as Mobiles and instead leave a corpse as a Item object appears.
Table of Contents
Properties
Backpack
Mobile.BackpackItemGet the Item representing the backpack of a Mobile. Return null if it doesn't have one.
CanRename
Mobile.CanRenameBooleanDetermine if a mobile can be renamed. (Ex: pets, summons, etc )
Color
Mobile.ColorUInt16Color of the mobile.
Contains
Mobile.ContainsList[Item]Returns the list of items present in the Paperdoll (or equivalent) of the Mobile. Might not match the items found using via Layer.
Deleted
Mobile.DeletedBooleanDirection
Mobile.DirectionStringReturns the direction of the Mobile.
Fame
Mobile.FameInt32Fame has to be reverse engineered from the title so it is just ranges: 0: neutral - 3 is highest fame
Female
Mobile.FemaleBooleanThe Mobile is a female.
Flying
Mobile.FlyingBooleanThe mobile is Flying ( Gargoyle )
Graphics
Mobile.GraphicsUInt16Hits
Mobile.HitsInt32The current hit point of a Mobile. To be read as proportion over Mobile.HitsMax.
HitsMax
Mobile.HitsMaxInt32Maximum hitpoint of a Mobile.
Hue
Mobile.HueUInt16InParty
Mobile.InPartyBooleanTrue: if the Mobile is in your party. - False: otherwise.
IsGhost
Mobile.IsGhostBooleanIf is a Ghost Match any MobileID in the list: 402, 403, 607, 608, 694, 695, 970
IsHuman
Mobile.IsHumanBooleanCheck is the Mobile has a human body. Match any MobileID in the list: 183, 184, 185, 186, 400, 401, 402, 403, 605, 606, 607, 608, 666, 667, 694, 744, 745, 747, 748, 750, 751, 970, 695
ItemID
Mobile.ItemIDInt32Karma
Mobile.KarmaInt32Karma has to be reverse engineered from the title so it is just ranges: -5: most evil, 0: neutral, 5 most good
KarmaTitle
Mobile.KarmaTitleStringThis is the title string returned from the server
Mana
Mobile.ManaInt32The current mana of a Mobile. To be read as proportion over Mobile.ManaMax.
ManaMax
Mobile.ManaMaxInt32Maximum mana of a Mobile.
Map
Mobile.MapInt32Current map or facet.
MobileID
Mobile.MobileIDInt32Represents the type of Mobile, usually unique for the Mobile image. ( Alias: Mobile.Body )
Mount
Mobile.MountItemReturns the Item assigned to the "Mount" Layer.
Name
Mobile.NameStringName of the Mobile.
Notoriety
Mobile.NotorietyInt32Get the notoriety of the Mobile. Notorieties: 1: blue, innocent 2: green, friend 3: gray, neutral 4: gray, criminal 5: orange, enemy 6: red, hostile 6: yellow, invulnerable
Paralized
Mobile.ParalizedBooleanThe mobile is Paralyzed.
Poisoned
Mobile.PoisonedBooleanThe mobile is Poisoned.
Position
Mobile.PositionPoint3DProperties
Mobile.PropertiesList[Property]Get all properties of a Mobile as list of lines of the tooltip.
PropsUpdated
Mobile.PropsUpdatedBooleanTrue: Mobile.Properties are updated - False: otherwise.
Quiver
Mobile.QuiverItemGet the Item representing the quiver of a Mobile. Return null if it doesn't have one.
Serial
Mobile.SerialInt32Stam
Mobile.StamInt32The current stamina of a Mobile. To be read as proportion over Mobile.StamMax.
StamMax
Mobile.StamMaxInt32Maximum stamina of a Mobile.
Visible
Mobile.VisibleBooleanTrue: The Mobile is visible - False: The mobile is hidden.
WarMode
Mobile.WarModeBooleanMobile is in War mode.
YellowHits
Mobile.YellowHitsBooleanThe mobile healthbar is not blue, but yellow.
Methods
DistanceTo
Mobile.DistanceTo(other_mobile)Returns the UO distance between the current Mobile and another one.
other_mobile(Mobile): The other mobile.
Int32Equals
Mobile.Equals(obj)obj(Object)
BooleanGetHashCode
Mobile.GetHashCode()Int32GetItemOnLayer
Mobile.GetItemOnLayer(layer)Returns the Item associated with a Mobile Layer.
layer(String): Layers: Layername RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Waist InnerTorso Bracelet MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs
ItemUpdateKarma
Mobile.UpdateKarma()Costly! Updates the Fame and Karma of the Mobile, but it can take as long as 1 second to complete.
Boolean