VoidVOID
DocsPlayers

Players

Players are the characters controlled by people, they are used to explore the world, interact with other entities, and hold information about what they have collected and accomplished so far.

Finding players

Most code will already have access to the player in question, in the situations where one player needs to find or reference another player they can be searched for in the worlds list of Players.

You can search for a player by name, index, Tile or Zone:

val player = Players.indexed(42) // Get player at an index
val player = Players.find("Cow31337Killer") // Get a specific player by name
val playersUnder = Players.at(Tile(3200, 3200)) // Get all players under a tile
val playersNearby = Players.at(Zone(402, 403)) // Get all players in 8x8 area

Adding players

You can subscribe to new players being spawned with:

playerSpawn {
    message("Welcome to Void.")
}

Removing players

Again for most situations removing players is already handled, player.logout() is enough for other scenarios.

You can subscribe to removed players with:

playerDespawn {
    cancelQuickPrayers()
}

Player options

Scripts can subscribe to player options with:

playerOperate("Req Assist") { }

Tip

See interactions for more info including the difference between operate and approach interactions.

Player save data

DataDescription
Account nameThe username used to log into the game.
Password hashEncrypted value used to verify a correct password.
IndexThe number between 1-2048 a particular player is in the current game world.
TileThe current position of the player represented as an x, y, level coordinate.
InventoryVarious stores of Items from equipment to shops.
VariablesProgress and tracking data for all types of content.
ExperienceProgress gained in skilling towards a Level.
LevelsBoundaries of skilling experience which unlock new content.
FriendsList of befriended players that can be messaged directly.
IgnoresList of players who's messages will be hidden.
ClientThe network connection between the persons Game Client and the game server.
ViewportA store of the entities in the visible surrounding area.
BodyThe players appearance with/without equipment.
ModeThe players current style of movement.
VisualsThe players general appearance.
InstructionsInstructions send by the Client or Bot controller.
OptionsPossible interactions other entities can have with this player.
InterfacesAll the Interfaces the player's Client currently has opened.
CollisionStrategy for how the player can move about the game world.
ActionQueueList of Queues currently in progress for the player.
Soft TimerTimers that are always counting down for the player.
TimersPause-able Timers that are counting down for the player.
StepsList of tiles the player plans on walking to in the future.