46 private static final int DONATOR_DEPOSIT_BOX_DISPLAY_ID = 57307;
48 private final Player player;
50 public LostUntradeables(
Player player) {
57 player.interfaceManager.open(57300);
65 public boolean deposit(Item item) {
66 int id = item.getId();
68 add(
id, item.getAmount());
74 public boolean claim(
int slot,
int id) {
75 if (!player.interfaceManager.isInterfaceOpen(57300)) {
79 Item item =
get(slot);
81 if (item ==
null || item.getId() !=
id) {
85 if (player.inventory.getFreeSlots() == 0) {
86 player.message(
"You do not have enough free inventory space!");
90 if (!player.inventory.contains(13307, 350)) {
91 player.message(
"You need 350 blood money to re-claim this item!");
95 if (
remove(item.getId(), 1)) {
96 player.inventory.add(
id, 1);
97 player.inventory.remove(13307, 350);
104 private void refresh() {
105 refresh(player, DONATOR_DEPOSIT_BOX_DISPLAY_ID);
110 player.inventory.refresh();