ownedlikenoob
2010-07-08 13:53:32
Procedure StartMining;
Begin
if(FindObjTPA(x, y, Rune, 5, 2, 26,29, 3, ['Mine', 'Rocks'])) or
(FindObjTPA(x, y, Rune2, 5, 2, 26,29, 3, ['Mine', 'Rocks'])) or
(FindObjTPA(x, y, Rune3, 5, 2, 26,29, 3, ['Mine', 'Rocks'])) then
Begin
WriteLn('Found Rock, Mining');
Wait(700+random(300));
case (Random(2)) of
1: Begin
LastCount := InvCount;
wait(100+random(50));
Mouse(x,y,5,2,False);
wait(100+random(200));
ChooseOption('Mine');
Wait(1300+random(300));
Repeat
Wait(1000+random(500));
InvCount;
Until(LastCount < InvCount) or
(Not(FindObjTPA(x, y, Rune, 5, 2, 26,29, 3, ['Mine', 'Rocks'])));
end;
2: Begin
LastCount := InvCount;
Wait(200+random(200));
Mouse(x,y,2,4,True);
Wait(1300+random(300));
repeat
Wait(1000+random(400));
InvCount;
Until(LastCount < InvCount) or
(Not(FindObjTPA(x, y, Rune, 5, 2, 26,29, 3, ['Mine', 'Rocks'])));
End;
end;
end;
end;
Ok so it finds one rock, Clicks it, waits until the inventory count is +1 then it trys to click the second rock but moves the mouse to it, does not click, then continues with the rest of the script.
So pretty much it finds the first one and clicks it but the second one it finds it but doesn't click it…
Why won't it click?