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