SRL Archive - OSR Help

VERY basic question


Cigue

2010-02-12 18:50:27

if not LoggedIn then
begin
if not RSReady then
while not RSReady do Wait(200+random(500));
end;

this is an infinite loop when I'm not logged in but RS is loaded. Why?

Wanted

2010-02-12 18:52:36

From: Cigue
if not LoggedIn then
begin
if not RSReady then
while not RSReady do Wait(200+random(500));
end;

this is an infinite loop when I'm not logged in but RS is loaded. Why?


Would be a good idea to have a time marker, are you on safe mode? Test WriteLn(BoolToStr(RSReady));

Cigue

2010-02-12 18:54:28

A time marker would be useless here because if RS isn't loaded, you don't want the script to do anything x]

senrath

2010-02-12 19:53:57

Sounds like RSReady isn't working properly for you. Lemme see if it works for me.

Edit: Yeah, it's not working properly. Try replacing it with this:
function RSReady: Boolean;
begin
Result := (LoggedIn) or (GetColor(375, 626) = 8630512);
end;

Wanted

2010-02-12 21:25:22

{.Include SRL\SRL.SCAR}

begin
SetUpSRL;
ActivateClient;
Wait(1000);
WriteLn(BoolToStr(RSReady));
end.

Returns true for me.

Make sure you are on safe mode.