EtherFreak
2010-07-04 20:17:19
this is a simple script I have created to mine a single load of ore. I came up with it because I do not wish to have a fully automated script. it currently mines from two rocks, and terminates when done. it is crude in the fact that it uses (x,y) cordenets of the rocks, and can not tell if the rock has any ore in it (i would like to improve this so it can tell). I tried using the rock color, but had issues due to changing rock color. I also tried adding tolorences to it, but then I was clicking incorrectly, and not natural. it has random times in it to reduce a chance of ban. I basicaly wanted something so I could be watching tv, and not have to look down every two seconds to click a rock in mining. it could also be used for woodcutting, or addapted for other uses. I figured it was a good place to start, and I would love to get it so I can tell if a rock has ore in it or not.
{setup}
{find the position of the two rocks you want to mine}
{input under constant the x and y cordonets of each rock}
{the first and second time is the wait time between clicking the next rock}
{there is no anti random, and you will only get one load of ore (28 ore)}
{once you have a load of ore from the two rocks, the script will terminate}
program New;
{.Include SRL/SRL.Scar}
Const
pos1x= 270 ;
pos1y=145 ;
pos2x=225 ;
pos2y=165 ;
rtime1=6000 ;
rtime2=6000 ;
Var
xc, yc: Integer;
counter: Integer;
begin
counter:=0;
GetMousePos(xc,yc);
repeat
counter:=counter+1;
mousespeed:=(5+random(10));
MMouse(pos1x,pos1y,4,3);
Wait(random(1000)+rtime1);
GetMousePos(xc,yc);
clickmouse(xc,yc,true);
wait(random(1000)+1000);
MMouse(pos2x,pos2y,4,3);
Wait(random(500)+rtime2);
GetMousePos(xc,yc);
clickmouse(xc,yc,true);
wait(random(1000)+1000);
until(counter>=14)
end.