
Originally Posted by
YoHoJo
lolololz two new guys making things based on my tutorials, love it!
@Applezz dodes it ever write Find Ore in the debug box?
Also make sure your colors are good and toelrance is high enough!
If I just have the first part of the script, it works fine and the mouse moves to the rock, clicks:
This will work fine:
Simba Code:
procedure MineOre;
var x, y, OreCount, i: integer;
begin
if (FindObjCustom(x, y, ['ine', 'ocks'], [16448507, 16448250], 3)) then
begin;
Writeln('Found Ore');
Mouse(x, y, 3, 3, true);
Wait(100 + Random(50));
end;
end;
But this won't
Simba Code:
procedure MineOre;
var x, y, OreCount, i: integer;
begin
OreCount:= InvCount + 1;
if (FindObjCustom(x, y, ['ine', 'ocks'], [16448250, 987409], 3)) then
begin;
Writeln('Found Ore');
Mouse(x, y, 3, 3, true);
Wait(100 + Random(50));
end;
So it appears to be this line which causes the problem: