m using pi and i have issues with moving item in bank
when i try to move item and make my bank look nicely the item go around the bank
explain if i had 5 lines of item in my bank and i try to move vesta leg under the vesta top the vesta leg will be location in line 4 or 5 or somewhere in the bank
any idea how to fix this correctly?
forpeople who doesnt understand
Currently when re-organizing your bank you can switch items around until you get to around row 5 then it no longer allows it, I was wandering if there was a snippet or such that fixed this up as I don't really know what to search for?
before moving
after moving the item
heres my moveitem code in itemas
Code:
public void moveItems(int from, int to, int moveWindow) {
if (moveWindow == 3724) {
int tempI;
int tempN;
tempI = c.playerItems[from];
tempN = c.playerItemsN[from];
c.playerItems[from] = c.playerItems[to];
c.playerItemsN[from] = c.playerItemsN[to];
c.playerItems[to] = tempI;
c.playerItemsN[to] = tempN;
}
if (moveWindow == 34453) {
if (!c.itemInsert) {
if (to < 0) {
int temp = 128 - (to*-1);
to = 128 + temp;
}
}
if (from >= 0 && to >= 0 && from < Config.BANK_SIZE && to < Config.BANK_SIZE) {
if (!c.itemInsert) {
int tempI = c.bankingItems[from];
int tempN = c.bankingItemsN[from];
c.bankingItems[from] = c.bankingItems[to];
c.bankingItemsN[from] = c.bankingItemsN[to];
c.bankingItems[to] = tempI;
c.bankingItemsN[to] = tempN;
if ((from == 0 || to == 0) && c.bankingTab != 0) {
Bank.updateTabs(c);
}
}
}
}
if (moveWindow == 34453) {
Bank.updateInterface(c);
Bank.updateInventory(c);
}
if (moveWindow == 18579) {
int tempI;
int tempN;
tempI = c.playerItems[from];
tempN = c.playerItemsN[from];
c.playerItems[from] = c.playerItems[to];
c.playerItemsN[from] = c.playerItemsN[to];
c.playerItems[to] = tempI;
c.playerItemsN[to] = tempN;
////updateInventory = true;
resetItems(3214);
}
if (moveWindow == 3724) {
////updateInventory = true;
resetItems(3214);
}
}
anyone could give me the correctly code?