Code:
function TRSBankScreen.getPackSlotBox(slot: integer): TBox;
begin
if (not self.isOpen()) then
exit();
if (not inRange(slot, BACKPACK_SLOT_LOW, BACKPACK_SLOT_HIGH)) then
begin
print('bankScreen.getPackSlotBox(): Slot '+toStr(slot)+' is invalid', TDebug.WARNING);
exit(intToBox(-1, -1, -1, -1));
end;
// - 1 because the grid (array) starts at 0.
result := gridBox(slot -1, 4, 7, 35, 31, 42, 36, point(self.x + _PACK_SLOTS_OFFSET.x, self.y + _PACK_SLOTS_OFFSET.y));
end;
I dont know if this broke in the recent bank update or what, but it seems to not be able to find the slots 100% of the time anymore.
Edit.
thought i fixed it, but not yet.