Battousai
2015-02-25 14:20:33
Procedure chopWillows();
var
i: Integer;
TPA: TPointArray;
ATPA: T2DPointArray;
chat: String;
msc: TPoint;
Begin
If Not isLoggedIn Then
Begin
Repeat
getNewClient();
Until(isLoggedIn);
End;
antiRandoms();
minimapAngle();
msc := mainScreen.getCenterPoint();
findColorsSpiralTolerance(msc.x, msc.y, TPA, 1977638, mainScreen.getBounds(), 3, colorSetting(2, 2.20, 3.71));
If length(TPA) < 1 Then
exit;
ATPA := TPAToATPA(TPA, 90);
SortATPAFrom(ATPA, mainScreen.getCenterPoint());;
ATPA.filterBetween(0, 4);
ATPA.sortFromMidPoint(mainscreen.playerPoint);
smartImage.debugATPA(ATPA);
For i := 0 To high(ATPA) Do
begin
mouseRandom(middleTPA(ATPA[i]), MOUSE_MOVE);
If isMouseOverText(['Willow', 'illow'], 500) Then
Begin
smartImage.clear;
randomRClickWillow();
smartImage.clear;
break;
End;
End;
mouseOffClient(OFF_CLIENT_RANDOM);
Repeat
If Not isLoggedIn Then
Begin
Repeat
getNewClient();
Until(isLoggedIn);
End;
ClearDebug;
writeLn('Status: Chopping Willows');
wait(randomRange(250, 500));
Until(Not isStillChopping Or Not isLoggedIn);
End;
I can't seem to even through filtering get it to stop detecting Stumps of trees already chopped down.
ATPA := TPAToATPA(TPA, 90); , Unless I'm wrong then this line here should stop it from detecting stumps compared to tree's, Unless I am leaving something out in the above code to actually do that, Then I am completely "Stumped"