ikbennietniels
2014-02-07 11:35:25
I think this can be writen way more easy an less compicated , and i dont actually know how to put the (wait 1000) in to the " if then" and should i even use the IF then ?
[PHP]repeat
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then
MoveMouse(x, y, 4, 4 true) //start battle & lage continue
Wait(100)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then
MoveMouse(x, y, 4 , 4, true); //continue
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds3.X1, Bounds3.Y1, Bounds3.X2, Bounds3.Y2, 5)then
MoveMouse(x, y, 4, 4, true); //Battle Same User
until(false);
end. [/PHP]
[PHP]repeat
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then
MoveMouse(x, y, 4, 4 true) //start battle & lage continue
Wait(100)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then
MoveMouse(x, y, 4 , 4, true); //continue
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance (x, y,14126082, Bounds.X1, Bounds.Y1, Bounds.X2, Bounds.Y2, 5)then //continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Attack
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds2.X1, Bounds2.Y1, Bounds2.X2, Bounds2.Y2, 5)then //Continue
MoveMouse(x, y, 4 , 4, true);
Wait(1000)
if FindColorTolerance(x, y, 14126082, Bounds3.X1, Bounds3.Y1, Bounds3.X2, Bounds3.Y2, 5)then
MoveMouse(x, y, 4, 4, true); //Battle Same User
until(false);
end. [/PHP]