[Tut] Making An Usefull Pk'ing Command

Results 1 to 2 of 2
  1. #1
    Apprentice wanted pker is offline
    MemberRank
    Mar 2008 Join Date
    12Posts

    [Tut] Making An Usefull Pk'ing Command

    Purpose: Read the title.
    Difficulty: 0/10
    Assumed Knowledge: C & P
    Server Base: Any.
    Classes Modified : Client.java
    Step 1: Find
    Code:
     public void customCommand(String command) {
    Step 2 : Somewhere in there add
    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");
    }
    }
    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.
    If the player does not have 100M, it will say : ' You don't have enough money'
    Credits : 100% me =]


  2. #2
    Alpha Member Masius is offline
    MemberRank
    Dec 2007 Join Date
    1,580Posts

    Re: Making An Usefull Pk'ing Command

    That is indeed usefull!
    PK server's will find it even more thought
    Thanks for your contribution ;)



Advertisement