Cheat Commands

From rs2b2t HQ
Jump to navigationJump to search

Cheat Commands — the :: commands this server defines, and which of them run where.

Two different things are both spelled with a leading ::, and they behave nothing alike.

  • Staff commands (::name) run on the live world, for accounts with a

staff level of 2 or 3. They are listed below so the rules are visible, not because most people can use them — rs2b2t runs with no staff accounts.

  • Debug commands (::~name, note the tilde) do not work on the live

world at all. The engine refuses them whenever the world is running with production set, which w1 always is, so no account reaches them regardless of staff level. They are documented for anyone running the engine themselves from a local checkout.

Most debug commands carry no description in the source. Where a cell is blank, the pack documents nothing and this page declines to guess.

Staff commands

These run on the live world. The level is the staffModLevel the account needs.

Level 2

Command Usage Description
::ban ::ban <username> <minutes> Ban an account for a number of minutes.
::getcoord Print the coordinate you are standing on.
::kick ::kick <username> Disconnect an account.
::mute ::mute <username> <minutes> Mute an account for a number of minutes.
::setvis ::setvis <level> Set who can see you: 0 everyone, 1 friends, 2 nobody.
::tele ::tele x,xx,xx[,xx,xx] Teleport to a coordinate.
::teleto ::teleto <username> Teleport yourself to another player.

Level 3

Command Usage Description
::advancestat ::advancestat <skill> <level> Raise a skill to a level, with the level-up message.
::broadcast Send a message to everyone online.
::closeoverlay Close the overlay interface.
::getvar ::getvar <variable> Print one of your variables.
::getvarother ::getvarother <username> <variable> Print another player's variable.
::give ::give <item> (amount) Add an item to your inventory.
::givecrap Fill your inventory with random items.
::givemany ::givemany <item> Add up to 1,000 of an item.
::giveother ::giveother <username> <item> (amount) Add an item to another player's inventory.
::locadd Spawn an object where you stand.
::minme Put every skill back to its starting level.
::npcadd Spawn an NPC where you stand.
::openmain Open an interface.
::openoverlay Open an overlay interface.
::reboot Restart the world now.
::serverdrop Disconnect yourself, to test reconnecting.
::setstat ::setstat <skill> <level> Set a skill to a level.
::setvar ::setvar <variable> <value> Set one of your variables.
::setvarother ::setvarother <username> <name> <value> Set another player's variable.
::slowreboot ::slowreboot <seconds> Restart the world after a countdown.
::snapshot Write a heap snapshot on the server.
::teleother ::teleother <username> Teleport another player to you.

Debug commands

None of these work on the live world. They are for a local engine checkout only.

Bank

Command Arguments Description
::~bank Open the bank from where you stand.
::~bank_f2p Refill the bank with free-to-play gear.
::~bank_preset Refill the bank with coins and a standard test kit.
::~clearbank Empty the bank.
::~fletchbank Refill the bank with Fletching supplies.
::~fmbank Refill the bank with logs and tinderboxes for Firemaking.
::~foodbank Refill the bank with cooked food.
::~magicbank Refill the bank with runes.
::~wptest Refill the bank with weapon poison and daggers.

Fishing Trawler

Command Arguments Description
::~debug_murph Print Murphy's state at the trawler lobby.
::~givetrawler Take swamp paste and a bailing bucket.
::~trawler_loot <rolls> Set the trawler catch to a number of rolls.

Help

Command Arguments Description
::~help List the command menus.

Interactions

Command Arguments Description
::~itele Teleport to the interaction test area.
::~itest <test> Run an interaction test by number.

Interfaces

Command Arguments Description
::~com_vars Print your combat bonus variables.

Inventory

Command Arguments Description
::~clearinv <inv> Empty an inventory. Defaults to your own.

Items

Command Arguments Description
::~bankitem <obj> <count> Add items to your bank.
::~item <obj> <count> Add items to your inventory.
::~spawnloc <loc> Spawn an object beside you for 100 ticks.

Macro events

Command Arguments Description
::~lost_pickaxe Trigger the lost pickaxe event.
::~macro_event <event> Trigger a random event by number.
::~random Clear the pending random event.
::~random_event Trigger a random event.

Magic

Command Arguments Description
::~giverunes Add 1,000 of every rune.

Miscellaneous

