Synikk
2011-12-19 03:02:19
hey guys, im making a powerminer and when i begin mining the script causes it to continuously click the ore, how do i make it so that there is a 4-6 second break between each click? here is the function
Function MineIronOre:Boolean
;Var
X, Y: Integer;
Begin
//FindObjCustom(x, y, ['att', 'ack'], [123456, 345678], 5);
If FindObjCustom(x, y, ['ine', 'ocks', 'e R'], [2766942,3162219], 10) Then
Begin
StatsGuise('Found ore')
GetMousePos(x, y);
Case Random(2) Of
0: Mouse(x, y, 5, 5, True);
1: Begin
Mouse(x, y, 5, 5, False);
WaitOption('Mine', 500);
End;
End;
End;
End;