Runningun01
2007-05-20 13:41:28
Hi. This Is My First Woodcutting Script. And I'd Be More Then Happy To Listen To Any Feedback.
[x]Basic AntiRandoms
[x]Progress Report
[x]Failsafes.
[x]Basic AntiRandoms
[x]Progress Report
[x]Failsafes.
Program PowerChopper;
{.include SRL/SRL.scar}
Var
Clicks,Loads: Integer;
Const
Tree = 4025476; {Setup This Constant With The Color Of Your Tree}
procedure AntiRandoms;
Begin
FindTalk;
FindNormalRandoms;
if(FindFight=True) then
Begin
RunAwayDirection('E');
Wait(10000+random(3000));
RunBack;
End;
procedure Cut;
Begin
SetupSRL;
Repeat
if(FindColor(xx,yy,Tree,3,3,532,-140)) then
MMouse(x,y,0,0);
Wait(200+random(100));
Mouse(x,y,0,0,True);
Wait(200+random(100));
AntiRandoms;
Clicks:=Clicks+1;
Until(InvFull);
End;
Procedure Drop;
Begin
DropAll;
Loads:=Loads+1
End;
procedure ProgressReport;
begin
ClearDebug;
Writeln('Progress Report');
Writeln('Did' + IntToStr(Loads) +' Loads');
Writeln('And Did' + IntToStr(Clicks) +' Clicks');
end;
Begin
SetupSRL;
Repeat
if(not(LoggedIn)) then
Exit;
End Else
RepeatClicking;
Drop;
ProgressReport;
until(false);
end.