Camaro'
2008-11-04 18:11:36
Function ChopAnyTree:Boolean;
var
TPA:TpointArray;
TpatoTpa: T2DPointArray;
z,x,y,i,fail:integer;
utbool,tbool:boolean;
begin
if (not(loggedin)) then exit;
utbool:=false;
marktime(fail);
colortolerancespeed(2);
SetColorspeed2Modifiers(0.1, 1.4);
Case WhatTree of
'willow':FindColorsTolerance(TPA, randomwillowcolor, 135,75,473,307,3);
'oak':begin
SetColorspeed2Modifiers(0.1, 1.4);
FindColorsTolerance(TPA, 4819838, 135,75,473,307,3);
end;
'tree':begin
FindColorsTolerance(TPA, 4819838, 135,75,473,307,3);
SetColorspeed2Modifiers(0.1, 1.4);
end;
end;
ColorToleranceSpeed(1);
SetColorspeed2Modifiers(0.2, 0.2);
TPAtoTPA := TPAtoATPAEx(TPA, 15, 15);
z:=high(tpatotpa);
For I:= 0 to z do
MiddleTPAEx(TpaToTPA[i], x, y);
if inRange(x,msx1,msx2) then
if inRange(y,msy1,msy2) then
begin
MMouse(x,y,5,5);
Case WhatTree Of
'willow': begin
if isUpTextMultiCustom(['ill','illow']) then
end;
'oak': begin
if isUpText('ak') then
end;
'tree': begin
if isUpTextMultiCustom(['re','ee']) then
end;
end;
begin
//c2 := Getcolor(x,y);
//checkent;
UTbool:=true;
result:=true;
end;
If not UTBOOL Then
begin
exit;
end;
wait(50+random(50));
If UTBool then
begin
mouse(x,y,0,0, false);
writeln('clicked');
wait(30+random(20));
Case WhatTree of
'oak':begin
if chooseoption('ak') then
TBool:=true;
end;
'tree':begin
if chooseoption('ree') then
Tbool:=true;
end;
'willow':begin
if chooseoption('illow') then
Tbool:=true;
end;
end;
If not TBool then exit;
If UTBool then
begin
writeln('Took '++IntToStr(TimeFromMark(fail))+' Ms to find the tree');
randoms;
///checkent;
axebroken;
theantiban;
result:=true;
wait(7130+random(2120));
end;
end;
end;
end;
There is my TPA, it finds the TPA Fine, but lets say im searching for oaks. It will keep right clicking a regular tree thinking its an oak. Same if im searching for trees it will keep right clicking an oak.
Example:
Searching for Oak. It finds a regular tree by mistake instead of an oak, but it keeps right clicking it hoping the choose option will change =[. If it happens to find an oak before it finds the tree. IT runs very well.
Can anyone help me on this? Maybe try and get it to move the mouse to a different spot. I have no idea, i have been working on this for a while.