hey i'm started my first script willow cutter and droper. i can't fix my script error. it says:
Line 34: [Error] (20614:1): Identifier expected in script
line 34 is "procedure droplogs"
thanks for helping
PHP Code:
{.include SRL/SRL.scar}
const
willowcolor1= 4683362;
willowcolor2= 2444868;
logcolor1= 1325891;
logcolor2= 1391941;
var
x, y, i, Tries: integer;
procedure cuttwillow;
begin
if(FindObjCustom(x, y, ['hop', 'dow'], [willowcolor1, willowcolor2], 7))then
begin
//repeat - remove this line
case (Random(2)) of
0: begin
Mouse(x, y, 4, 4,false);
wait(300+random(200)); //- it can take some time for rs to show the option menu
ChooseOption('hop');
wait(5000+random(800));
end; //- every begin needs an end!
1: begin
Mouse(x, y, 4, 4, True);
wait(5000+random(800));
end;
end;
end;
procedure Droplogs;
begin
if FindObjCustom(x, y, ['log'], [logcolor1, logcolor2], 7) then
for i := 2 to 28 do
dropItem(i);
end;
begin
SetupSRL;
repeat
repeat
cuttwillow;
until(InvFull)
Droplogs;
until (False)
end.