Thank you, I'm gonna use this later cuz my head's aching ATM
I tried this but it just hovered some random black areas :D
procedure PickStuff;
var
Cols, Tols: array of Integer;
Hues, Sats: array of Extended;
pickTPA: TPointArray;
pickATPA: T2DPointArray;
i, x, y: integer;
begin
if not (loggedin) then
exit;
Cols := [2376307, 4843497, 10725291, 1590349];
Tols := [7, 1, 5, 2];
Hues := [0.48, 0.00, 0.24, 0.09];
Sats := [0.06, 0.00, 0.31, 0.24];
x := MSCx;
y := MSCy;
SetColorToleranceSpeed(2);
for i := 0 to High(Cols) do
begin
SetColorSpeed2Modifiers(Hues[i], Sats[i]);
if findcolorsspiraltolerance(x, y, pickTPA, Cols[i], MSX1, MSY1, MSX2, MSY2, Tols[i]) then
begin
pickATPA := SplitTPAEx(pickTPA, 5, 5);
SortATPAFromMidPoint(pickATPA, point(MSCx, MSCy));
SetLength(pickTPA, 0);
for i := 0 to High(pickATPA) do
begin
SMART_DebugATPA(true, pickATPA);
if Length(pickATPA[i]) < 10 then
Continue;
if MiddleTPAEx(pickATPA[i], x, y) then
begin
SetColorToleranceSpeed(1);
SetColorSpeed2Modifiers(0.02, 0.02);
mmouse(x, y, 3, 3);
if waituptext('ake', 300) then
begin
clickmouse2(mouse_right);
WaitOptionMulti(['icket', 'rrow', 'hread', 'oins', 'rune'], 400);
fflag(0);
end;
end;
end;
end;
end;
end;