60 private final int[] STRINGS = {48550, 48551, 48552, 48553, 48554, 48555, 48556, 48557, 48558, 48559, 48560, 48561, 48562, 48563, 48564, 48565, 48566, 48567, 48568, 48569, 48570, 48571, 48572, 48573, 48574, 48575, 48576, 48577,};
179 if (itemId < 0)
return;
181 Item item =
get(slot);
182 if (item ==
null || itemId != item.getId()) {
192 int id = item.getId();
194 if (!
new Item(
id).isStackable() && amount >
player.inventory.getFreeSlots()) {
195 amount =
player.inventory.getFreeSlots();
198 int fuckingSlot =
player.inventory.computeIndexForId(
id);
199 if (fuckingSlot != -1) {
200 Item fuckingStan =
player.inventory.get(fuckingSlot);
201 if (Integer.MAX_VALUE - fuckingStan.getAmount() < amount) {
202 amount = Integer.MAX_VALUE - fuckingStan.getAmount();
203 player.send(
new SendMessage(
"Your inventory didn't have enough space to withdraw all that!"));
208 if (
remove(item.getId(), amount)) {
209 player.inventory.add(
id, amount);
249 for (
int index = 0; index < STRINGS.length; index++) {
253 int price =
getItems()[index].getValue(priceType);
254 int amount =
getItems()[index].getAmount();
262 player.inventory.refresh();
268 player.send(
new SendString(searchedItem ==
null ?
"" :
"<col=ffb000>" + searchedItem.getName() +
":", 48582));