All functions related to the character.
Returns true if the character is alive, otherwise returns false.
Example:
if (character.isAlive) {
// The character is alive.
}
Returns true if the character is a tombstone, otherwise returns false.
Example:
if (character.isTombstone) {
// The character is a tombstone.
}
Returns true if the character is a ghost, otherwise returns false.
Example:
if (character.isPhantom) {
// The character is a phantom.
}
Returns the name of the character.
Example:
character.name
Returns the level of the character.
Example:
character.level
Returns true if the character is a male, false if it is a female.
Example:
character.sex
Returns the life points of the character.
Example:
character.lifePoints
Returns the maximum life points of the character.
Example:
character.maxLifePoints
Returns the percentage of life of the character.
Example:
character.lifePointsP
Returns the character’s experience.
Example:
character.experience
Returns the character’s energy points.
Example:
character.energyPoints
Returns the maximum energy points of the character.
Example:
character.maxEnergyPoints
Returns the energy percentage of the character.
Example:
character.energyPoints
Returns the number of kamas the character has.
Example:
character.kamas
Allows the character to sit down.
Example:
character.sit()
Free the soul of the character.
Returns true if the character has successfully free his soul, otherwise returns false.
Example:
if (character.isTombstone) {
if (character.freeSoul()) { // If the character is a grave, then free his soul.
// The soul has been released.
} else {
// The soul has not been released.
}
}