Skip to content

World

Type: Bot

A list of monsters in the cell.

Type: Monster[]

A list of valid pads for the current cell.

Type: string[]

A list of all cells in the map.

Type: string[]

The list of all items in the world.

Type: ItemData[]

A list of monsters in the map.

Type: MonsterData[]

The name of the map.

Type: string

A list of all player names in the map.

Type: string[]

A list of all players in the map.

Type: Map<string, Avatar> | null

The current room area id.

Type: number

The room number of the map.

Type: number

Gets a item in the world.

ParameterTypeDescription
itemIdnumberThe ID of the item.

Returns: Promise<void>

Goto the specified player.

ParameterTypeDescription
playerNamestringThe name of the player to goto.

Returns: void

Whether the game action has cooled down.

ParameterTypeDescription
gameActionGameActionThe game action to check.

Returns: boolean

Whether the map is still being loaded.

Returns: boolean

Whether a monster is available.

ParameterTypeDescription
monsterResolvablestringThe name of the monster or in monMapID format.

Returns: boolean

Whether a player is in a given cell.

ParameterTypeDescription
namestringThe player name to check.
cellstringThe cell to check.

Returns: boolean

Whether a player is in the map.

ParameterTypeDescription
namestringThe player name to check.

Returns: boolean

Joins a map.

ParameterTypeOptionalDefaultDescription
mapNamestringThe name of the map to join.
cellstring"Enter"The cell to jump to.
padstring"Spawn"The pad to jump to.

Returns: Promise<void>

Jump to the specified cell and pad of the current map.

ParameterTypeOptionalDefaultDescription
cellstringThe cell to jump to.
padstring"Spawn"The pad to jump to.
ignoreCheckbooleanfalseWhether to ignore the current cell check.

Returns: Promise<void>

Loads a particular swf of a map.

ParameterTypeDescription
mapSwfstringThe swf to load.

Returns: void

Reloads the map.

Returns: void

Sets the player’s spawnpoint.

ParameterTypeOptionalDefaultDescription
cellstring?
padstring?

Returns: void