SRL Archive - Test corner

FindUnSolvableRandoms


pwnaz0r

2007-10-15 13:18:16

Well, I need this for my miner script. anyways, once its done, anyone can use. Just tell me if I have left out any randoms.

EDIT: O and by the way, FindScapeRune is still in the "Credits" at the top of the AntiRandoms.scar, even though its not there.


function FindUnSolvableRandom: boolean;
var
c: integer;
begin
if not LoggedIn then exit;
for c:= 0 to 6 do
begin
case c of
0: if FindDead then
begin
result:= true;
Players[CurrentPlayer].Loc:= 'Dead';
end;
1: if FindMime then
begin
result:= true;
Players[CurrentPlayer].Rand:= 'Mime';
end;
2: if FindMaze then
begin
result:= true;
Players[CurrentPlayer].Rand:= 'Maze';
end;
3: FindTalk;//if FindScapeRune then <-----
//begin <-----
// result:= true; <----- No ScapeRune Finding?
// Players[CurrentPlayer].Rand:= 'ScapeRune';<-----
//end; <-----
4: if InBlack then
begin
result:= true;
Players[CurrentPlayer].Loc:= 'InBlack';
end;
5: if NoGametab then
begin
result:= true;
Players[CurrentPlayer].Loc:= 'No Gametab';
end;
6: FindTalk;//Optional. Some Talking are unsolvable.
end;
if result then exit;
end;
end;

ShowerThoughts

2007-10-15 13:19:51

this is already in srl?

pwnaz0r

2007-10-15 13:22:07

where?

EDIT: No its not.


// * function FindInventoryRandoms: Boolean; // * by The SRL Developers Team!... all time sexiness by Mutant
// * function FindNonInventoryRandoms: Boolean; // * by The SRL Developers Team!... all time sexiness by Mutant
// * function FindNormalRandoms: Boolean; // * by The SRL Developers Team!... all time sexiness by Mutant

ShowerThoughts

2007-10-15 13:29:26

ehm but why it logs out when it find an non solveable random?

SKy Scripter

2007-10-15 13:36:43

i think the new SRL is going to take care of all the randoms better :)

however, i think that might be awhile.

pwnaz0r

2007-10-15 13:41:08

From: SKy Scripter
i think the new SRL is going to take care of all the randoms better :)

however, i think that might be awhile.


yeah I know :D, but I need these for the miner for this version of SRL.

And don't tell me FindNormalRandoms :D, I dont want to wait 5+seconds every 10 seconds.

neG

2007-10-16 08:00:55

Using FindNonInventoryRandoms; + FindTalk; frequently and FindInventoryRandoms every 60 secs doesnt lag AND it logs out when it gets unsolveables.
Yup :)

pwnaz0r

2007-10-16 16:15:15

i have been told this by several people… this is not the point… will anyone answer my question and tell me if I missed any?

R0b0t1

2007-10-16 21:53:16

Don't think so. You might want to devise a system to make sure that you can catch any it doesn't recognize.