The current one:
SCAR Code:
function CloseBank: Boolean;
var
i, Timer, Points: Integer;
begin
if BankScreen then
begin
MarkTime(Timer);
repeat
Mouse(485, 41, 4, 4, True);
for i := 0 to 30 do
begin
Wait(100);
Points := CountColorTolerance(2070783, 177, 30, 337, 52, 5);
if(Points < 170)then
begin
Result := True;
Break;
end;
end;
until(Points < 170)or(TimeFromMark(Timer) > 8000)
end;
end;
I know its not a big deal or anything because it uses randomness in the clicking, but CloseBank uses coord clicking, I know the X button is in the same spot every time but I'm sure theres a different method that would be more anti-ban.
For different methods maybe a DTM, or Bitmap, or MouseBox?
Sorry if I'm totally wrong and coord clicking would be ok in this situation (I see how it could be because the square is sorta small).
MouseBox's x1, y1, x2, y2:
SCAR Code:
MouseBox(478, 34, 493, 48, 1);
For a failsafe maybe add isuptext for these as well?
Or maybe at least increase the randomness of the mouse to like 8, 8 or something.
Again, sorry if it doesn't really matter.