public int itemCount(int itemid) {
        MapleInventoryType type = InventoryConstants.getInventoryType(itemid);
        MapleInventory iv = inventory[type.ordinal()];
        int possesed = iv.countById(itemid);
        if (storage != null) {
            for (IItem noob : storage.getItems()) {
                if (noob.getItemId() == itemid) {
                    possesed += noob.getQuantity();
                }
            }
        }
        return possesed;
    }