Cymru
Apprentice
Line 18: [Error] (15046:15): Unknown identifier 'x' in script C:\Program Files\SCAR 3.12\Scripts\Tree Cutter.scar
program TreeCutter;
{.include SRL/SRL.scar}
procedure DoAntiRandoms;
begin
FindTalk;
FindNormalRandoms;
if (FindFight = true) then
begin
RunAwayDirection('N');
Wait(10000 + random(2000));
RunBack;
end;
end;
procedure RepeatClicking;
begin
SetupSRL;
repeat
if (FindColor(x, y, 6922137, 240, 240, 280, 280)) then
MMouse(x,y,0,0);
wait(100+random(50));
Mouse(x,y,0,0,true);
wait(500+random(250));
DoAntiRandoms;
until(InvFull);
end;
procedure Drop;
begin
DropTo(17,28);
end;
begin
repeat
RepeatClicking;
Drop;
until(false);
end.
Can someone tell me what the problem is? I'll be on tomorrow to check for replies. Thanks in advance.
program TreeCutter;
{.include SRL/SRL.scar}
procedure DoAntiRandoms;
begin
FindTalk;
FindNormalRandoms;
if (FindFight = true) then
begin
RunAwayDirection('N');
Wait(10000 + random(2000));
RunBack;
end;
end;
procedure RepeatClicking;
begin
SetupSRL;
repeat
if (FindColor(x, y, 6922137, 240, 240, 280, 280)) then
MMouse(x,y,0,0);
wait(100+random(50));
Mouse(x,y,0,0,true);
wait(500+random(250));
DoAntiRandoms;
until(InvFull);
end;
procedure Drop;
begin
DropTo(17,28);
end;
begin
repeat
RepeatClicking;
Drop;
until(false);
end.
Can someone tell me what the problem is? I'll be on tomorrow to check for replies. Thanks in advance.


