Claymore
2008-10-27 23:11:52
function FindSpot(var x, y: Integer): Boolean;
var
ResultTPA, TPA: TPointArray;
ATPA: T2DPointArray;
cts, i, j: Integer;
begin
Result := False;
cts := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(2.11, 0.46);
FindColorsSpiralTolerance(MSCX, MSCY, TPA, 10397596, MSX1, MSY1, MSX2, MSY2, 14);
ATPA := TPAToATPA(TPA, 25);
SetLength(TPA, 0);
SetLength(ResultTPA, Length(ATPA));
for i := 0 to High(ATPA) do
begin
if Length(ATPA[i]) < 6 then
Continue;
ResultTPA[i] := MiddleTPA(ATPA[i]);
end;
SetLength(ATPA, 0);
for j := 0 to High(ResultTPA) do
begin
MMouse(ResultTPA[j].x, ResultTPA[j].y, 0, 0);
if TextWait(500, ['Cage', 'Cag', 'age']) then
begin
GetMousePos(x, y);
Mouse(x, y, 0, 0, True);
Result := True;
Flag;
Break;
end;
Wait(175 + Random(50));
end;
ColorToleranceSpeed(cts);
SetColorSpeed2Modifiers(0.2, 0.2);
end;
It sometimes won't find the fishing spot, it's annoying! Is there a way i can fix this. Thanks guys, i am making a NON-Reflection Catherby Fisher, I see people begging for this script and not to mention we have no fishing scripts based on Lobsters (Well, non-Reflection ones.)