SCAR Code:
program Mine;
{.include SRL/SRL.scar}
var
x,y: Integer;
const
RockColour= 2569300; //iron
procedure FindRock;
begin
if(FindColor(x,y,RockColour,0,0,600,600)) then
begin
Writeln('Found Rock');
end else
Writeln('Didnt find rock');
end;
procedure MoveMouseToRock;
begin
MMouse(x,y,2,2);
Wait(50)+random(100));
Mouse(x,y,2,2,true);
end;
procedure Drop;
begin
DropTo(2,28);
end;
begin
SetupSRL;
FindRock;
MoveMouseToRock;
Drop;
until(false)
end.
[H]Line 5: [Error] (17666:1): Duplicate identifier 'x' in script D:\Documents and Settings\Harry.049652820287\Desktop\ma miner.scar[/H]
This is my first script that isnt completely made by a TUT, please show me what is wrong