Paradoxium
05-22-2012, 05:05 PM
Hi, I am making a script in scar, not rs related but was wondering if my 'FindReadys' func is correct :D
Thanks in advance!
program Main;
var
X,Y: Integer;
function FindReadys:Boolean;
begin
if FindColorTolerance(X, Y,16120397, 765, 208, 786, 229, 20) and FindColorTolerance( X, Y,16120397, 763, 176, 787, 202,20) then
Result:= True
end;
procedure Logintogame;
begin
ClickMouse(671,1018,true); //clicks back into client
Wait(500);
repeat
Wait(200);
Writeln('Waiting for others to be ready'); //(waits until other players are ready)
until(FindReadys = True);
MoveMouseSmooth(748,440);
ClickMouse(748,440,true);
Wait(200);
ClickMouse(748,440,true); //clicks start twice
end;
{procedure WalkOver;
begin
end;}
begin
Logintogame;
//WalkOver;
end.
Thanks in advance!
program Main;
var
X,Y: Integer;
function FindReadys:Boolean;
begin
if FindColorTolerance(X, Y,16120397, 765, 208, 786, 229, 20) and FindColorTolerance( X, Y,16120397, 763, 176, 787, 202,20) then
Result:= True
end;
procedure Logintogame;
begin
ClickMouse(671,1018,true); //clicks back into client
Wait(500);
repeat
Wait(200);
Writeln('Waiting for others to be ready'); //(waits until other players are ready)
until(FindReadys = True);
MoveMouseSmooth(748,440);
ClickMouse(748,440,true);
Wait(200);
ClickMouse(748,440,true); //clicks start twice
end;
{procedure WalkOver;
begin
end;}
begin
Logintogame;
//WalkOver;
end.