Help with making it more efficiency.
So in my mining script. I have a little problem where the script sees the coal rock but when it click on it at the edge of the rock, it didn't register. This cause my script to keep clicking on that rock, making it not efficient. So I had added a safe fail like so below.
Is there another way to make it works better when it click on the rock and it didn't register then it clicks on another rock?
http://i60.tinypic.com/ruqznk.png
Simba Code:
Procedure MiningSkill;
begin
Case Lowercase(Mining) of
'1' :
Begin
repeat
repeat
CheckEverything;
existinguser;
if not ores then begin turnscreen; end;
Failed := Failed + 1;
until (fullinventoryOres) or (Failed >=20);
Failed:=0;
if fullinventoryOres then begin bankingtheores; end;
cleardebug;
repeat
Failed:=Failed+1; until (failed>=15);
if failed>=15 then begin (turnscreen); end;
Failed:=0;
until(false);
End;end;end;