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
Get the Item representing the backpack of a Mobile. Return null if it doesn't have one.
Mobile.CanRenameBoolean
Determine if a mobile can be renamed. (Ex: pets, summons, etc )
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.DirectionString
Returns the direction of the Mobile.
Mobile.FameInt32
Fame has to be reverse engineered from the title so it is just ranges:
0: neutaral - 3 is highest fame
Mobile.FemaleBoolean
The Mobile is a female.
Mobile.FlyingBoolean
The mobile is Flying ( Gragoyle )
Mobile.HitsInt32
The current hit point of a Mobile. To be read as propotion over Mobile.HitsMax.
Mobile.HitsMaxInt32
Maximum hitpoint of a Mobile.
Mobile.InPartyBoolean
True: if the Mobile is in your party. - False: otherwise.
Mobile.IsGhostBoolean
If is a Ghost
Match any MobileID in the list:
402, 403, 607, 608, 694, 695, 970
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.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
This is the title string returned from the server
Mobile.ManaInt32
The current mana of a Mobile. To be read as propotion over Mobile.ManaMax.
Mobile.ManaMaxInt32
Maximum mana of a Mobile.
Mobile.MapInt32
Current map or facet.
Mobile.MobileIDInt32
Represents the type of Mobile, usually unique for the Mobile image. ( Alias: Mobile.Body )
Mobile.MountItem
Returns the Item assigned to the "Mount" Layer.
Mobile.NameString
Name of the Mobile.
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
The mobile is Paralized.
Mobile.PoisonedBoolean
The mobile is Poisoned.
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
Get the Item representing the quiver of a Mobile. Return null if it doesn't have one.
Mobile.StamInt32
The current stamina of a Mobile. To be read as propotion over Mobile.StamMax.
Mobile.StamMaxInt32
Maximum stamina of a Mobile.
Mobile.VisibleBoolean
True: The Mobile is visible - Flase: The mobile is hidden.
Mobile.WarModeBoolean
Mobile is in War mode.
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_mobileMobileThe other mobile.
Mobile.Equals(obj)
Parameters
objObject
UOEntity
Mobile.GetItemOnLayer(layer)
Mobile.GetItemOnLayer(layer)
Returns the Item associated with a Mobile Layer.
Parameters
layerStringLayers:
Layername
RightHand
LeftHand
Shoes
Pants
Shirt
Head
Gloves
Ring
Neck
Waist
InnerTorso
Bracelet
MiddleTorso
Earrings
Arms
Cloak
OuterTorso
OuterLegs
InnerLegs
Return
ItemItem for the layer. Return null if not found or Layer invalid.
Mobile.UpdateKarma()
Costly!
Updates the Fame and Karma of the Mobile, but it can take as long as 1 second to complete.
Return
BooleanTrue if successful, False if not server packet received