trips
2015-05-22 22:58:57
Hello,
I am trying to make something that keeps moving my camera around until it finds a certain object. However I can't get it to do so.
This is what I have ATM.
I am trying to make something that keeps moving my camera around until it finds a certain object. However I can't get it to do so.
This is what I have ATM.
begin
repeat
minimap.setAngle(Random(360));
wait(randomRange(2000, 3000 ));
until findColorsSpiralTolerance(x, y, TPA, 3033169, mainScreen.getBounds(), 6, colorSetting(2, 0.11, 0.97));
if length(TPA) < 1 then
exit;
ATPA := TPA.toATPA(30, 30);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
smartImage.debugATPA(ATPA);
for i := 0 to high(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['up Ladder'], 500) then
begin
fastClick(MOUSE_LEFT);
break;
end;
end;