Skip to content

Bot

The army API class instance.

Type: Army

The Auth API class instance.

Type: Auth

The Bank API class instance.

Type: Bank

The Combat API class instance.

Type: Combat

The Drops API class instance.

Type: Drops

The Environment API class instance.

Type: Environment

The Flash API class instance.

Type: Flash

The House API class instance.

Type: House

The Inventory API class instance.

Type: Inventory

The Packets API class instance.

Type: Packets

The local Player API class instance.

Type: Player

The Quests API class instance.

Type: Quests

The Scheduler API class instance.

Type: Scheduler

The Settings API class instance.

Type: Settings

The Shops API class instance.

Type: Shops

The TempInventory API class instance.

Type: TempInventory

The World API class instance.

Type: World

Pauses execution for a specified amount of time.

ParameterTypeOptionalDefaultDescription
msnumberThe number of milliseconds to wait.
signalAbortSignal?An optional AbortSignal to abort the sleep.

Returns: Promise<void>

Pauses execution until a specified condition is met.

ParameterTypeOptionalDefaultDescription
condition(__namedParameters: { signal: AbortSignal; abort: any }) => booleanA function that returns a boolean indicating whether the condition is met. It receives an object with an AbortSignal and an abort function.
optionsWaitUntilOptions | null{}Optional settings for the waitUntil function.

Returns: Promise<Result<never, string> | Result<undefined, never>>

Gets the singleton instance of the Bot class.

Returns: Bot

This event is emitted when the player goes AFK.

This event is emitted when the player logs in.

This event is emitted when the player logs out.

This event is emitted when the map has changed.

ParameterTypeDescription
mapNamestringThe name of the new map.

This event is emitted when a monster has died.

ParameterTypeDescription
monMapIdnumberThe monster map id.

This event is emitted when a monster has respawned.

ParameterTypeDescription
monsterMonsterThe monster that has respawned.
ParameterTypeDescription
packetstringThe packet dispatched from the client.
ParameterTypeDescription
packetstringThe packet received from the server.

OnExtensionResponse event.

ParameterTypeDescription
packetRecord<string, unknown>

This event is emitted when a player dies.

ParameterTypeDescription
playerNamestringThe name of the player who died.

This event is emitted when a player joins the room.

ParameterTypeDescription
playerNamestringThe name of the player.

This event is emitted when a player leaves the room.

ParameterTypeDescription
playerNamestringThe name of the player.