Mobile¶
Properties¶
Mobile.Backpack
ItemGet the Item representing the backpack of a Mobile. Return null if it doesn’t have one.Mobile.Body
Int32Represents the type of Mobile, usually unique for the Mobile image. ( Alias: Mobile.MobileID )Mobile.Color
Int32Color 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
BooleanMobile.Direction
StringReturns the direction of the Mobile.Mobile.Female
BooleanThe Mobile is a female.Mobile.Flying
BooleanThe mobile is Flying ( Gragoyle )Mobile.Hits
Int32The current hit point of a Mobile. To be read as propotion over Mobile.HitsMax.Mobile.HitsMax
Int32Maximum hitpoint of a Mobile.Mobile.Hue
Int32Mobile.InParty
BooleanTrue: if the Mobile is in your party. - False: otherwise.Mobile.IsGhost
BooleanIf is a Ghost
- Match any MobileID in the list:
402, 403, 607, 608, 694, 695, 970
Mobile.IsHuman
BooleanCheck 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
Int32The current mana of a Mobile. To be read as propotion over Mobile.ManaMax.Mobile.ManaMax
Int32Maximum mana of a Mobile.Mobile.Map
Int32Current map or facet.Mobile.MobileID
Int32Represents the type of Mobile, usually unique for the Mobile image. ( Alias: Mobile.Body )Mobile.Mount
ItemReturns the Item assigned to the “Mount” Layer.Mobile.Name
StringName of the Mobile.Mobile.Notoriety
Int32Get 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
BooleanThe mobile is Paralized.Mobile.Poisoned
BooleanThe mobile is Poisoned.Mobile.Position
Point3DMobile.Properties
List[Property]Get all properties of a Mobile as list of lines of the tooltip.Mobile.PropsUpdated
BooleanTrue: Mobile.Propertires are updated - False: otherwise.Mobile.Quiver
ItemGet the Item representing the quiver of a Mobile. Return null if it doesn’t have one.Mobile.Serial
Int32Mobile.Stam
Int32The current stamina of a Mobile. To be read as propotion over Mobile.StamMax.Mobile.StamMax
Int32Maximum stamina of a Mobile.Mobile.Visible
BooleanTrue: The Mobile is visible - Flase: The mobile is hidden.Mobile.WarMode
BooleanMobile is in War mode.Mobile.YellowHits
BooleanThe mobile healthbar is not blue, but yellow.
Methods¶
- Mobile.DistanceTo(other_mobile) → Int32¶
other_mobile:
MobileThe other mobile.
Returns the distance between the current Mobile and another one.
- layer:
StringLayers: 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.