nero_dante
2015-03-11 13:57:28
So I have gone through mayors help to try and look for colours create a TPA and then an ATPA but I can't seem to make it run the script keeps coming back as an error. Hopefully someone can help me out :)
program TPAClicking;
{$DEFINE SMART}
{$I SRL-6/SRL.simba}
procedure ClickClimbWall();
var
x, y: integer;
TPA: TPointArray;
ATPA: T2DPointArray;
begin
findColorsSpiralTolerance(x, y, TPA, 12163981, mainScreen.getBounds(), 6, colorSetting(8, 0.10, 0.86));
if length(TPA) < 1 then
exit;
ATPA := TPA.toATPA(50, 70);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
smartImage.debugATPA(ATPA);
for i := 0 to high(ATPA) do
begin
mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
if isMouseOverText(['climb-over'], 500) then
begin
fastClick(MOUSE_LEFT);
break;
end;
end;
end;
begin
smartEnableDrawing := true;
setupSRL();
ClickClimbWall();
end.