ikbennietniels
2014-02-07 06:17:10
Hey guys ,
as you see i get this error : Exception in Script: Operator expected at line 9.. and I'm already searching for a long time i think i am just watching over my mistake …
[PHP]program AutoLasNoches;
var
Bounds: TBox;
x, y, Colour, Tolerance: Integer; //?
begin
Colour := 14126082
Tolerance := 5; //THIS LINE GIVES THE ERROR
Bounds.X1 := 964 //voor Start Battle & continue onderaan
Bounds.Y1 := 1025
Bounds.X2 := 1104 //schuinde cordinate pakke
Bounds.Y2 := 1082 //tot hier
Bounds.X3 := 980 //attack & continue
Bounds.Y3 := 715
Bounds.X4 := 1085
Bounds.Y4 := 773 //tot hier
Bounds.X5 := 809 //rebattle
Bounds.Y5 := 384
Bounds.X6 := 1010
Bounds.Y6 := 430
repeat
if FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5)then
begin
MoveMouse(x, y, 4 , 4, true); //start battle & lage continue
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5)
MoveMouse(x, y, 4 , 4, true); //continue
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 10) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5) //continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance(x, y, 14126082, X5, Y5, X6, Y6, 5)
MoveMouse(x, y, 4, 4, true); //Battle Same User
until(false);
end;
end.
[/PHP]
Thanks alot already!
as you see i get this error : Exception in Script: Operator expected at line 9.. and I'm already searching for a long time i think i am just watching over my mistake …
[PHP]program AutoLasNoches;
var
Bounds: TBox;
x, y, Colour, Tolerance: Integer; //?
begin
Colour := 14126082
Tolerance := 5; //THIS LINE GIVES THE ERROR
Bounds.X1 := 964 //voor Start Battle & continue onderaan
Bounds.Y1 := 1025
Bounds.X2 := 1104 //schuinde cordinate pakke
Bounds.Y2 := 1082 //tot hier
Bounds.X3 := 980 //attack & continue
Bounds.Y3 := 715
Bounds.X4 := 1085
Bounds.Y4 := 773 //tot hier
Bounds.X5 := 809 //rebattle
Bounds.Y5 := 384
Bounds.X6 := 1010
Bounds.Y6 := 430
repeat
if FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5)then
begin
MoveMouse(x, y, 4 , 4, true); //start battle & lage continue
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5)
MoveMouse(x, y, 4 , 4, true); //continue
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 10) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y,14126082, X1, Y1, X2, Y2, 5) //continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance (x, y, 14126082, X3, Y3, X4, Y4, 5) //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
FindColorTolerance(x, y, 14126082, X5, Y5, X6, Y6, 5)
MoveMouse(x, y, 4, 4, true); //Battle Same User
until(false);
end;
end.
[/PHP]
Thanks alot already!