Class: Player

Player

new Player()

All players have these properties
Properties:
Name Type Description
hp number health points
max_hp number maximum health points
mp number mana points
max_mp number maximum mana points
xp number current experience points
name string player Name
angle number angle the player is looking at.
real_x number x position on map
real_y number y position on map
from_x number | undefined the last movement starting x position of the player
from_y number | undefined the last movement starting y position of the player
going_x number | undefined the last target x position of the player
going_y number | undefined the last target y position of the player
type string the type of the Entity, for a player this is always "character"
level number player level
owner string a number that identifies the account that the player belongs to.
range number range for basic attack
resistance number damage resistance
armor number character armor
attack number roughly estimated amount of damage
afk boolean is the player afk
moving boolean is player moving
afk boolean player is afk
rip boolean is the player dead
code number | undefined the code id the player is running (0 or undefined means he isn't running code)
target string EntityId
ctype string In what class is the play e.g. "mage"
skin string Character skin
frequency number frequency in which the character attacks. A frequency of 1 means every second where as 0.5 means every 2 seconds.
speed number walking speed
id string player name
in string On which map the player is
slots CharacterSlots Contains all the items that the character is wearing
direction number Direction in which the character is looking (0:down,1:left,2:right;3:up)
Source:

Extends