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.
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.
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.
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)
I can replicate the issue if I switch to light mode. Will look into fixing this, ty
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.