SCAR Code:
procedure NewLogout;
begin
if (FindColorTolerance(x, y, 3985241, 746, 1, 761, 7, 5)) then
begin
MMouse(x, y, 5, 5);
GetMousePos(x, y);
begin
if (IsUpText('Logout')) then
begin
ClickMouse(x, y, true);
Wait(33 + random(25));
ReleaseMouse(x, y, true);
end;
Wait(500 + random(500));
end;
end;
begin
MMouse(632, 377, 15, 15);
GetMousePos(x, y);
begin
if (IsUpText('Ok')) then
begin
ClickMouse(x, y, true);
Wait(33 + random(25));
ReleaseMouse(x, y, true);
Wait(500 + random(500));
end;
WriteLN('Logged out player, '+Players[0].Name+'.');
end;
end;
end;