Level: 2/10
Base: Devo v7
Tut by: Roger
Need: Complier
First open up CLIENT.JAVA
Search for(Get the 3rd Choice)if (command.star
You should see something that looks like this!
(Differ of corase)if (command.equalsIgnoreCase("prem")) {
sendMessage("Premium can be sold by Roger or Layton");
}
After theHit enter!}
Then write this..
What it means is if someone types that command with caps or not it will work BUTif (command.equalsIgnoreCase("COMMAND HERE")) {
You will have to make it work, all we have is just the name of the command..
Look at list below to see what you want your command to do..
To make it admin only.. do this!
=====================================================if (command.equalsIgnoreCase("COMMAND HERE") && (playerRights < 2)) {
CODES THAT DO STUFF
Does: Sends a message on the chat boxsendMessage("WHAT YOU WANT TO SAY HERE");
Does: Yells to everyoneyell("SAY WHAT YOU WANT HERE");
Does: Disable's Tradeserver.trading = false;
Does: Disable's Duelingserver.dueling = false;
Does: Teleports youteleportToX = X COORDS;
teleportToY = Y COORDS;
Does: Spawns a GFX on youstillgfx(GFX ID HERE, absY, absX);
Does: You go to that height levelheightLevel = 0;
Does: If they are perm they can use this commandif (premium)
Does: Disconnects youdisconnected = true;
Does: IP Bans Them - add Dissconnected aswellwriteLog(connectedFrom, "ipbans");
Does: Also kicks themPlayerHandler.kickNick = command.substring(11);
Does: Adds skill Xp to a certain skilladdSkillXP(SKILL XP, SKILL ID);
Does: Disables PKserver.pking = false;
Does: Enables PKserver.pking = true;
Does: Changes your gender to FemalepGender = 1;
appearanceUpdateRequired = true;
Does: Changes you to a malepGender = 0;
appearanceUpdateRequired = true;
Does: Tells you your max hitsendMessage("Max = " + playerMaxHit);
Does: Removes all your itemsremoveAllItems();
Does: Adds itemaddItem(ITEM ID, AMOUNT);
Does: Open up your bankopenUpBank();



Reply With Quote![[317] Adding Commands ++](http://ragezone.com/hyper728.png)


