BlueAchilles
2008-06-08 00:56:07
this is my first working script:) all it does is pick wheat until the Inv is full the drops it all then starts picking agian. i know is kinda point less but its good practice for me and it works. plz post comments and tips. also i was wondering if there is a faster way to drop the wheat if anybody could help me with that they would be greatly thank for it.
program AutoPicker;
{.include SRL/SRL.scar}
{.include SRL/SRL/misc/users.scar}
var
x, y, i, Tries: Integer;
procedure PickTheWheat;
begin
Tries := 0
repeat
if findobjTPA(x, y, 6334376, 7, -1, 3, 3, 5 , ['ick', 'hea']) then
begin
MouseFlag(x,y,1,1);
wait(200+random(100));
end else if not findobjTPA(x, y, 6334376, 7, -1, 3, 3, 5 , ['ick', 'hea']) then
begin
repeat
Tries := Tries + 1;
Wait(random(1000) + 1000);
until(Tries = 1);
if Tries = 1 then
begin
WriteLn('Cannot Find Wheat Trying Agian');
repeat
begin
PickTheWheat;
end;
until(false);
end;
end;
until(InvFull);
if InvFull then
for i := 1 to 28 do
begin
DropItem(i)
end;
if InvEmpty then
begin
WriteLn('InvEmpty');
begin
repeat
PickTheWheat;
until(false);
end;
end;
end;
procedure AntiRandoms;
begin
FindNormalRandoms;
end;
begin
SetupSRL;
SRLPlayerForm(true, [], [], [], []);
LoginPlayer;
PickTheWheat;
AntiRandoms;
end.