program PrivServCutFletchNDrop;
{.include SRL/SRL.scar}
var
b:integer;
l:integer;
const
treex= 320; //set to the trees x position
treey= 110; //set to the trees y position
knifex= 717; //knife must be in last slot
knifey= 436; //same as above
logx= 665; //do not touch
logy= 440; //do not touch
procedure fletch;
begin
if(invfull) then
begin
repeat
MoveMouse(knifex,knifey);
wait(100);
ClickMouse(knifex,knifey,true);
wait(100);
MoveMouse(logx,logy);
wait(100);
ClickMouse(logx,logy,true);
inc(l);
until(l=27)
l:=1;
end;
end;
procedure cuttree;
begin
MoveMouse(treex,treey);
wait(100);
ClickMouse(treex,treey,true);
end;
procedure dropbows;
begin
repeat
dropitem(b);
inc(b);
until(b>=27) or (invcount<=2)
b:=1;
end;
begin
repeat
cuttree;
if(invfull) then
begin
fletch;
end;
dropbows;
until(false)
end.