E
elan
Guest
Hey.
I'm just a beginner in making SCAR scripts. But i tried to make a script.
what it basically does now is that it looks for a colour on the Conquer Online screen and then clicks it. It works. But if there is no monster in the area, it just does nothing and i have to run the script again.
What i want now is that it goes into a loop or something that it executes this script 1000 times. I also want this script to make me move somwhere else if it didnt find the color
like: If findcolor blalbala
then
click on it
else
move to a random place on the screen and search again.
Could you please help me?
I'm just a beginner in making SCAR scripts. But i tried to make a script.
Code:
program CombineExample1;
var
x,y: Integer;
const
MonsterColor1 = 2968917;
MonsterColor2 = 5466738;
MonsterColor3 = 8031148;
begin
if(FindColor(x,y,MonsterColor1,0,0,800,600))
or(FindColor(x,y,MonsterColor2,0,0,800,600))
or(FindColor(x,y,MonsterColor3,0,0,800,600))
then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
end;
end.
what it basically does now is that it looks for a colour on the Conquer Online screen and then clicks it. It works. But if there is no monster in the area, it just does nothing and i have to run the script again.
What i want now is that it goes into a loop or something that it executes this script 1000 times. I also want this script to make me move somwhere else if it didnt find the color
like: If findcolor blalbala
then
click on it
else
move to a random place on the screen and search again.
Could you please help me?


