cadet54
2012-06-06 07:04:51
Hi there I have been working on a basic guild fisher, my first version used FindObjTPA, I want to try and use something a little more advanced to find the fishing spots, Im using FindColorsSpiralTolerance, It took a little while to get the right colours but I have them right now.
My question to you, am I going the right way about adding TPA's into the script is there a better way of finding fishing spots quicker and more reliably?
My question to you, am I going the right way about adding TPA's into the script is there a better way of finding fishing spots quicker and more reliably?
Function StartFishing: Boolean;
var
MyTPA : TPointArray;
MyPoint : TPoint;
CTS, x, y, i : Integer;
begin
x := MSCx;
y := MSCy;
CTS := GetColorToleranceSpeed;
count := 1
If Not CTS = 2 Then ColorToleranceSpeed(2);
Writeln('Searching');
FindColorsSpiralTolerance(x, y, MyTPA, 11248540, MSx1, MSy1, MSx2, MSy2, 5);
if Length(MyTPA) = 0 then FindColorsSpiralTolerance(x, y, MyTPA, 11248540, MSX1, MSY1, MSX2, MSY2, 5);
for i := 0 to High(MyTPA) do
begin
MyPoint := MyTPA[i]
MMouse (MyPoint.x, MyPoint.y, 3, 3);
if (IsUpTextMultiCustom(['age', 'Fishing', 'Spot'])) then
begin
Writeln('Spot Found');
GetMousePos(x, y);
Mouse(x, y, 0, 0, False);
ChooseOption('age');
Wait(500+random(250));
Result := True
Exit;
end;
Wait(350+random(350));
end;
end;