
Originally Posted by
TNT
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?