Simba Code:
function TRSBankScreen.withdraw(slot, amount: integer; mouseOverText: TStringArray; asNote: boolean = false; toFamiliar: boolean = false): boolean; override;
var
b: TBox;
begin
result := false;
b := self.getBankSlotBox(slot);
if asNote then
begin
if not self.isButtonActive(BANK_BUTTON_NOTE) then
begin
self.clickButton(BANK_BUTTON_NOTE);
wait(125 + random(50));
end;
end else
begin
if self.isButtonActive(BANK_BUTTON_NOTE) then
begin
self.clickButton(BANK_BUTTON_NOTE);
wait(125 + random(50));
end;
end;
if (b.x1 = -1) then // invaild slot
begin
print('bankscreen.withdraw(): Invalid slot '+toStr(slot), TDebug.WARNING);
exit;
end;
if (not isItemIn(b)) then // no item in the slot?
begin
print('bankscreen.withdraw(): No item in slot '+toStr(slot), TDebug.WARNING);
exit;
end;
mouseBox(b, MOUSE_MOVE);
if (length(mouseOverText[0]) > 0) then
if (not isMouseOverText(mouseOverText, 250, true)) then
begin
print('bankscreen.withdraw(): Incorrect Mouse-over text, result = false', TDebug.SUB);
exit(false);
end;
if (amount = 1) then // single item? let's just click it
begin
fastClick(MOUSE_LEFT);
wait(400 + random(300));
print('bankscreen.withdraw(): result = true', TDebug.SUB);
exit(true);
end else
fastClick(MOUSE_RIGHT); // more than 1 item? open choose options
if (chooseOption.isOpen(2000)) then
begin
case (amount) of
WITHDRAW_AMOUNT_ALL: result := chooseOption.select(['Withdraw-All', '-All']);
WITHDRAW_AMOUNT_ALL_BUT_ONE: result := chooseOption.select(['Withdraw-All but one', 'All but one']);
// check if the number is already availble, else let's withdraw X it
else begin
if toFamiliar then
begin
if (chooseOption.select(['Withdraw-X to BoB', 'to', 'BoB'])) then
begin
result := chatBox.enterAmount(amount, random(5000, 6000));
print('bankscreen.withdraw(): result = ' + boolToStr(result), TDebug.SUB);
exit();
end else
begin
result := false;
chooseOption.close();
print('bankscreen.withdraw(): Withdraw-X to BoB option not present. result = ' + boolToStr(result), TDebug.ERROR);
exit();
end;
end;
if (not chooseOption.optionsExist(['Withdraw-' + intToStr(amount), '-' + intToStr(amount), toStr(amount)])) then
begin
if (chooseOption.select(['Withdraw-X', '-X'])) then
result := chatBox.enterAmount(amount, random(5000, 6000));
end else
result := chooseOption.select(['Withdraw-' + intToStr(amount), '-' + intToStr(amount), toStr(amount)]);
end;
end;
end else
print('bankscreen.withdraw(): chooseOption menu failed to open', TDebug.SUB);
print('bankscreen.withdraw(): result = ' + boolToStr(result), TDebug.SUB);
end;
Override it.
(or if youre using a DTM or bitmap or something, just override that func (in your script))