MyPlayer

open class MyPlayer

Static convenience methods for the local player.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
An account type
Link copied to clipboard
The various states of teleblock 0 = not currently active 0 - 100 = not active, but immune 100 - 600 = currently active

Functions

Link copied to clipboard
open fun get(): Optional<Player>
Gets the Player that corresponds to the local player
Link copied to clipboard
Gets the account type of the local player
Link copied to clipboard
open fun getAnimation(): Int
Gets the animation of local player
Link copied to clipboard
open fun getCombatLevel(): Int
Gets the local player's combat level
Link copied to clipboard
open fun getCurrentHealth(): Int
Gets the current health of the local player
Link copied to clipboard
Gets the local player's health percent out of 100
Link copied to clipboard
Gets the player's destination.
Link copied to clipboard
open fun getMaxHealth(): Int
Gets the max health of the local player
Link copied to clipboard
Gets the remaining membership days of the local player
Link copied to clipboard
open fun getPoisonDamage(): Int
Gets the amount of poison damage the current player is taking (how much damage the player will take next poison hit)
Link copied to clipboard
Gets the position of the local player
Link copied to clipboard
open fun getQuestPoints(): Int
Gets the local player's quest points
Link copied to clipboard
open fun getRunEnergy(): Int
Gets the current run energy of the player character.
Link copied to clipboard
Gets the current teleblock state of the player
Link copied to clipboard
open fun getTile(): WorldTile
Gets the tile of the local player
Link copied to clipboard
open fun getTotalLevel(): Int
Gets the total level of the local player
Link copied to clipboard
open fun getUsername(): String
Gets the username of the local player
Link copied to clipboard
open fun getVenomDamage(): Int
Gets the amount of venom damage the current player is taking (how much damage the player will take next venom hit)
Link copied to clipboard
open fun getWeight(): Int
Gets the current weight of the player.
Link copied to clipboard
open fun isAnimating(): Boolean
Checks if the local player is animating
Link copied to clipboard
open fun isDiseased(): Boolean
Checks if the local player is diseased
Link copied to clipboard
Checks if the local player's health bar is visible
Link copied to clipboard
open fun isMember(): Boolean
Checks if the current player is a member
Link copied to clipboard
open fun isMoving(): Boolean
Checks if the local player is moving
Link copied to clipboard
open fun isPoisoned(): Boolean
Checks if the local player is poisoned
Link copied to clipboard
Checks if the local player is poison immune
Link copied to clipboard
Checks if a stamina potion is currently active
Link copied to clipboard
open fun isVenomed(): Boolean
Checks if the local player is venomed