Simba Code:
rocedure MineIron;
Var
x, y, PlusOneOre, OreCounter: Integer;
Begin
PlusOneOre:= P07_InvCount +1;
//if P07_FindObjCustom(x, y, ['Mine','Rocks'], [RockColor], 1) then
If P07_FindObj(x, y, 'ine', RockColor, 1) then
Begin
WriteLn('Found Iron Rock');
GetMousePos(x, y);
Case Random (2) Of
0: Begin
MMouse(x, y, 0, 0);
ClickMouse2(False);
end;
1: Begin
MMouse(x, y, 0, 0);
ClickMouse2(True);
Wait(RandomRange(400, 1000));
P07_ChooseOptionMulti(['ine']);
End;
End;
Repeat
MarkTime(OreCounter);
Antiban;
Wait(1000);
If P07_InvCount=PlusOneOre Then
WriteLn('Collected one Ore');
Until (P07_InvCount=PlusOneOre) Or (TimeFromMark(OreCounter) > 7000)
End;
End;