Simba Code:
var
count: integer;
slot: TBox;
begin
Count := bankscreen.getPackCount();
Slot := bankscreen.getPackSlotBox(Count + 1);
repeat
Wait((700+Random(500)));
if not bankScreen.isButtonActive(BANK_BUTTON_NOTE)then
begin
//typeSend('n'); // Keybind for noting items
bankScreen.clickButton(BANK_BUTTON_NOTE);
end;
bankScreen.searchBank('raw');
wait(1000+random(500));
mouse(94,109,3,3,mouse_move); // First slot where searched item should be
Wait((3000+Random(500)));
if isMouseOverText(['aw']) then
begin
repeat
fastClick(mouse_right);
wait(1000+random(500));
chooseOption.select(['ithdraw-All']);
wait(2000+random(500));
until not isMouseOverText(['aw']);
end;
wait((3000+random(2000)));
mousebox(Slot, mouse_move);
wait((3000+random(2000)));
until (bankScreen.isItemInPackSlot(Slot)) and isMouseOverText(['aw']) and not bankScreen.isItemInPackSlot(10);
^//THIS is line 1146 highlighting (bankScreen.isItemInPackSlot(Slot))
end;
Progress Report:
Error: Expected variable of type "Int32", got "record [0]Int32; [4]Int32; [8]Int32; [12]Int32; end" at line 1146, column 41 at line 1146