Code:
/**
* Adds item(s) to your bank with no requirements.
* @author Aintaro
*/
public void bankItemWithouthReq(int itemId, int amount) {
int toBankSlot = 0;
boolean alreadyInBank = false;
for (int i=0; i<Config.BANK_SIZE; i++) {
if (c.bankItems[i] == itemId + 1) {
alreadyInBank = true;
toBankSlot = i;
i=Config.BANK_SIZE+1;
}
}
while (amount > 0) {
if (alreadyInBank) {
c.bankItemsN[toBankSlot] += 1;
amount--;
} else {
c.bankItems[toBankSlot] = itemId + 1;
c.bankItemsN[toBankSlot] += 1;
amount--;
}
}
resetTempItems();
resetBank();
}
k so this dude released a snippet
but the snippet is half assed and only works for a single item
if u use it back to back,
bankItemWithouthReq(955,20);
bankItemWithouthReq(560,10);
then instead of giving you 20 coins and 10 death runes
it will give u 30 death runes
the last item listed will be the item added to bank
and the sum of all item amounts will be quantity
how do you fix this?