Thread: Item command is being gay :[

Results 1 to 5 of 5
  1. #1 Item command is being gay :[ 
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    I type in :bject 1 (for example)
    and it says "Wrong format, use ::item (code) (amount)".

    Or if I use :etlevel 1 99. It gives me 99 toolkits >.>

    I think this is a mess up with my item command, why is this o.o? I dont even know where to start =\

    Will rep if you can fix
    Reply With Quote  
     

  2. #2  
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    Reply With Quote  
     

  3. #3  
    Registered Member Pakku's Avatar
    Join Date
    Mar 2010
    Posts
    1,234
    Thanks given
    127
    Thanks received
    111
    Rep Power
    47
    Post your item command.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Addiction's Avatar
    Join Date
    Mar 2011
    Posts
    954
    Thanks given
    1,875
    Thanks received
    136
    Rep Power
    311
    Quote Originally Posted by stripies View Post
    Post your item command.
    Code:
    			if (playerCommand.startsWith("item"));
    				try {
    					String[] args = playerCommand.split(" ");
    					if (args.length == 3) {
    						int newItemID = Integer.parseInt(args[1]);
    						int newItemAmount = Integer.parseInt(args[2]);
    						if ((newItemID <= 20900) && (newItemID >= 0)) {
    							c.getItems().addItem(newItemID, newItemAmount);		
    						} else {
    							c.sendMessage("No such item.");
    						}
    					} else {
    						c.sendMessage("Use as ::pickup 995 200");
    					}
    				} catch(Exception e) {
    					
    				}
    			}
    Reply With Quote  
     

  5. #5  
    Zaros Developer

    Nomac's Avatar
    Join Date
    Feb 2011
    Age
    29
    Posts
    1,068
    Thanks given
    318
    Thanks received
    200
    Rep Power
    1092
    Code:
    if (playerCommand.startsWith("item")) {
    				try {
    					String[] args = playerCommand.split(" ");
    					if (args.length == 3) {
    						int newItemID = Integer.parseInt(args[1]);
    						int newItemAmount = Integer.parseInt(args[2]);
    						if ((newItemID <= 20900) && (newItemID >= 0)) {
    							c.getItems().addItem(newItemID, newItemAmount);		
    						} else {
    							c.sendMessage("No such item.");
    						}
    					} else {
    						c.sendMessage("Use as ::pickup 995 200");
    					}
    				} catch(Exception e) {
    					
    				}
    			}
    Attached image


    Reply With Quote  
     

  6. Thankful user:



Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Help ::item command PI!
    By bear kill you in forum Help
    Replies: 8
    Last Post: 01-19-2012, 11:58 PM
  2. Item command
    By Diverse Reality in forum Help
    Replies: 3
    Last Post: 04-24-2011, 05:32 PM
  3. [PI] Item Command
    By I'm A Jerk in forum Help
    Replies: 10
    Last Post: 04-24-2011, 03:31 AM
  4. [PI] Item Command [ Will Rep ]
    By nMik in forum Help
    Replies: 2
    Last Post: 04-24-2011, 02:30 AM
  5. ::item command Finding your item?
    By zx Bubbles zx in forum Requests
    Replies: 10
    Last Post: 11-10-2008, 06:41 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •