Geo
2011-06-06 21:13:10
Not sure if anyone else if having a problem with the logout function missing the button sometimes. if you are change Line 355 in Login.scar to the bottom code box.
{*******************************************************************************
function Logout: Boolean;
By: Starblaster100, Raymond, IceFire908, & Tarajunky
Description: Logs you all the way out from ingame.
*******************************************************************************}
function Logout: Boolean;
var
x, y, c, i: Integer;
begin
Result := (not (LoggedIn));
if (Result) then
Exit;
if (SRL_Procs[srl_OnLogOut] <> nil) then
SRL_Procs[srl_OnLogOut]();
if (not (GameTab(tab_LogOut))) then
Exit;
Wait(200 + Random(100));
while (LoggedIn) and (c < 10) do
begin
Inc(c);
if(FindText(x, y, 'ogin', UpChars, MIX1, MIY1, MIX2, MIY2))then
begin
MouseBox(570, 393, 712, 417, 1); // <--
for i := 0 to 10 do
begin
Wait(1000);
if (not (LoggedIn)) then
begin
Result := True;
Exit;
end;
end;
end else
if(FindText(x, y, 'lick', UpChars, MIX1, MIY1, MIX2, MIY2))then
begin
MouseBox(579, 367, 699, 386, 1);
for i := 0 to 10 do
begin
Wait(1000);
if not(LoggedIn) then
begin
Result := True;
Exit;
end;
end;
end
end;
end;
changed MouseBox(573, 403, 702, 429, 1);to MouseBox(570, 393, 712, 417, 1);
