wantonman
04-17-2012, 04:33 AM
Hello can some one revise this with a little of their expertise? show me some techniques for learning and also help me understand things a bit more better...
i guess nobdys perfect here is what im on
program wheat_picker;
{$I SRL\SRL.SIMBA }
function find_wheat: tpoint;
var
cts,x,y,z,w,h,i:integer;
point_:tpoint;
wheat_tpa:tpointarray;
wheat_2dtpa:t2dpointarray;
begin
GetClientDimensions ( W , H ) ;
CTS := GetColorToleranceSpeed ;
ColorToleranceSpeed ( 2 ) ;
SetColorspeed2Modifiers ( 0.21 , 0.80 ) ;
FindColorsSpiralTolerance ( x , y , wheat_TPA , 5804686 , 0 , 0 , 515 , 336 , 7 ) ;
SetColorspeed2Modifiers( 0.2 , 0.2 ) ;
ColorToleranceSpeed ( CTS ) ;
if length(wheat_tpa)<1 then
exit else
begin
TPAtoATPAExWrap(wheat_TPA,3,6,wheat_2dtpa);
for i:=0 to high(wheat_2dtpa) do
begin
MiddleTPAEx(wheat_2dtpa[i],point_.x,point_.y);
end;
result:= point_;
end;
end;
function my_funk: boolean;
var
x,y,c,t,t2:integer;
begin
if not IsUpTextMultiCustom(['ick','hea']) then
exit else
begin
ClickMouse2(1);
C := InvCount;
MarkTime(T);
repeat
//kjshflkajh
until(invcount>C) or (TimeFromMark(T)>8000+Random(450));
result:=true;
end;
end;
procedure pick_wheat;
var
x,y,z:integer;
begin
MMouse(find_wheat.x,find_wheat.y,5,5);
if IsUpTextMultiCustom(['ick','hea']) then
my_funk
else
pick_wheat;
end;
begin
SetupSRL;
repeat
pick_wheat;
until false;
end.
i guess nobdys perfect here is what im on
program wheat_picker;
{$I SRL\SRL.SIMBA }
function find_wheat: tpoint;
var
cts,x,y,z,w,h,i:integer;
point_:tpoint;
wheat_tpa:tpointarray;
wheat_2dtpa:t2dpointarray;
begin
GetClientDimensions ( W , H ) ;
CTS := GetColorToleranceSpeed ;
ColorToleranceSpeed ( 2 ) ;
SetColorspeed2Modifiers ( 0.21 , 0.80 ) ;
FindColorsSpiralTolerance ( x , y , wheat_TPA , 5804686 , 0 , 0 , 515 , 336 , 7 ) ;
SetColorspeed2Modifiers( 0.2 , 0.2 ) ;
ColorToleranceSpeed ( CTS ) ;
if length(wheat_tpa)<1 then
exit else
begin
TPAtoATPAExWrap(wheat_TPA,3,6,wheat_2dtpa);
for i:=0 to high(wheat_2dtpa) do
begin
MiddleTPAEx(wheat_2dtpa[i],point_.x,point_.y);
end;
result:= point_;
end;
end;
function my_funk: boolean;
var
x,y,c,t,t2:integer;
begin
if not IsUpTextMultiCustom(['ick','hea']) then
exit else
begin
ClickMouse2(1);
C := InvCount;
MarkTime(T);
repeat
//kjshflkajh
until(invcount>C) or (TimeFromMark(T)>8000+Random(450));
result:=true;
end;
end;
procedure pick_wheat;
var
x,y,z:integer;
begin
MMouse(find_wheat.x,find_wheat.y,5,5);
if IsUpTextMultiCustom(['ick','hea']) then
my_funk
else
pick_wheat;
end;
begin
SetupSRL;
repeat
pick_wheat;
until false;
end.