Hey, I was using 'Mat's Powercutting Tutorial" and when I go to Compile, I get this.
Line 15: [Error] (14710:1): Identifier expected in script
Look at my Line 15....
Line15--|var
Line16--|x,y:integer;
Strange?
--------------
Here's my full script
SCAR Code:
program PowerCutter;
{.include srl/srl.scar}
const
TreeColor = 3894371; //colour pick the tree that you want to powerwhack(HAS to be willow)
procedure DoAntiRandoms;
begin
FindTalk;
FindNormalRandoms;
if (FindFight = true) then
begin
RunAwayDirection('S'); //what direction do you want your character to run? (N,E,S,W)
Wait(10000 + random(2500));
RunBack;
end;
var
x,y:integer;
procedure Cut;
var C:integer;
begin
if(FindObj(x,y,'ree',TreeColor,15))then
begin
Mouse(x,y,5,5,True);
Writeln('Walking to Tree');
Flag;
Writeln('Cutting Tree');
C:= InvCount;
repeat
wait(250);
if not(LoggedIn)then
Exit;
until(InvCount > C);
end;
procedure Drop;
var Logs:integer;
begin
Logs := DTMFromString('78DA637466626078CA80023C1C25C1342394C' +
'F680354F391010D30A2AA0900AA794D408D3750CD4D026A2C806A' +
'EE1250634C845DF6403577F0AB0100142608C7');
if(FindDTM(Logs,x,y,MIX1,MIY1,MIX2,MIY2))then
begin
Mouse(x,y,5,5,False);
if(ClickOption('rop',2))then
begin
wait(1000+random(650));
Writeln('Dropped');
end else
begin
ArrangeInv;
end;
end else
begin
ArrangeInv;
end;
begin
SetupSRL;
repeat
repeat
if not(LoggedIn)then
Exit;
Cut;
until(InvFull)
repeat
if not(LoggedIn)then
Exit;
Drop;
until(FindDTM(Logs,x,y,MIX1,MIY1,MIX2,MIY2));
until(False)
end.
' _________ ___. .__
' / _____/__ _\_ |__ _____ ___________ ___________ | |
' \_____ \| | \ __ \ / \_/ __ \_ __ \/ ___/\__ \ | |
' / \ | / \_\ \ Y Y \ ___/| | \/\___ \ / __ \| |__
' /_______ /____/|___ /__|_| /\___ >__| /____ >(____ /____/
' \/ \/ \/ \/ \/ \/
I still have comments, etc, to add....but the content of the script, I just can't get it working, can someone help me?