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 apparence, 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.
TODO: Mobile Constructors
Properties
Mobile.BackpackItem
Mobile.BackpackItem
Get the Item representing the backpack of a Mobile. Return null if it doesn't have one.
Mobile.CanRenameBoolean
Mobile.CanRenameBoolean
Determine if a mobile can be renamed. (Ex: pets, summons, etc )
Mobile.ColorUInt16
Mobile.ColorUInt16
Color of the mobile.
Mobile.ContainsList[Item]
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.
Mobile.DeletedBoolean
Mobile.DeletedBoolean
Mobile.DirectionString
Mobile.DirectionString
Returns the direction of the Mobile.
Mobile.FameInt32
Mobile.FameInt32
Fame has to be reverse engineered from the title so it is just ranges: 0: neutaral - 3 is highest fame
Mobile.FemaleBoolean
Mobile.FemaleBoolean
The Mobile is a female.
Mobile.FlyingBoolean
Mobile.FlyingBoolean
The mobile is Flying ( Gragoyle )
Mobile.GraphicsUInt16
Mobile.GraphicsUInt16
Mobile.HitsInt32
Mobile.HitsInt32
The current hit point of a Mobile. To be read as propotion over Mobile.HitsMax.
Mobile.HitsMaxInt32
Mobile.HitsMaxInt32
Maximum hitpoint of a Mobile.
Mobile.HueUInt16
Mobile.HueUInt16
Mobile.InPartyBoolean
Mobile.InPartyBoolean
True: if the Mobile is in your party. - False: otherwise.
Mobile.IsGhostBoolean
Mobile.IsGhostBoolean
If is a Ghost Match any MobileID in the list: 402, 403, 607, 608, 694, 695, 970
Mobile.IsHumanBoolean
Mobile.IsHumanBoolean
Check 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
Mobile.ItemIDInt32
Mobile.ItemIDInt32
Mobile.KarmaInt32
Mobile.KarmaInt32
Karma has to be reverse engineered from the title so it is just ranges: -5: most evil, 0: neutaral, 5 most good
Mobile.KarmaTitleString
Mobile.KarmaTitleString
This is the title string returned from the server
Mobile.ManaInt32
Mobile.ManaInt32
The current mana of a Mobile. To be read as propotion over Mobile.ManaMax.
Mobile.ManaMaxInt32
Mobile.ManaMaxInt32
Maximum mana of a Mobile.
Mobile.MapInt32
Mobile.MapInt32
Current map or facet.
Mobile.MobileIDInt32
Mobile.MobileIDInt32
Represents the type of Mobile, usually unique for the Mobile image. ( Alias: Mobile.Body )
Mobile.MountItem
Mobile.MountItem
Returns the Item assigned to the "Mount" Layer.
Mobile.NameString
Mobile.NameString
Name of the Mobile.
Mobile.NotorietyInt32
Mobile.NotorietyInt32
Get 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
Mobile.ParalizedBoolean
Mobile.ParalizedBoolean
The mobile is Paralized.
Mobile.PoisonedBoolean
Mobile.PoisonedBoolean
The mobile is Poisoned.
Mobile.PositionPoint3D
Mobile.PositionPoint3D
Mobile.PropertiesList[Property]
Mobile.PropertiesList[Property]
Get all properties of a Mobile as list of lines of the tooltip.
Mobile.PropsUpdatedBoolean
Mobile.PropsUpdatedBoolean
True: Mobile.Propertires are updated - False: otherwise.
Mobile.QuiverItem
Mobile.QuiverItem
Get the Item representing the quiver of a Mobile. Return null if it doesn't have one.
Mobile.SerialInt32
Mobile.SerialInt32
Mobile.StamInt32
Mobile.StamInt32
The current stamina of a Mobile. To be read as propotion over Mobile.StamMax.
Mobile.StamMaxInt32
Mobile.StamMaxInt32
Maximum stamina of a Mobile.
Mobile.VisibleBoolean
Mobile.VisibleBoolean
True: The Mobile is visible - Flase: The mobile is hidden.
Mobile.WarModeBoolean
Mobile.WarModeBoolean
Mobile is in War mode.
Mobile.YellowHitsBoolean
Mobile.YellowHitsBoolean
The mobile healthbar is not blue, but yellow.
Methods
Mobile.DistanceTo(other_mobile)
Mobile.DistanceTo(other_mobile)
Returns the UO distance between the current Mobile and another one.
Parameters
other_mobileMobile
The other mobile.
Return
Int32
Mobile.Equals(obj)
Mobile.Equals(obj)
Parameters
objObject UOEntity
Return
Boolean
Mobile.GetHashCode()
Mobile.GetHashCode()
Return
Int32
Mobile.GetItemOnLayer(layer)
Mobile.GetItemOnLayer(layer)
Returns the Item associated with a Mobile Layer.
Parameters
layerString
Layers: Layername RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Waist InnerTorso Bracelet MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs
Return
Item
Item for the layer. Return null if not found or Layer invalid.
Mobile.UpdateKarma()
Mobile.UpdateKarma()
Costly! Updates the Fame and Karma of the Mobile, but it can take as long as 1 second to complete.
Return
Boolean
True if successful, False if not server packet received