PyMobile
Class Description
Section titled “Class Description”Represents a Python-accessible mobile (NPC, creature, or player character).
Inherits entity and positional data from
Properties
Section titled “Properties”Type: ushort
Type: ushort
Type: sbyte
HitsDiff
Section titled “HitsDiff”Type: int
ManaDiff
Section titled “ManaDiff”Type: int
StamDiff
Section titled “StamDiff”Type: int
IsDead
Section titled “IsDead”Type: bool
IsPoisoned
Section titled “IsPoisoned”Type: bool
HitsMax
Section titled “HitsMax”Type: int
Type: int
StaminaMax
Section titled “StaminaMax”Type: int
Stamina
Section titled “Stamina”Type: int
ManaMax
Section titled “ManaMax”Type: int
Type: int
IsRenamable
Section titled “IsRenamable”Type: bool
IsHuman
Section titled “IsHuman”Type: bool
IsYellowHits
Section titled “IsYellowHits”Type: bool
Notoriety
Section titled “Notoriety”Type: Notoriety
InWarMode
Section titled “InWarMode”Type: bool
Backpack
Section titled “Backpack”Type: PyItem
Get the mobile’s Backpack item
Type: PyItem
Get the mobile’s Mount item (if mounted)
__class__
Section titled “__class__”Type: string
The Python-visible class name of this object.
Accessible in Python as
No enums found.
Methods
Section titled “Methods”NameAndProps
Section titled “NameAndProps”(wait, timeout)
Gets the mobile name and properties (tooltip text).
This returns the name and properties in a single string. You can split it by newline if you want to separate them.
Parameters:
| Name | Type | Optional | Description |
|---|---|---|---|
wait | bool | ✅ Yes | True or false to wait for name and props |
timeout | int | ✅ Yes | Timeout in seconds |
Return Type: string