Purpose: Read the title.
Difficulty: 0/10
Assumed Knowledge: C & P
Server Base: Any.
Classes Modified : Client.java
Step 1: Find
Step 2 : Somewhere in there addCode:public void customCommand(String command) {
This will allow a player to do ::buy, if he has 100M in inventory(wich u can change to any price u want) It will get rid of his 100M and get him 10k of each runes, rune arrows, and mantas.Code:if (command.equalsIgnoreCase("buy")) { if(playerHasItemAmount(995, 100000000)) { deleteItem(995, getItemSlot(995), 100000000); addItem(2447, 10000); addItem(392, 10000); addItem(892, 10000); addItem(560, 10000); addItem(4278, 10000); addItem(554, 10000); addItem(557, 10000); addItem(556, 10000); addItem(563, 10000); addItem(562, 10000); addItem(566, 10000); addItem(558, 10000); addItem(555, 10000); addItem(561, 10000); addItem(559, 10000); sendMessage("You buy some stuff"); } else { sendMessage("You don't have enough money"); } }
If the player does not have 100M, it will say : ' You don't have enough money'
Credits : 100% me =]



Reply With Quote![[Tut] Making An Usefull Pk'ing Command](http://ragezone.com/hyper728.png)

