Hello, i have written the function of the powerminer that i am making that clicks on the ores to mine them, but for some reason i dont understand if it has clicked all three of the veins in range before the first one has respawned again, it just sits there. Would be grateful if someone could help me correct this (:
Simba Code:Function MineIronOre:Boolean
;Var
X, Y, PlusOne: Integer;
Begin
PlusOne:=InvCount+1
If FindObjCustom(x, y, ['ine', 'ocks', 'e R'], [2898786, 3557497], 10) Then
Begin
StatsGuise('Found ore')
GetMousePos(x, y);
Mouse(x, y, 5, 5, True);
End;
Repeat
Until InvCount=PlusOne
If InvCount=PlusOne Then
Writeln('Successfully Mined')
End;


Reply With Quote







