SRL Archive - SRL Suggestions

Pillory_LockScreen; fix


NCDS

2010-09-27 19:31:11

Current:

function Pillory_LockScreen: Boolean;
begin
Result := LoggedIn and (GetColor(502, 22) = 65536);
end;
The color has been changed to '0' so:

function Pillory_LockScreen: Boolean;
begin
Result := LoggedIn and (GetColor(502, 22) = 0);
end;
Was tested and worked.


Debug from successful solve:

Compiled succesfully in 608 ms.
SRL Compiled in 16 msec
Pillory: Target: square
Pillory: Target: circle
Pillory: Target: circle
Pillory: Target: rombus
Pillory: Could not get matching key!
Successfully executed.
It say's it cold not get the matching key, however it solved it perfectly once LockScreen was fixed.
I would have fixed that as well but it exited the random before I could stop it.

One more thing, I'm not sure as Pillory_ClickCageLock is necessary anymore as the LockScreen opened up automatically for me?


If anyone else has an account in the random I would be happy to look further into these last two things.

NCDS

2010-09-28 18:50:00

Have tested this again with success.
Debug:

Compiled succesfully in 609 ms.
SRL Compiled in 15 msec
Pillory: Target: triangle
Pillory: Target: triangle
Pillory: Target: rombus
Pillory: Target: rombus
Pillory: Target: square
Pillory: Target: circle
Pillory: Target: rombus
Pillory: Could not get matching key!
Pillory: Target: rombus
Pillory: Could not get matching key!
Pillory: Target: rombus
Pillory: Could not get matching key!
Pillory: Target: rombus
Pillory: Could not get matching key!
Pillory: Target: rombus
Pillory: Could not get matching key!
Successfully executed.

I don't see why it still says 'Could not get matching key' as it works perfectly every time.

Eventually I will figure it out but as long as it is solving the random efficiently and consistently, I'm moving on to the next thing.

TRiLeZ

2010-09-28 20:13:44

From: NCDS

The color has been changed to '0' so:

function Pillory_LockScreen: Boolean;
begin
Result := LoggedIn and (GetColor(502, 22) = 0);
end;


Committed.

From: NCDS

One more thing, I'm not sure as Pillory_ClickCageLock is necessary anymore as the LockScreen opened up automatically for me?


That's there just incase the LockScreen closes.