Ok so ive added onto the script alot, making it useaable on the Coal and Iron mines to the east of Ardougne. Im trying to make it walk back and bank the ores. So far theres no problem with that.
Program Autominer;
{.include SRL/SRL.scar}
Var x,y,a : Integer;
const
ARDArrow = 3172580;
FoodStall = 8231612;
FurStall = 1311368;
Bank = 6345714;
Banker = 610652;
BowlofOrange = 1337335;
Procedure minerocks;
Begin
SetupSRL;
Findcolor(x,y,2569300,5,5,515,340)
Mouse(x,y,1,1,true)
Wait(5000)
end;
Procedure WalkToArrow;
begin
if(FindColor(x,y,ARDARROW,0,0,100,100)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
Wait(13000)
end;
Procedure WalkToFood;
[COLOR="Red"][B]*[/B][/COLOR]begin
if(FindColor(x,y,FoodStall,0,0,100,100)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
Wait(7000)
end;
Procedure Bank;
begin
if(FindColor(x,y,Bank,0,0,100,100)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
Wait(22000)
end;
Procedure ClickBanker;
begin
if(FindColor(x,y,Bank,0,0,100,100)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
Wait(22000)
end;
Procedure TalktoBanker;
begin
MoveMouse(300,450);
Wait(2000);
ClickMouse(300,450,true);
end.
Procedure TalkMoreToBanker;
begin
MoveMouse(298,392);
Wait(3000);
ClickMouse(298,392,true);
end.
Procedure DepositCoal;
begin
MoveMouse(578,228);
Wait(2000);
ClickMouse(578,228,false);
end.
Procedure DepositALLCoal;
begin
MoveMouse(578,228);
Wait(2000);
ClickMouse(578,228,true);
end.
Procedure WalkToBowl;
begin
if(FindColor(x,y,BowlOfOrange,0,0,100,100)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
Wait(22000)
end;
Procedure EastWalk;
begin
MoveMouse(712,81);
Wait(7000);
ClickMouse(712,81,true);
end.
Procedure NorthWalk;
begin
MoveMouse(680,19);
Wait(9000);
ClickMouse(680,19,true);
end.
Procedure NorthWalk2;
begin
MoveMouse(679,22);
Wait(11000);
ClickMouse(679,22,true);
end.
Procedure ToLeftMine;
begin
MoveMouse(625,43);
Wait(11000);
ClickMouse(625,43,true);
end.
But I keep getting this error when I try to run it.
Line 34: [Error] (14715:1): Identifier expected in script
* = Line 34