Mobile
¶
Properties¶
Mobile.Backpack
Item
Get the Item representing the backpack of a Mobile. Return null if it doesn’t have one.Mobile.Body
Int32
Represents the type of Mobile, usually unique for the Mobile image. ( Alias: Mobile.MobileID )Mobile.Color
Int32
Color of the mobile.Mobile.Contains
List[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.Deleted
Boolean
Mobile.Direction
String
Returns the direction of the Mobile.Mobile.Female
Boolean
The Mobile is a female.Mobile.Flying
Boolean
The mobile is Flying ( Gragoyle )Mobile.Hits
Int32
The current hit point of a Mobile. To be read as propotion over Mobile.HitsMax.Mobile.HitsMax
Int32
Maximum hitpoint of a Mobile.Mobile.Hue
Int32
Mobile.InParty
Boolean
True: if the Mobile is in your party. - False: otherwise.Mobile.IsGhost
Boolean
If is a Ghost
- Match any MobileID in the list:
402, 403, 607, 608, 694, 695, 970
Mobile.IsHuman
Boolean
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.Mana
Int32
The current mana of a Mobile. To be read as propotion over Mobile.ManaMax.Mobile.ManaMax
Int32
Maximum mana of a Mobile.Mobile.Map
Int32
Current map or facet.Mobile.MobileID
Int32
Represents the type of Mobile, usually unique for the Mobile image. ( Alias: Mobile.Body )Mobile.Mount
Item
Returns the Item assigned to the “Mount” Layer.Mobile.Name
String
Name of the Mobile.Mobile.Notoriety
Int32
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.Paralized
Boolean
The mobile is Paralized.Mobile.Poisoned
Boolean
The mobile is Poisoned.Mobile.Position
Point3D
Mobile.Properties
List[Property]
Get all properties of a Mobile as list of lines of the tooltip.Mobile.PropsUpdated
Boolean
True: Mobile.Propertires are updated - False: otherwise.Mobile.Quiver
Item
Get the Item representing the quiver of a Mobile. Return null if it doesn’t have one.Mobile.Serial
Int32
Mobile.Stam
Int32
The current stamina of a Mobile. To be read as propotion over Mobile.StamMax.Mobile.StamMax
Int32
Maximum stamina of a Mobile.Mobile.Visible
Boolean
True: The Mobile is visible - Flase: The mobile is hidden.Mobile.WarMode
Boolean
Mobile is in War mode.Mobile.YellowHits
Boolean
The mobile healthbar is not blue, but yellow.
Methods¶
- Mobile.DistanceTo(other_mobile) → Int32¶
other_mobile:
Mobile
The other mobile.
Returns the distance between the current Mobile and another one.
- layer:
String
Layers: Layername RightHand LeftHand Shoes Pants Shirt Head Gloves Ring Neck Waist InnerTorso Bracelet MiddleTorso Earrings Arms Cloak OuterTorso OuterLegs InnerLegs
- layer:
Returns the Item associated with a Mobile Layer.