SCAR Code:
function WithdrawMod(col, row, Amount: Integer): boolean;
Var
ResInt, I, Count : Integer;
P : TPoint;
BBox: TBox;
begin
FixBank;
//FixBankTab;
Result := false;
ResInt := InvCount;
BBox := BankIndexToMSBox(BankPointToBankIndex(Point(Col, Row)));
BBox := IntToBox(BBox.x1 + 8, BBox.y1 + 8, BBox.x2 - 8, BBox.y2 - 8);
GetMousePos(P.x, P.y);
if PointInBox(P, BBox) then
BBox := IntToBox(P.x - 8, P.y - 8, P.x + 8, P.y + 8);
case Amount of
0: begin
MouseBox(BBox.X1, BBox.Y1, BBox.X2, BBox.Y2, 2);
Wait(RandomRange(75, 125));
ChooseOption('Withdraw-All');
end;
1: begin
MouseBox(BBox.X1, BBox.Y1, BBox.X2, BBox.Y2, 1);
Wait(RandomRange(50, 150));
end;
else
begin
MouseBox(BBox.X1, BBox.Y1, BBox.X2, BBox.Y2, 2);
Wait(RandomRange(75, 125));
if not ChooseOption('Withdraw-' +IntToStr(Amount)) then
begin
GetMousePos(P.x, P.y);
MouseBox(P.x - 3, P.y - 3, 3, 3, 2);
Wait(RandomRange(75, 125));
if (ChooseOption('Withdraw-X')) then
begin
Wait(RandomRange(700, 1200));
TypeSend(IntToStr(Amount));
end;
end;
end;
end;
Count := InvCount;
while (Count <= ResInt) or (I < 200) do
begin
Wait(RandomRange(15, 40));
Inc(i);
Count := InvCount;
if Count > ResInt then Break;
end;
Result := ResInt < InvCount;
end;