i recently took the beginners tutorial on how to make a script. i have made a few procedures (like loggin, and mining) but i cant seem to fit them all together. heres a section of the script, if doesnt play the 'mine' procedure. can someone plz fix up the script so it plays both procedures, thanks.
program PowerMiner;
var
x,y: Integer;
const
IronColor= 5263446;// Set the color of the Iron
procedure FindIron;
begin
Wait(100+random(200));
if(FindColorSpiral(x,y,IronColor,0,0,600,600)) then
begin
Writeln('Iron Found');
end else
Writeln('Did not find Iron');
end;
procedure Mine;
begin
if(FindColor(x,y,IronColor,0,0,100,100)) then
begin
MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
Wait(100+random(10));
ClickMouse(x,y,true);
end;
end;
begin//Loop
FindIron;
Mine;
Mine;
Mine;
end.


Reply With Quote

