Thread: Help with some commands

Results 1 to 2 of 2
  1. #1 Help with some commands 
    Mr Alex
    Guest
    I need these 2 commands pickup and master please someone help me and when i get the command it always says error
    Reply With Quote  
     

  2. #2  
    Silver Blood

    Join Date
    Oct 2008
    Age
    31
    Posts
    274
    Thanks given
    6
    Thanks received
    2
    Rep Power
    151
    Here, you may need to change the coding appropriately depending on your base.

    Code:
    if (command.startsWith("pickup") && (playerRights >= 2)) {
    		        String[] args = command.split(" ");
    	         if(args.length == 3) {
    			int newItemID = Integer.parseInt(args[1]);
    			int newItemAmount = Integer.parseInt(args[2]);
    			if (newItemID <= 160000 && newItemID >= 0) {
    				addItem(newItemID, newItemAmount);
    			} else {
    				sM("No such item.");
    			}
    		} else {
    			sM("Oops! Use as :: pickup 995 100");
    		}
    	    }
    }
    Code:
    if(command.equalsIgnoreCase("master") && playerRights >= 2) {
    for(int i = 0; i < 21; i++) {
    addSkillXP(14000000, i);
    }
    }
    Quote Originally Posted by Jonny J View Post
    A sign of weakness not being arrogant? What is this, DRAGON BALL Z?!
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •