Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Runescape > Runescape Private Server
You last visited: Today at 14:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



PServer Making and Understanding commands for beginners (allowed?)

Discussion on PServer Making and Understanding commands for beginners (allowed?) within the Runescape Private Server forum part of the Runescape category.

Reply
 
Old   #1
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
PServer Making and Understanding commands for beginners (allowed?)

I got no idea if this is allowed if it isn't please delete this post!

Getting down the basics of commands

Ok commands will most of the time will be like this

Code:
else if (command.startsWith("NAME") && playerRights >= PLAYERRIGHTS)
Now if you don't have a clue what player rights is and what it means

PlayerRights
___________

0 = A regular player
1 = A moderator
2 = Admin
3 = Owner/Co Owner (Whatever you choose but normally Owner)
__________________________________________________ _______

I will suppose you know what the NAME part means if you don't you're dumb =/

Now with a command there's many different uses like the following

Item Commands
Teleport
A screen.... like a help menu
And all that stuff

__________________________________________________ __________

Important part of commands

As of almost every command it will start with this

Code:
else if (command.startsWith("NAME") && playerRights >= PLAYERRIGHTS)
It's important with commands that you have a
Code:
}
Above the start of the command and after the whole
command.

Right below the start of the command it's important to have a
Code:
{
In between the last
Code:
}
and the
Code:
{
after the starting of a command it will have the contents of a
command

Contents of a command will be posted below (items,teleport, screens)

That's pretty much all their is IMPORTANT so you won't get 100 errors when you compile
__________________________________________________ _____________________________

What you should of got down already... is something like this (I labeled)

Code:
}
else if (command.startsWith("NAME") && playerRights >= PLAYERRIGHTS)
{

CONTENTS OF THE COMMAND BETWEEN THE { and the }

}
The beginning of the contents will be right under the first bracket and the end will be right above the
last bracket...

__________________________________________________ _________________________________

Let's start with a item command....

Item commands are the easiest of them all but incase you don't know here we go

Now the only thing change with item command is this

Code:
addItem(ITEMID,HOW MANY YOU WANT);


we will put this in the contents part of a command as seen above.

Now we got that done this is what it will look like now

Code:
}
else if (command.startsWith("NAME") && playerRights >= PLAYERRIGHTS)
{
	addItem(ITEMID,HOW MANY YOU WANT);
}
REMEMBER!!!
The beginning of the contents will be right under the first bracket and the end will be right above the
last bracket...

So you're finished item command will be like this I will use an example of coins

Code:
}			
else if (command.startsWith("rich") && playerRights >= 3)
			{
				addItem(995,999999999);
			}
Now that's all I can really explain with this
__________________________________________________ __________________________________________

Now let's start with teleport command

again it will be the basic command thing above the item command guide

Now the teleport command in the contents will always have this!!!!

Code:
    teleportToX = XCOORDINATESHERE;
     teleportToY = YCOORDINATESHERE;
Also a lot of times it will have heightLevel and it would look like this not all commands have

Code:
heightLevel = 0;
Of course you will fille out the coordinates

How do you find coordinates?

To find coordinates go to you're runescape game and go to the tab where you will put on run and look under you're energy and
there will be

X:
Y:

Ok now you got the coordinates down (Im assuming you already know what coordinates are)

This is how the command will look (if heightLevel is added with) and I will use an example of East Varrock bank

Code:
}
else if (command.equalsIgnoreCase("varrock"))
     	{
		teleportToX = 3254;
		teleportToY = 3421;
		heightLevel = 0;
	}
This is one without heightLevel I used underwater as an example

Code:
if (command.equalsIgnoreCase("underwater") && playerRights >= 0)
         {
    teleportToX = 2979;
     teleportToY = 9501;
}
Well now that's all covered!!!!
__________________________________________________ _______________________________________________

Menus

Again the basic command above!

With menu's it would be lik this as the beggining of the menus

Code:
sendQuest("Command List", 8144);  //Title
What's the numbers after the name?
That's the line spots of where the text would go and we'll get to that in a minute

Now with menus the contents would be holding something like this

Code:
sendQuest("NAME", 8145);
That would be the contents of the menu also
Now if you were to put two lines because of those numbers you'd have to put the number right after
the line before it say above the number is 8145 the next line would be the same except the number would be 8146

Well there's not much to explain about that other than that above... hehe

__________________________________________________ __________________________________________________ _

Adding a text to any command

Now adding a text is very simple after the contents of item command or anything put this

Code:
sendMessage("TEXT");
That's all it is... Really... now i will show examples

EXAMPLE WITH ITEM COMMAND

Code:
			}
			else if (command.startsWith("bluephat") && playerRights >= 2)
			{
				addItem(1042,1);
				sendMessage("YOU GOT A BLUE PHAT");
			}
That's all it is for adding text.... Just right under the main contents...

__________________________________________________ __________________________________________________ ________

