pretty sure from the 10 second glimpse i took, your issue lies within here...Code:public void collectAll(boolean bank) { // kinda a cheat way to collect all to bank / inv for (int i = 0; i < 6; i++) { Offer offer = GrandExchange.getOffer(player, i); if (offer == null) continue; if (!player.getInventory().hasFreeSlots()) { player.getPackets().sendGameMessage("Not enough space in your inventory."); return; } for (int i2 = 0; i2 < 2; i2++) { Item item = offer.getReceivedItems().get(i2); if (item == null) continue; collectItems(i, i2, 0); // tries to collect everything if (bank) { int slot = player.getInventory().getItems().getThisItemSlot(item); if (slot == -1) continue; player.getBank().depositItem(slot, item.getAmount(), false); }
this is missing some basic functions that ideally would give you a solution, if this is the method being called (i didnt look that far into this)






