Cheat Commands¶
Overview¶
Client API development servers provide access to a variety of cheat commands.
These allow developers to set up their in-game character for plugin testing purposes.
Info
These cheat commands are not available in the Live game environment. Don't rely on their output to support plugin logic, unless you are developing a plugin for use in the development environment.
Commands must be entered into the client console window, which can be opened by pressing the follow key combinations:
| Platform | Key Combination |
|---|---|
| Windows | Alt+` |
| Linux | Alt+` |
| Mac OSX | Option+` |
Warning
Cheat commands are logged on the server. Any account found to be abusing these commands, for any reason, may be subject to a temporary or permanent account ban.
Command List¶
Info
All cheat commands begin with the ! prefix.
| Command | Example | Description |
|---|---|---|
tele |
!tele 0,50,50,32,32 |
Teleports the player character. |
getcoord |
!getcoord |
Returns the current coordinate of the player character. |
give |
!give logs |
Adds the named ObjType to the player character's backpack. |
objadd |
!objadd logs |
Adds the named ObjType to the ground at the feet of the player character. |
listinv |
!listinv bank |
Prints the contents of the inventory to the console. |
listlocs |
!listlocs 32 |
Prints a list of nearby locs to the console. |
listnpcs |
!listnpcs 32 |
Prints a list of nearby NPCs to the console. |
listobjs |
!listobjs 32 logs |
Prints a list of nearby Objs to the console, optionally filtering for a specific ObjType. |
skillsetlevel |
!skillsetlevel attack 99 |
Sets the named SkillType to the given level. |
skilladdlevel |
!skilladdlevel magic 3 |
Add the given level count to the named SkillType. |
skillsetxp |
!skillsetxp herblore 104273167 |
Sets the named SkillType to the given XP value. |
skilladdxp |
!skilladdxp dungeoneering 1000 |
Add the given XP value to the named SkillType. |
getvar |
!getvar combatv2_armour_rating |
Returns the value of the named VarType. |
setvar |
!setvar barrows_killed_dharok 1 |
Set the value of the named VarType to the given value. |
getvarc |
!getvarc tooltip_time |
Returns the value of the named VarClient variable. |
setvarc |
!setvarc castlewars_red_kills 100 |
Set the value of the named VarClient variable to the given value. |
resetsave |
!resetsave |
Flags the player account to be reset on the next relog. |
unresetsave |
!unresetsave |
Unflags the player account to be reset on the next relog. |
godmode |
!godmode |
Toggles player combat invulnerability. |
maxhp |
!maxhp |
Toggles player health to constantly renew to max. |
hitall |
!hitall |
Applies 5000 damage to all NPCs within 50 tiles of the player character. |
allinone |
!allinone |
Completes all quests, tasks, and more. |
bank |
!bank |
Directly opens the player characters's bank. |
clearworn |
!clearworn |
Destroys all objects in the player character's worn inventory. |
clearinv |
!clearinv |
Destroys all objects in the player characcter's inv inventory. |
coordsave |
!coordsave |
Stores the player character's current coordinate. |
coordtele |
!coordtele |
Teleports the player character to the coordinate stored by the previous coordsave call. |
setgroupironman |
!setgroupironman 1 |
Sets the group-ironman game status of the player character. |
sethardcore |
!sethardcore 1 |
Sets the hardcore game status of the player character. |
setironman |
!setironman 1 |
Sets the ironman btw game status of the player character. |
archcompletetutorial |
!archcompletetutorial |
Completes the Archaeology tutorial. |
archgivemats |
!archgivemats 500 bank |
Adds a given count of all Archaeology materials to the given inventory. |
inventgivemats |
!inventgivemats |
Supplies the player character with the maximum storage count of every Invention material. |
inventwipemats |
!inventwipemats |
Clears all Invention materials stored by the player character. |
inventmachinerun |
!inventmachinerun |
Run Invention machines for 1 simulated hour. |
inventsetperks |
!inventsetperks 0 7 1 44 2 1 |
Assigns Invention perks and ranks to the gizmo slot of an object in the player character's inv inventory. |
tlihide |
!tlihide |
Hides the game interface. |
tlishow |
!tlishow |
Unhides the game interface. |
pouchadd |
!pouchadd 44 100000 1 |
Adds the given count of the given currency type to the player character's currency pouch. |
pouchdel |
!pouchdel 9 12345 |
Removes the given count of the given currency type from the player character's currency pouch. |
pouchdeposit |
!pouchdeposit 11 inv |
Transfers all of the given currency type from the given inventory to the player character's currency point. |
pouchwithdraw |
!pouchwithdraw 11 |
Transfers as much of the given currency type that can fit from the player character's currency pouch to the player character's INV inventory. |
pouchspace |
!pouchspace 44 |
Returns the available space for the given currency type in the player character's currency pouch. |
pouchtotal |
!pouchtotal 44 |
Returns the current total of the given currency type in the player character's currency pouch. |
testpouchadd |
!testpouchadd 44 100000 |
Tests if the exact given count of the given currency type can fit in the player character's currency pouch, adding that amount if the test is successful. |
testpouchdel |
!testpouchdel 9 12345 |
Tests if the exact given count of the given currency type can be removed from the player character's currency pouch, removing that amount if the test is successful. |
Config names used in cheat commands are case-insensitive, so all of these will work:
tele¶
| Syntax | Description |
|---|---|
!tele <coord> |
Teleports the player charater to the given coordinate.Can be a full or shorthand coordinate. |
!tele <named_teleport> |
Teleports the player character to the named teleport destination. |
Teleports the player character to a given coordinate or named location.
Teleport to the bank at the top of Lumbridge Castle with either:
Mapsquare shorthard coordinates are also valid. Teleport to the centre of mapsquare 50,50 with either:
Teleport to the Grand Exchange in Varrock with a named teleport destination:
getcoord¶
| Syntax | Description |
|---|---|
!getcoord |
Returns the current coordinate of the player character. |
Returns the current coordinate of the player character.
Useful to quickly discover tile positions for stationary NPCs, etc.
While standing at the Lumbridge Market:
Info
If the player is standing in an instance, which is built from tiles elsewhere in the game world, this command will return:
- The coordinate within the instance, and
- The source coordinate for the tile data used at that coordinate
give¶
| Syntax | Description |
|---|---|
!give <obj> |
Adds one of the given ObjType to the player character's backpack (config.Inv.INV). |
!give <obj> <inv> |
Adds one of the given ObjType to the player character's named InvType. |
!give <obj> <count> |
Adds count of the given ObjType to the player character's backpack (config.Inv.INV). |
!give <obj> <count> <inv> |
Adds count of the given ObjType to the player character's named InvType. |
Adds the named item(s) to a player character's inventory. Stops when the inventory is full.
The name of the item matches the ObjType and InvType config names, such as:
objadd¶
| Syntax | Description |
|---|---|
!objadd <obj> |
Adds one of the given ObjType to the ground at the current coordinate of the player character. |
!objadd <obj> <count> |
Adds count of the given ObjType to the ground at the current coordinate of the player character. |
Adds the named item(s) on the ground coordinate at the feet of the player character.
Warning
Try not to litter partyhats everywhere.
The name of the item matches the ObjType config name, such as:
listinv¶
| Syntax | Description |
|---|---|
!listinv <inv> |
Prints the contents of the player character's named InvType to the client console.Avoids having to wait for the inventory to transmit to the client. |
Prints out the contents of an inventory to the console. Will also print the values of any VarObj variables assigned to each entry in the inventory.
listlocs¶
| Syntax | Description |
|---|---|
!listlocs <radius> |
Prints a list of nearby locs to the console. |
Prints out a list of every LocEntity within radius tiles of the player character to the console.
The maximum value of radius is 32.
listnpcs¶
| Syntax | Description |
|---|---|
!listnpcs <radius> |
Prints a list of nearby NPCs to the console. |
Prints out a list of every NPCEntity within radius tiles of the player character to the console.
The maximum value of radius is 32.
listobjs¶
| Syntax | Description |
|---|---|
!listobjs <radius> <obj_filter> |
Prints a list of nearby Objs to the console, optionally filtering for a specific ObjType. |
Prints out a list of every ObjType within radius tiles of the player character to the console.
The maximum value of radius is 32.
Filter for a specific ObjType by sending its config name, or send null to return all objects.
skillsetlevel¶
| Syntax | Description |
|---|---|
!skillsetlevel <skill> <level> |
Sets the player character's level in SkillType to the given level number. |
Sets the level of the given SkillType to the given level number.
Warning
This cheat command will not trigger level-up checks on the server.
Combine commands to achieve this
skilladdlevel¶
| Syntax | Description |
|---|---|
!skilladdlevel <skill> <count> |
Add the given level count to the player character's level in SkillType. |
Adds levels to the given SkillType.
Info
This cheat command will trigger level-up checks on the server.
skillsetxp¶
| Syntax | Description |
|---|---|
!skillsetxp <skill> <xp> |
Sets the player character's XP total in SkillType to the given xp number. |
Sets the XP of the given SkillType to the given XP number.
Warning
This cheat command will not trigger level-up checks on the server.
Combine commands to achieve this
skilladdxp¶
| Syntax | Description |
|---|---|
!skilladdxp <skill> <count> |
Add the given XP count to the player character's level in SkillType. |
Adds XP to the given SkillType.
Info
This cheat command will trigger level-up checks on the server.
getvar¶
| Syntax | Description |
|---|---|
!getvar <name> |
Returns the value of the given name VarPlayer. |
Returns the value of the given VarType.
The variable type must be VarPlayer or a VarBit based on one.
setvar¶
| Syntax | Description |
|---|---|
!setvar <name> <value> |
Sets the value of the given name VarPlayer to value. |
Sets the value of the given VarType.
The variable type must be VarPlayer or a VarBit based on one.
Valid value types can be, depending the variable data type, Integer, Long or String.
getvarc¶
| Syntax | Description |
|---|---|
!getvarc <name> |
Returns the value of the given name VarClient. |
Returns the value of the given VarType.
setvarc¶
| Syntax | Description |
|---|---|
!setvarc <name> <value> |
Sets the value of the given name VarClient to value. |
Sets the value of the given VarType.
The variable type must be VarClient.
Valid value types can be, depending the variable data type, Integer, Long or String.
resetsave¶
| Syntax | Description |
|---|---|
!resetsave |
Flags the active player character's account for reset. |
Flags the player character's account to be reset when they next log out of the server.
This can be aborted by calling !unresetsave before logging out.
unresetsave¶
| Syntax | Description |
|---|---|
!unresetsave |
Aborts the active player character's pending account reset. |
Aborts any pending player character's account reset flag.
godmode¶
| Syntax | Description |
|---|---|
!godmode |
Toggles player combat invulnerability. |
Enables or disables combat invulnerability for the player character.
maxhp¶
| Syntax | Description |
|---|---|
!maxhp |
Toggles player health to constantly renew to max. |
Enables or disables whether the health of the player is continually set to its maximum value.
hitall¶
| Syntax | Description |
|---|---|
!hitall |
Applies 5000 damage to all NPCs within 50 tiles of the player character. |
All NPCs with 50 tiles of the player character are dealt 5000 damage.
allinone¶
| Syntax | Description |
|---|---|
!allinone |
Completes all quests, tasks, and more. |
Sets all necessary variables to flag quests, tasks, and so on, as having been completed, and sets all skills to their maximum level.
bank¶
| Syntax | Description |
|---|---|
!bank |
Directly opens the player characters's bank. |
Opens the bank interface, without the player having to interact with a bank chest or banker NPC.
clearworn¶
| Syntax | Description |
|---|---|
!clearworn |
Destroys all objects in the player character's worn inventory. |
Wipes the worn inventory of all items.
This is the inventory that stores all currently equipped items.
clearinv¶
| Syntax | Description |
|---|---|
!clearinv |
Destroys all objects in the player character's inv inventory. |
Wipes the inv inventory of all items.
This is the backpack inventory.
coordsave¶
| Syntax | Description |
|---|---|
!coordsave |
Stores the player character's current coordinate. |
Records the player character's current coordinate so it can be teleported to later using the coordtele cheat command.
coordtele¶
| Syntax | Description |
|---|---|
!coordtele |
Teleports the player character to the coordinate stored by the previous coordsave call. |
Resets the player character's current coordinate to the one stored after using the coordsave cheat command.
setgroupironman¶
| Syntax | Description |
|---|---|
!setgroupironman <state> |
Sets the group-ironman game status of the player character. |
Assigns the given state to the player character's group-ironman game status.
Valid values of state are:
- 0 = disabled
- 1 = enabled
sethardcore¶
| Syntax | Description |
|---|---|
!sethardcore <state> |
Sets the hardcore game status of the player character. |
Assigns the given state to the player character's hardcore game status.
Valid values of state are:
- 0 = disabled
- 1 = enabled
setironman¶
| Syntax | Description |
|---|---|
!setironman <state> |
Sets the ironman game status of the player character. |
Assigns the given state to the player character's ironman game status.
Valid values of state are:
- 0 = disabled
- 1 = enabled
archcompletetutorial¶
| Syntax | Description |
|---|---|
!archcompletetutorial |
Completes the Archaeology tutorial. |
Progresses all necessary variables to complete the Archaeology tutorial and provides the relevant items obtained during it.
archgivemats¶
| Syntax | Description |
|---|---|
!archgivemats <count> <inv> |
Adds a given count of all Archaeology materials to the given inventory. |
Adds count of every Archaeology material type to inv.
inventgivemats¶
| Syntax | Description |
|---|---|
!inventgivemats |
Supplies the player character with the maximum storage count of every Invention material. |
Sets the necessary variables to provide the player character with the maximum possible amount of all types of Invention material.
inventwipemats¶
| Syntax | Description |
|---|---|
!inventwipemats |
Clears all Invention materials stored by the player character. |
Sets the necessary variables to remove all types of Invention material from the player character.
inventmachinerun¶
| Syntax | Description |
|---|---|
!inventmachinerun |
Run Invention machines for 1 simulated hour. |
Causes constructed Invention machines to be progressed by 1 hour of in-game time.
inventsetperks¶
| Syntax | Description |
|---|---|
!inventsetperks <inventory_slot> <perk_id_1> <perk_rank_1> <perk_id__2> <perk_rank_2> <gizmo_slot> |
Assigns Invention perks and ranks to the gizmo slot of an object in the player character's inv inventory. |
Updates a valid augmentable object in the player character's inv inventory at the given inventory_slot number.
Valid gizmo_slot values are 1 and 2
Each gizmo can have two perks.
Valid perk_id_# values, and their valid perk_rank_# ranges, can be found in the Invention Perk IDs list.
tlihide¶
| Syntax | Description |
|---|---|
!tlihide |
Hides the game interface. |
Hides all top-level interface windows.Useful for taking screenshots.
tlishow¶
| Syntax | Description |
|---|---|
!tlishow |
Unhides the game interface. |
Unhides all top-level interface windows.
pouchadd¶
| Syntax | Description |
|---|---|
!pouchadd <currency_id> <count> <ignore_overflow> |
Adds the given count of the given currency type to the player character's currency pouch. |
Adds count of the given currency_id type to the player character's currency pouch.
Valid currency_id values can be found in the Currency IDs list.
Valid values of ignore_overflow are:
- 0 = disabled
- 1 = enabled
If the new total currency would overflow that currency's maximum limit then:
If ignore_overflow is:
ignore_overflow=1- The total currency is clamped to the maximmum limitignore_overflow=0- No currency is added
pouchdel¶
| Syntax | Description |
|---|---|
!pouchdel <currency_id> <count> |
Removes the given count of the given currency type from the player character's currency pouch. |
Removes count of the given currency_id type from the player character's currency pouch.
Valid currency_id values can be found in the Currency IDs list.
If the new total currency would be less than 0 then no currency is removed.
pouchdeposit¶
| Syntax | Description |
|---|---|
!pouchdeposit <currency_id> <inv> |
Transfers all of the given currency type from the given inventory to the player character's currency point. |
Transfers all of the given currency_id type from the given Inventory inv to the player character's currency pouch.
Valid currency_id values can be found in the Currency IDs list.
pouchwithdraw¶
| Syntax | Description |
|---|---|
!pouchwithdraw <currency_id> |
Transfers the given currency type from the player character's currency pouch to the player character's INV inventory. |
Transfers the given currency_id type from the player's currency pouch into the player character's backpack Inventory inv.
A prompt will be shown to ask how much currency should be moved.
Valid currency_id values can be found in the Currency IDs list.
pouchspace¶
| Syntax | Description |
|---|---|
!pouchspace <currency_id> |
Returns the available space for the given currency type in the player character's currency pouch. |
Calculates how much additional currency of type currency_id can be added to the player character's currency pouch.
Valid currency_id values can be found in the Currency IDs list.
pouchtotal¶
| Syntax | Description |
|---|---|
!pouchtotal <currency_id> |
Returns the current total of the given currency type in the player character's currency pouch. |
Calculates how much currency of type currency_id is in the player character's currency pouch.
Valid currency_id values can be found in the Currency IDs list.
testpouchadd¶
| Syntax | Description |
|---|---|
!testpouchadd <currency_id> <count> |
Tests if the exact given count of the given currency type can fit in the player character's currency pouch, adding that amount if the test is successful. |
Performs a test to see whether count of currency_id can fit in the player character's currency pouch.
If the test is successful, count is added.
If the test is unsuccessful, nothing is added.
Valid currency_id values can be found in the Currency IDs list.
testpouchdel¶
| Syntax | Description |
|---|---|
!testpouchdel <currency_id> <count> |
Tests if the exact given count of the given currency type can be removed from the player character's currency pouch, removing that amount if the test is successful. |
Performs a test to see whether count of currency_id can be removed from the player character's currency pouch.
If the test is successful, count is removed.
If the test is unsuccessful, nothing is removed.
Valid currency_id values can be found in the Currency IDs list.
Useful named teleports¶
Here is a list of useful named teleports. These can be used with the !tele cheat command.
| Named Teleport | Coordinate | Lua CoordGrid |
|---|---|---|
| grandexchange | 0,49,54,29,40 | CoordGrid._0_49_54_29_40 |
| TODO | TODO | TODO |
Useful inventory names¶
Here is a list of useful named inventories. These can be used with the !give and !listinv cheat commands.
| Named Inventory | Config Name | Description |
|---|---|---|
| inv | config.Inv.INV |
Player backpack |
| bank | config.Inv.BANK |
Player main bank |
| TODO | TODO | TODO |
Invention Perk IDs¶
Here is a list of available Invention perk IDs. Use these with the following cheat command:
| Invention Perk | ID | Maximum Rank |
|---|---|---|
| blunted | 1 | 5 |
| inaccurate | 2 | 5 |
| biting | 3 | |
| eruptive | 4 | 4 |
| honed_tool | 5 | 6 |
| lucky_armour | 6 | 6 |
| undead_slayer | 7 | 1 |
| dragon_slayer | 8 | 1 |
| demon_slayer | 9 | 1 |
| undead_bait | 10 | 1 |
| dragon_bait | 11 | 1 |
| demon_bait | 12 | 1 |
| looting | 13 | 1 |
| enlightened_xp | 14 | 4 |
| glowworm | 15 | 1 |
| atheist | 16 | 1 |
| hoarding | 17 | 1 |
| taunting | 18 | 1 |
| committed | 19 | 1 |
| mobile | 20 | 1 |
| cautious | 21 | 1 |
| hallucinogenic | 22 | 1 |
| talking | 23 | 1 |
| scavenging | 24 | 4 |
| turtling | 25 | 4 |
| brief_respite | 26 | 4 |
| wise | 27 | 4 |
| efficient | 28 | 4 |
| absorbative | 29 | 4 |
| precise | 30 | 6 |
| profane | 31 | 1 |
| brassican | 32 | 1 |
| fatiguing | 33 | 3 |
| genocidal | 34 | 1 |
| crackling | 35 | 4 |
| impatient | 36 | 4 |
| invigorating | 37 | 4 |
| venomblood | 38 | 1 |
| devoted | 39 | 4 |
| spendthrift | 40 | 6 |
| shield_bashing | 41 | 4 |
| ultimatums | 42 | 4 |
| junk_food | 43 | 3 |
| energising | 44 | 4 |
| trophy_takers | 45 | 6 |
| clear_headed | 46 | 4 |
| reflexes | 47 | 1 |
| bulwark | 48 | 4 |
| preparation | 49 | 4 |
| mediocrity | 50 | 3 |
| mysterious | 51 | 6 |
| furnace | 52 | 4 |
| polishing | 53 | 4 |
| cheapskate | 54 | 3 |
| imp_souled | 55 | 6 |
| butterfingers | 56 | 5 |
| refined | 57 | 4 |
| charitable | 58 | 4 |
| confused | 59 | 3 |
| caroming | 60 | 4 |
| aftershock | 61 | 4 |
| lunging | 62 | 4 |
| plantedfeet | 63 | 1 |
| enhanced_efficiency | 64 | 4 |
| flanking | 65 | 4 |
| enhanced_devotion | 66 | 4 |
| crystal_shield | 67 | 4 |
| rapid | 68 | 4 |
| tinker | 69 | 4 |
| pyromaniac | 70 | 6 |
| autodisassemble | 71 | 6 |
| prosper | 72 | 1 |
| relentless | 73 | 5 |
| ruthless | 74 | 3 |
| fortune | 75 | 3 |
| equilibrium | 76 | 4 |
| scraps | 77 | 1 |
| careless | 78 | 5 |
| explosive | 79 | 1 |
| oblivious | 80 | 1 |
| wild_runes | 81 | 5 |
| preservationist | 82 | 5 |
| hasty | 83 | 5 |
| naturalist | 84 | 5 |
Currency IDs¶
Here is a list of available currency IDs. Use these with the following cheat commands:
| Currency Type | ID |
|---|---|
| thaler | 1 |
| tokkul | 2 |
| pieces_of_eight | 3 |
| arc_chimes | 4 |
| arc_taijitu | 5 |
| brim_agil_ticket | 6 |
| cw_gold_ticket | 7 |
| cw_silver_ticket | 8 |
| ectotoken | 9 |
| rc_guild_token | 10 |
| mazcab_teci | 11 |
| reaper_points | 12 |
| penguin_points | 13 |
| ba_attack | 14 |
| ba_defence | 15 |
| ba_collector | 16 |
| ba_healer | 17 |
| fishing_tokens | 18 |
| brian_points | 19 |
| mob_invest | 20 |
| mob_reward | 21 |
| mage_tele | 22 |
| mage_alch | 23 |
| mage_enchant | 24 |
| mage_grave | 25 |
| livid_points | 26 |
| sc_points | 27 |
| vine_points | 28 |
| void_points | 29 |
| soulwars_points | 30 |
| slayer_points | 31 |
| ss_points | 32 |
| runespan | 33 |
| warguild_str | 34 |
| warguild_def | 35 |
| warguild_att | 36 |
| warguild_com | 37 |
| warguild_bal | 38 |
| pilfer_points | 39 |
| hanky_points | 40 |
| jadinko_favour | 41 |
| tuska | 42 |
| fog_token | 43 |
| dungeoneering_tokens | 44 |
| cfb_points | 45 |
| heist_points | 46 |
| clan_orts | 47 |
| deathmatch | 48 |
| arc_supplies | 50 |
| fragments_gemstone | 51 |
| fragments_ethereal | 52 |
| fragments_shark | 53 |
| fragments_camouflage | 54 |
| hog_mote | 55 |
| sworlds | 56 |
| slayer_vip | 57 |
| fragments_divination | 58 |
| trail_points | 59 |
| fragments_dungeoneering | 60 |
| fragments_farming | 61 |
| pof | 62 |
| fragments_sentinel | 63 |
| fragments_trapper | 64 |
| dino_herblore_dnd | 65 |
| marks_of_war | 66 |
| chronotes | 67 |
| con_contracts | 68 |
| dsf_merchant_coupon | 69 |
| challenge | 70 |
| scarabs_caught | 71 |
| desert_farm | 72 |
| christmas_spirit | 73 |
| dmbh_ancientgeardropbuff | 74 |
| spring_tokens | 75 |
| egg_points | 76 |
| spooky_tokens | 77 |
| stardust | 78 |