SRL Archive - SRL Archives

function FindBoxEx(SwitchPlayers, Active: boolean): boolean;


pwnaz0r

2007-09-09 17:47:52

Well, this probably isn't worthy of using in SRL. Thought I would post here as a quick fix until the boxsolving is working (whenever I call findNormalRandoms, it always thinks there is a box whether there is or isnt one.


function FindBoxEx(SwitchPlayers, Active: boolean): boolean;
var
BoxMask, bx, by: integer;
begin
GameTab(4);
BoxMask := BitmapFromString(16, 12, 'z78DA3330A026700303039A81' +
'51F3879FF96E4860A884C6E0319978F594B8D98D08409EC9002B4' +
'CE1CD');
result:= FindBitMapMaskTolerance(BoxMask, bx, by, 554, 207, 727, 464, 1, 1);
if result then
begin
MMouse(bx,by,0,0);
If IsUpText('ox')then
begin
Players[CurrentPlayer].Rand:= 'Box Found';
Writeln('Box Found!');
If SwitchPlayers then
begin
NextPlayer(Active);
exit;
end;
if (UseBoxSolver) then
SolveBox
else
GambleBox;
end;
end;
FreeBitmap(BoxMask);
end;

Bobarkinator

2007-09-09 19:31:15

Why don't you call the Box Solver after you find the box?

Santa_Clause

2007-09-09 19:43:48

Ha? What do you mean Bob? He uses FindNormalRandoms and the box always results as true…

Bobarkinator

2007-09-09 20:32:54

I mean in his that after if finds the box it switches players or it does nothing. It should call the box solver.

pwnaz0r

2007-09-09 20:38:45

Box solver does not work

Bobarkinator

2007-09-09 20:40:46

Works for me?

pwnaz0r

2007-09-09 20:42:00

Have you tried it recently(since yesterday)

Bobarkinator

2007-09-09 20:51:57

Let me check last nights auto.


/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
| SRL 4 Randoms Report |
| [url]www.srl-forums.com[/url] |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
| SRL Logs : 137 |
| Trades Made : 1 |
| Fights : 1 |
| Talks : 1 |
| Old Men : 1 |
| Boxes Solved : 1 |
\~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/

Yep, it works for me

pwnaz0r

2007-09-09 22:51:18

there

XcanadamanX

2007-09-10 16:33:19

for me if it doesn't get it in the 30 seconds it has to get the answer it screws up and just keeps clicking the box in the inv.

pwnaz0r

2007-09-10 18:56:25

yeah, see, not working -.-