If i missed anything please post what i missed and I will add it (I didn't add them all because remmember this is just basic for beginners)
So I tried making it as basic as it gets


Credits to Me =/

BEGINNER COMMANDS!! DON'T FLAME
n0mansland is offline  
Thanks
4 Users
Old 11/24/2008, 00:41   #2
 
plasma-hand's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 104
thanx for your guide its gonna help some people
plasma-hand is offline  
Thanks
3 Users
Old 11/24/2008, 01:56   #3
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Quote:
Originally Posted by plasma-hand View Post
thanx for your guide its gonna help some people
Your welcome=) Thanks for posting glad you like it..
n0mansland is offline  
Thanks
1 User
Old 11/25/2008, 02:05   #4
 
plasma-hand's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 104
definitley a good guide for beginners.Do you own a server or just like coding?
plasma-hand is offline  
Thanks
1 User
Old 11/25/2008, 02:20   #5
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Well, i was working on a server for a while to make it public because me and my brother were running private servers but then I became less interested in that goal... SO right now I no longer code that server but I still am pretty good =P Yeah I enjoy coding for some reason.. Even if it doesn't help people..It's actually not that hard the easiest out of all servers yet.
n0mansland is offline  
Thanks
2 Users
Old 11/25/2008, 02:23   #6
 
plasma-hand's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 104
im not that good in java coding but i can do some Conquer p server coding
plasma-hand is offline  
Thanks
1 User
Old 11/25/2008, 02:29   #7
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
I'm alright at Java coding I wouldn't say im better than a couple of people on the moparscape forums but I i'm pretty good.

Yeah I saw you on the CO Forums.. Maybe you could help me code sometime =P... Right now I pretty nooby at it but I can follow the guides good.. but right now my server having difficulties with the Login Freeze guide.. I never seen it act like this before and I don't know what is wrong

BTW What does it take to be a RS GM? =/ I would like to be one maybe.. If they like me..
n0mansland is offline  
Thanks
1 User
Old 11/25/2008, 02:36   #8
 
plasma-hand's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 104
well if ur following the one by alex bigfoot it doesnt fix the logiin freeze it just makes it slightly more stable.Check ur Crown fix topic i posted something there

Its pretty hard to be an rs gm/mod means no reports like ever which is kind of hard.Im sure they check playing time and chat info
plasma-hand is offline  
Thanks
2 Users
Old 11/25/2008, 02:40   #9
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Oh no, You trying to be a GM on real RS? XD I meant the forums =P.. What guide would you suggest I follow to fix log in freeze cause I was following alex's guide *** I glad you told me that this is the 3rd day trying to fix it =P
n0mansland is offline  
Thanks
1 User
Old 11/25/2008, 02:48   #10
 
plasma-hand's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 104
you mean official forum or this one?If you mean this one i dont think ill even qualify just cause my thanks are low,and my resume is short There are no other guides that i know of =( Someone that used to be on the forum solved it but no1 would believe him.It was something with gui tools
if you have msn add me
plasma-hand is offline  
Thanks
1 User
Old 11/25/2008, 02:54   #11
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
=/ Yeah getting thanks is very hard especially sometimes you don't get the Thanks you deserve.. I'm stumped on guides too.. I just don't know what else there is... When I get more thanks maybe I will try out for GM =/
n0mansland is offline  
Old 11/25/2008, 03:00   #12
 
plasma-hand's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 104
ya u might have to wait awhile because they check post count,join date,last 50 or so posts,and a bunch of other ****.Hopefully ill get it then i can close some of these dumb posts like the one about the guy and his cousin
plasma-hand is offline  
Thanks
1 User
Old 11/25/2008, 03:05   #13
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
Hehe, This forum definitely is dead
n0mansland is offline  
Thanks
1 User
Old 11/25/2008, 04:00   #14
 
plasma-hand's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 104
ya im trying to get people to join
plasma-hand is offline  
Thanks
1 User
Old 12/04/2008, 21:32   #15
 
n0mansland's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 780
Received Thanks: 255
bump
n0mansland is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Help by understanding GWCA commands
12/08/2009 - GW Bots - 20 Replies
Hi, I have got some questions, because I work with GWCA since this week. 1.How I can get the id for the function: Cmd$(CA_DIALOG, id) --> Kilroy Quest Only autoIT: I do it with MouseClick( x, y) 2.How I can attack my target with a Skill from my Skillbar? Only autoIT: I do it with ControlSend(“Guild Wars”,””,””, “{3}”) My Char. Take a nearest target automatically and active his Skill 3 in the Skillbar.
[Question] Editing, making NPC and adding Commands...
01/17/2009 - CO2 Private Server - 5 Replies
hey guys? i was just wondering, cause i just setup my own private server, how i can edit, and/make NPC's , because i want to make my own Source Plus how can i Incorporated more commands... like how would i had this command... http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/201441-allto-me-command.html And one last question.... how could i change item Colours and effect?
[Key Commands] Default Key Commands for the beginners
10/01/2008 - General Gaming Releases - 0 Replies
Default keybindings: Abilities Window V Backpack Window: B Career Window: K Character Window: C Battlegroup Window: Left Alt + R Developer Window: ; Guild Window: G Help Window: H



All times are GMT +2. The time now is 14:10.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.