SRL Archive - SRL Bugs

Dumb Error


TRiLeZ

2009-07-05 11:11:53

Theres this one error that randomly thinks the character is logged out.
Can a failsafe be added into the loggedin function?
Maybe look for something on the welcome screen and look if something in game isnt there.

Richard

2009-07-05 14:52:43

Well, all I can think of is to add a LoggedOut function, like this:

function LoggedOut: Boolean;
begin
Result := GetColor(378, 244) = 13158;
end;

Then edit the LoggedIn function to take that into account:

function LoggedIn: Boolean;
var
cx, cy: Integer;
begin
Result := FindColor(cx, cy, 16777215, 439, 491, 440, 492) and not(LoggedOut);
end;