canofpeople
2006-04-10 21:41:26
program Woodcutter;
{.include SRL\SRl.scar}
function FindTree:Boolean;
begin
Result:=False
SleepAndMoveMouse (1000+Random(4000))
x:=251
y:=166
If(FindColorSpiralTolerance(x,y,4690048,5,5,515,337,5))or
(FindColorSpiralTolerance(x,y,3892097,5,5,515,337,5))or
(FindColorSpiralTolerance(x,y,4485522,5,5,515,337,5))or
(FindColorSpiralTolerance(x,y,4690048,5,5,515,337,5))Then
begin
MMouse (x,y,0,0)
If(Option2('Chop down'))Then
begin
Result:=True
end;
end;
end;
procedure Setup;
begin
SetupSRL;
ActivateClient;
end;
procedure ChopTree;
begin
MMouse(x,y,0,0)
If(Option2('Chop down'))Then
begin
Mouse(x,y,0,0,true)
repeat
SleepAndMoveMouse(100+Random(300))
Wait(60000)
end;
end;
{==========================Main Loop==================================}
begin
Setup;
repeat;
If(FindTree)Then
begin
ChopTree
end;
until(false)
end.
Anyone got any probs that they can see?
{.include SRL\SRl.scar}
function FindTree:Boolean;
begin
Result:=False
SleepAndMoveMouse (1000+Random(4000))
x:=251
y:=166
If(FindColorSpiralTolerance(x,y,4690048,5,5,515,337,5))or
(FindColorSpiralTolerance(x,y,3892097,5,5,515,337,5))or
(FindColorSpiralTolerance(x,y,4485522,5,5,515,337,5))or
(FindColorSpiralTolerance(x,y,4690048,5,5,515,337,5))Then
begin
MMouse (x,y,0,0)
If(Option2('Chop down'))Then
begin
Result:=True
end;
end;
end;
procedure Setup;
begin
SetupSRL;
ActivateClient;
end;
procedure ChopTree;
begin
MMouse(x,y,0,0)
If(Option2('Chop down'))Then
begin
Mouse(x,y,0,0,true)
repeat
SleepAndMoveMouse(100+Random(300))
Wait(60000)
end;
end;
{==========================Main Loop==================================}
begin
Setup;
repeat;
If(FindTree)Then
begin
ChopTree
end;
until(false)
end.
Anyone got any probs that they can see?