Help Using Commands on My LostCityRS Server (Teleport, Max Stats, etc.)

Hey everyone,

I could really use some help getting basic commands working on my local LostCityRS (04scape) server. I’m not a coder or developer just someone who wanted to play around on their own server for fun. With help from ChatGPT, I was able to get the server set up and running, and I can log into the game successfully.

But I’m having a hard time getting any in-game commands to actually work. For example, I’ve tried adding a teleport command. It shows up in the server console and in the in-game chat, and the server logs even acknowledge the commands but nothing actually happens visually. My character doesn’t move, and none of the commands seem to “apply” in the game.

I’ve spent hours trying to figure it out with step-by-step help (including debugging isZoneAllocated, confirming the teleport function fires, logging coordinates, etc.), but it seems like there’s something missing that makes the client update — maybe a packet or sync method.

All I really want is to be able to:

  • Teleport around the world
  • Give myself max stats
  • Spawn gear/items
  • Basically just enjoy the old-school game freely for fun

I’m not technical, and I don’t know how to write code or use Java. Everything I’ve done was explained to me like I was 5 (and I still barely got through it). So if anyone here could offer guidance or example code, or even point me in the right direction, I’d really appreciate it.

Thanks in advance to anyone who can help.

Hi, there are already many available commands developed on the server. They are called debugproc (RuneScript).

Like these for example:

The usage goes as follows ::~home. The other one for maxing is ::~maxme. Or you can also try ::~south 50. And ::~give dragon_longsword 1 for spawning objs.

It is not recommended of you to code custom commands directly on the engine (TypeScript) that you may see a few uses of, as this can cause serious problems if done improperly (which most likely will be). You should only focus on using and creating new debugprocs (RuneScript).

AI will most likely not be able to assist you with RuneScript as it is a proprietary language private to Jagex, so no AI has ever been trained on it before.

Hope this helps you.

1 Like

Hi the only command that is working for me is the ::give command. The ones you send doesnt work. And it is not possible to type “~” ingame. Maybe i dont really understand how this works lol.

That might be an OS, keyboard/map, or browser thing, but I could type that fine on 2004Scape anywhere (enUS 105).


How exactly is your server set-up?

::~help at a minimum should work I think, and it reports some commands you can use.

Depending on your set-up, if you set NODE_DEBUGPROC_CHAR=: you could do three colons instead like :::help

Weird. I am using a Swedish keyboard. Maybe I should try the webclient instead. Where do i change this? “NODE_DEBUGPROC_CHAR=:”

I add it to a .env file and load that through bun with the server start:

bun.exe --env-file="customs.env" run "quickstart"

custom.env would be a text file with one line of:

NODE_DEBUGPROC_CHAR=:

This is an issue with Discourse assuming your browser’s color preference (light/dark) incorrectly I think… I vaguely remember encountering something like this while building the forum theme

Here’s how it looks for me in Firefox (with browser set to dark mode)
image

I can replicate the issue if I switch to light mode. Will look into fixing this, ty

1 Like

I resolved the issue by installing the US language pack in Windows and creating an ahk script to input (~) using a different key. The character could not be entered using my Swedish keyboard layout.

1 Like