dont think that's even possible
i'll look around and try to find you a similar answer at least
|
can anyone send me a code for like example instead of
c.getItems().addItem(995,20000000);
like it goes in your bank and not your inventory.
---- what i mean is like you know how starters put items in your inventory on login how can u add items in there bank on login? I know it has been done before plz help!
dont think that's even possible
i'll look around and try to find you a similar answer at least
you first need to make a void in order to make a command for banking.
here
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();
}
Oh well what i ment was like not a command, you know how some servers have when you login all the items go in your bank not ur inventory thats what im trying to do.
Ya, to do that you first need a void so there it is lol. then you can change and put it to the bank instead of inven .
ok cool, but like how would i put it like instead of c.getItems().addItem(995,20000000);
it would be like c.getItems().addBank(995,20000000);
bankItemWithouthReq(itemId, amount);
no need for thanks thrs a thank button :3
oh ok haha thanks alot! i'll rep u
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |