beefman
2015-04-26 11:10:11
Hi guys,
i'm creating my very first fishing bot. How would i find the fishing spot?
I've tried using this:
but it can't pick out the colours very well due to the water having similar colours.
I'm guessing you would do something similar to this:
I would be greatful if someone could point me in the right direction.
Thanks
i'm creating my very first fishing bot. How would i find the fishing spot?
I've tried using this:
mainscreen.findObject(x, y, color, tolerance, mouseOverText, mouseAction);
but it can't pick out the colours very well due to the water having similar colours.
I'm guessing you would do something similar to this:
// Scenario 1
procedure HandleDoor()
var
x,y : Integer;
TPA : TPointArray;
ATPA : T2DPointArray;
begin
findColorsSpiralTolerance(x, y, TPA, 3230561, mainScreen.getBounds(), 6, colorSetting(2, 0.12, 0.91));
if (Length(TPA) < 1) then
begin
Exit;
end;
// The door is about that size
ATPA := TPA.toATPA(20, 40);
ATPA.sortFromMidPoint(Mainscreen.playerPoint); // Sort found colors
SmartImage.debugATPA(ATPA);
end;
I would be greatful if someone could point me in the right direction.
Thanks