Skip to content

Misc commands

Beeps the specified number of times.

ParameterTypeDescription
timesnumber?How many times to beep.

Buffs by casting the first 3 skills, or the provided skill set.

ParameterTypeOptionalDefaultDescription
skillListnumber[]...The optional skill set to use for buffing. Set to null to use the default skill set (1, 2, 3).
waitbooleanfalseWhether to wait for a skill to be ready before going to the next one.

Buys the specified quantity of Scroll of Life Steal.

ParameterTypeDescription
qtynumberThe quantity to buy.
ParameterTypeDescription
qtynumber

Closes the window.

Delays command execution for a specified amount of time.

ParameterTypeDescription
msnumberThe delay in milliseconds.

Disables the anti-counter attack setting.

Disables Auto Relogin.

Disables the “Disable collisions” setting.

Enables the “Disable death ads” setting.

Disables the “Enemy magnet” setting.

Disables the “Disable FX” setting.

Disables the “Hide players” setting.

Disables the “Infinite range” setting.

Disables the “Lag killer” setting.

Disables the “Provoke cell” setting.

Disables the “Skip cutscenes” setting.

Performs loop taunt based on one or more strategies. See looptaunt guide for more details.

ParameterTypeDescription
strategies[string, number, number, string?][]An array of strategies. Each strategy is an array of [target, playerIndex, maxPlayers, (msg)]. msg is optional if using Simple mode.

Does the Wheel of Doom spin (non-members).

ParameterTypeOptionalDefaultDescription
to_bankbooleanfalseWhether to put the reward in the bank.

Drinks consumable items.

ParameterTypeDescription
itemsstring | string[]The name(s) of the items.
equipAfterstring?The name of the item to equip after drinking consumables.

Enables the anti-counter attack setting.

Enables the “Disable collisions” setting.

Disables the “Disable death ads” setting.

Enables the “Enemy magnet” setting.

Enables the “Disable FX” setting.

Enables the “Hide players” setting.

Enables the “Infinite range” setting.

Enables the “Lag killer” setting.

Enables the “Provoke cell” setting.

Enables the “Skip cutscenes” setting.

Goes to a player’s house.

ParameterTypeDescription
playerstring?The name of the player.

Goes to a label in the script.

ParameterTypeDescription
labelstringThe name of the label.

Goes to a player.

ParameterTypeDescription
playerstringThe name of the player.

Defines a label in the script.

ParameterTypeDescription
labelstringThe name of the label.

Logs a message ingame.

ParameterTypeDescription
msgstringThe message to log.

Logs out of the game.

ParameterTypeDescription
namestring
cmdFactory(CommandClass: typeof Command) => typeof Command

Registers a packet handler.

ParameterTypeDescription
type"packetFromClient" | "packetFromServer" | "pext"”packetFromClient"
namestringThe name of the handler.
handler((packet: Record<string, unknown>) => void | Promise<void>) | ((packet: string) => void | Promise<void>)The handler function. For “pext”, the function receives a parsed object. For “packetFromClient” and “packetFromServer”, the function receives a raw string.

Registers a task (a.k.a background job) to be executed alongside commands. The task function is bound to an object containing the bot instance and the context instance.

ParameterTypeDescription
namestringThe name of the task.
taskFn() => Promise<void>The async function to run as the task.
cmd.register_task('walkToPoint', function () {
let intervalId = setInterval(() => {
if (!this.ctx.isRunning()) {
clearInterval(intervalId)
return
}
if (this.bot.world.name !== 'ultraspeaker') return
this.bot.player.walkTo(28, 235) // top left
}, 100)
})

Sets the auto register requirements flag for the Environment.

ParameterTypeDescription
valbooleanThe value to set.

Sets the auto register rewards flag for the Environment.

ParameterTypeDescription
valbooleanThe value to set.

Sets the delay between commands.

ParameterTypeDescription
delaynumberThe delay in milliseconds.

Sets the target FPS for the game.

ParameterTypeDescription
fpsnumberThe desired value.

Sets the client’s locally visible guild name.

ParameterTypeDescription
guildstringThe name of the guild.

Sets the client’s locally visible name.

ParameterTypeDescription
namestringThe name of the player.

Sets the rejectElse flag for the Environment.

ParameterTypeDescription
valbooleanThe value to set.

Sets the walk speed of the player.

ParameterTypeDescription
speednumberThe walk speed (0-100).

Stops the bot.

ParameterTypeDescription
namestring
ParameterTypeDescription
type"packetFromClient" | "packetFromServer" | "pext"
namestring

Unregisters a previously registered task.

ParameterTypeDescription
namestringThe name of the task to unregister.

Enables Auto Relogin with the current session’s credentials.

ParameterTypeDescription
serverstring?The server to log into.
cmd.use_autorelogin('Twig') // relogin to Twig server
cmd.use_autorelogin() // relogin to the fallback server OR the current server otherwise

Enables auto-zoning for astralshrine map.

Enables auto-zoning for darkcarnax map.

Enables auto-zoning for ledgermayne map.

Enables auto-zoning for moreskulls map.

Enables auto-zoning for queeniona map.

Enables auto-zoning for ultradage map.

Waits for a specific number of players to be in the map.

ParameterTypeOptionalDefaultDescription
countnumberThe number of players to wait for.
exactbooleanfalseWhether to wait for the exact number of players.