PDA

View Full Version : How to add commands



Tais0nas
July 5th, 2010, 09:29
First open urs client.java,press CTRL+F to search something,search something like "GFX" or "emote"

Add ::pure command
if (command.equalsIgnoreCase("pure") && playerRights >= 2){
addSkillXP(14000000, 0);
addSkillXP(14000000, 2);
addSkillXP(14000000, 3);
addSkillXP(14000000, 4);
addSkillXP(14000000, 6);
sM("You are now a pure.");
}
The addSkillXP(Amount, what skill u want to add 0 is attack);

if (command.equalsIgnoreCase("pure") && playerRights >= 2){ "pure" is when u do in server ::pure u will get the stats,if u change to "zerker" u will get in server not even pure,u will do ::zerker and u will get that stats.
Player Rights >=2){ its for admins,if u do 0 its for players.
I'm new on RSPS So its my firs guide.
-Tais0nas

Zero Mercy
July 5th, 2010, 09:38
This has been done many times, and more efficient.
This should go in copy and paste... You didn't really explain anything except how you do :: pure in-game and 2 is admin and 0 is for players...
Maybe try putting a section of code then explaining it then at the bottom put the whole code, so people don't see the code copy and paste then exit this topic.

4/10 Since it's your first time

Mohammad
July 8th, 2010, 06:35
I think thats not useful.
Some commands com in different ways they are not always straight if you understand what i mean.
I'll make a tutorial now.