
Originally Posted by
Leech
If it doesn't find the color it will just keep adding to SafeOre until it finds it, and if you mine an ore and it can't find another one then it will just keep looping through and possibly finishing your script. I would suggest a better method of finding a rock like possibly the SRL mining rock records. But if I am wrong then I am sorry lol...
SCAR Code:
Inc(SafeOre);
if FindColorSpiralTolerance(x, y, RockColor, 0, 0, 514, 336, 10) then
begin
Status('Clicking Ore');
MMouse(x, y, 8, 8);
wait(120 +random(80));
if IsUpText('ock') then
begin
SafeOre := 0; // <--- Check mate
GetMousePos(x, y);
if random(20) = 1 then
begin
Mouse(x, y, 0, 0, false);
wait(85 +random(165));
ChooseOption('ine');
end else
Mouse(x, y, 0, 0, true);
Status('Mining Ore');
AntiRandoms;
WaitWhileMine;
end;