ownedlikenoob
2010-07-07 22:08:05
if(FindObjCustom(X, Y, ['Mine','ne Ro','e Roc','Rocks'], [Rune,Rune2,Rune3], 3)) then
case (Random(2)) of
1: Begin
WriteLn('Found Rock, Mining');
I:=0
Mouse(x,y,5,2,False);
wait(100+random(200));
ChooseOption('Mine');
Repeat
Wait(300+random(200));
Until(Not(FindObjCustom(X, Y, ['Mine','ne Ro','e Roc','Rocks'], [Rune,Rune2,Rune3], 3)));
end;
Ok, So basically it finds the color, Clicks it then it waits 300 - 500 miliseconds until the color of the rock is gone, (meaning it has been mined.) The only thing is, that there are two rocks there, and if they are both there it clicks on one and waits untill it is gone and then it ends up just waiting forever because it still sees the color of the second rock…
I'm trying to think of a way to fix this, But i'm drawing a blank right now… Any ideas?