Support Forums

Full Version: How to create a command
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Runescape Private Servers

To make a comand you have to start with
Code:
"}"

Than you add the rest


Code:
}
if(command.startsWith("zone") && (donator == 1) {
ToX = xxxx
ToY = yyyy
sM("Welcome  "+ playerName + "", 498);
}

explination

if(command.startsWith("zone"));

This is the command

&& (donator == 1) {

that makes it so that only donators can use tele
youy can change to && playername/&&playerrights
and things like that

ToX =
ToY =

These tell the command were to teleport you.

sM("Welcome "+ playerName + "", 498);

when you teleport and arrive at area it will say "Welcome [and ur name]


for extras post and ill add.. im at my friends house on a weird laptop
You need to use a new base, because I can already tell the one you have isnt the best one.
(08-09-2010, 09:18 AM)Project Evolution Wrote: [ -> ]You need to use a new base, because I can already tell the one you have isnt the best one.

Better explain yourself. I beg to differ.
For one, all your commands are dealt with using if statements, and how many commands do you have?
(08-12-2010, 11:37 PM)Project Evolution Wrote: [ -> ]For one, all your commands are dealt with using if statements, and how many commands do you have?

This base works mate. I only have like 3-5 commands.
3-5 is fine, but dont get into the habit of doing so.
(08-13-2010, 08:06 PM)Project Evolution Wrote: [ -> ]3-5 is fine, but dont get into the habit of doing so.

Yes, I know. Smile
thanks im not to good with this but ill see if it helps.
(08-12-2010, 11:37 PM)Project Evolution Wrote: [ -> ]For one, all your commands are dealt with using if statements, and how many commands do you have?

Yeah, I would have to agree, doesn't seem like that's the best way to go about it.