SCAR Code:
function Totrees: Boolean;
begin
If not loggedin then
exit;
begin
If FindSymbol(x, y,'fishing spot') then
Begin
Mouse(x, y, 5, 5, True);
Wait(100);
FFlag(0);
Wait(1000);
if FindObjCustom(cx, cy, ['Willow', 'llow'], [TreeColor1, TreeColor2], 3) then
begin
Result := True;
Attrees := True;
end else Result := False;
End;
end;
end;
That is telling it to walk to the trees, my question is how can i get it into the main loop. I go like this
SCAR Code:
begin
declareplayers;
totrees;
And it says identifier expected at where i put it in the main loop It compiles if i dont put it in the main loop. If it cant be done then can you change it in to a procedure that compiles and work.. Because i get errors..