so I tried to make a script that clicks a color (the color code is 255) i tried but the script doesn't work so can anyone help?
here is what i made
Begin
MonsterColor = 255; //
var
x,y:integer;
Begin
activateclient;
Begin
if findcolor(x,y,MonsterColor,0,0,640,480) then
Begin
HoldMouse(x,y,true);
wait(100+random(50));
ReleaseMouse(x,y,True);
wait(5000+random(2000));
End;
if not (findcolor(x,y,MonsterColor,0,0,640,480)) then
Writeln('Couldnot find color');
terminatescript;
End;
End.
here is what i made
Begin
MonsterColor = 255; //
var
x,y:integer;
Begin
activateclient;
Begin
if findcolor(x,y,MonsterColor,0,0,640,480) then
Begin
HoldMouse(x,y,true);
wait(100+random(50));
ReleaseMouse(x,y,True);
wait(5000+random(2000));
End;
if not (findcolor(x,y,MonsterColor,0,0,640,480)) then
Writeln('Couldnot find color');
terminatescript;
End;
End.