Command Arguments Description
::~1hp Drop your Hitpoints to 1.
::~1pray Drop your Prayer to 1.
::~addxp <stat> <amount> Add experience to one skill.
::~cat Print your kitten's hunger, attention and growth.
::~damage Damage yourself by 100.
::~death Kill yourself.
::~energy Refill run energy and turn running on.
::~godbab Boost your combat stats, the way a kebab does.
::~hit <amount> Damage yourself by an amount.
::~pcs Print your combat stats.
::~poison <severity> Poison yourself at the given severity.
::~wildy Print the Wilderness level where you stand.

Music

Command Arguments Description
::~lockalltracks Lock every music track.
::~unlockalltracks Unlock every music track.

NPCs

Command Arguments Description
::~npc_change_dynamic Test changing a spawned NPC.
::~npc_change_static Test changing a map NPC.
::~npc_del_change Test deleting a changed spawned NPC.
::~npc_del_change_static Test deleting a changed map NPC.
::~npc_los1 Test NPC line of sight past an obstacle.
::~npc_spawn_ci Test an NPC spawn trigger firing at once.
::~npc_spawn_player Test an NPC spawn trigger firing a tick late.

PvP

Command Arguments Description
::~checkskull Print your skull timer.
::~clearskull Remove your skull.
::~singles Print who you are fighting and who is fighting you.
::~skull <duration> Give yourself a skull for a number of ticks.

Quests

Command Arguments Description
::~completequests Complete every quest.
::~cq Complete every quest.
::~ikd Rewind Temple of Ikov progress by 10.
::~iku Advance Temple of Ikov progress by 10.
::~quest Open the quest debug menu.
::~quests Open the quest debug menu.
::~resetquests Reset every quest.
::~rq Reset every quest.
::~spkm Spawn the King's Messenger for Regicide.
::~tew Complete Elemental Workshop.

Resets

Command Arguments Description
::~reset Wipe the account back to a fresh character.

Search

Command Arguments Description
::~loc_findallzone1 Test finding every object in a zone.
::~npc_find1 Test finding one NPC.
::~npc_hunt1 Test NPC hunt targeting.
::~obj_findallzone1 Test finding every ground item in a zone.

Server stats

Command Arguments Description
::~lag Load a whole map square, to measure lag.

Stats

Command Arguments Description
::~maxme Set every skill to maximum experience.

Teleports

Command Arguments Description
::~alkharid Teleport to Al Kharid.
::~ardy Teleport to Ardougne.
::~brimhaven Teleport to Brimhaven.
::~draynor Teleport to Draynor.
::~duel Teleport to the Duel Arena.
::~east <distance> Teleport east a number of tiles.
::~elvarg Teleport to Elvarg's lair under Crandor.
::~entrana Teleport to Entrana.
::~falador Teleport to Falador.
::~gamesroom Teleport to the Burthorpe Games Room.
::~gb Teleport to the Gnome Ball field.
::~giants Teleport to the Hill Giants under Edgeville.
::~greenland Teleport to the empty test map square.
::~home Teleport to Lumbridge.
::~kbd Teleport to the King Black Dragon lair.
::~ma Teleport to the Mage Arena.
::~mortton Teleport to the Mort'ton temple altar.
::~north <distance> Teleport north a number of tiles.
::~portsarim Teleport to Port Sarim.
::~pvp Teleport into the Wilderness.
::~rimmington Teleport to Rimmington.
::~seers Teleport to Seers Village.
::~south <distance> Teleport south a number of tiles.
::~trawler Teleport to the Fishing Trawler.
::~varrock Teleport to Varrock.
::~west <distance> Teleport west a number of tiles.

Treasure Trails

Command Arguments Description
::~coordclues Take a set of coordinate clues.
::~giveclues Pick a clue difficulty and take the scrolls.
::~tc Print your sextant reading.
::~testpuz Load a puzzle box to solve.

Zones

Command Arguments Description
::~add_locs Test adding several objects at once.
::~drop_feathers Test picking up a pile of feathers.
::~drop_items Test dropping many ground items at once.
::~loc_add_del Test adding an object and deleting it.
::~loc_add_dynamic Test adding a spawned object.
::~loc_add_static Test adding an object over a map one.
::~loc_change_back Test changing an object and changing it back.
::~loc_change_dynamic Test changing a spawned object.
::~loc_change_error Test an invalid object change.
::~loc_change_inactive Test changing an object that is already gone.
::~loc_del_change Test deleting a changed object.
::~loc_del_event Test the delete event on an object.

Engine (no tilde)

Command Arguments Description
::fly Toggle noclip movement.
::naive Toggle straight-line pathing.
::random Make a random event fire at the next chance.
::rebuild Rebuild the scripts.
::reload Reload the world's packed data.
::speed Set the world tick rate, in milliseconds.