Ok i can not get this to find a yew tree.
What am i doing wrong?
Simba Code:
function FindYew(var x, y: Integer) :Boolean;
var
CTS, I: Integer;
TPA: TPointArray;
ATPA: Array of TPointArray;
begin
Antirandoms;
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.14, 0.043);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 3819340, MIX1, MIY1, MIX2, MIY2,6);
aTPA := TPAToATPAEx(TPA, 20, 20);
For I := 0 to High(ATPA) do
begin
MiddleTPAEx(ATPA[i], x, y);
MMouse(x, y, 2, 2);
If(IsUpTextMultiCustom(['ew','hop','own'])) then
begin
Writeln('Found Yew Tree');
Result := True;
GetMousePos(x, y);
Break;
end;
end;
end;