admin command "remove all"

Results 1 to 4 of 4
  1. #1
    Apprentice oudric is offline
    MemberRank
    Jan 2012 Join Date
    19Posts

    note admin command "remove all"

    Hi i request a new gm command "remove all" which delete everything in players inventory .


  2. #2
    Member TNT is offline
    MemberRank
    Sep 2011 Join Date
    Test ServerLocation
    59Posts

    Re: admin command "remove all"

    lol u could try making it before u ask for one, use the remove java as a base for the command you want :D

  3. #3
    Apprentice oudric is offline
    MemberRank
    Jan 2012 Join Date
    19Posts

    Re: admin command "remove all"

    Quote Originally Posted by TNT View Post
    lol u could try making it before u ask for one, use the remove java as a base for the command you want :D
    Well i don't know how to java
    but all i know that its in this area so what do i change?


    Code:
    Storage bag = target.getInventory();
    
    		long itemsInBag = bag.getItemCountByItemId(itemId);
    		if (itemsInBag == 0) {
    			PacketSendUtility.sendMessage(admin, "Items with that id are not found in the player's bag.");
    			return;
    		}
    
    		Item item = bag.getFirstItemByItemId(itemId);
    		bag.decreaseByObjectId(item.getObjectId(), itemCount);
    
    		PacketSendUtility.sendMessage(admin, "Item(s) removed succesfully");
    		PacketSendUtility.sendMessage(target, "Admin removed an item from your bag");
    	}
    do i change this Item item = bag.getFirstItemByItemId(itemId); to Item item = bag.getallitemid(itemId);?
    any help?
    Last edited by oudric; 08-01-14 at 07:37 PM.

  4. #4
    Apprentice oudric is offline
    MemberRank
    Jan 2012 Join Date
    19Posts

    Re: admin command "remove all"

    bump...



Advertisement