VastlySuperior
2012-09-02 02:53:00
I have a problem I would like to sort out. I do`nt know why it is doing this as it seems to me that it should not do this with all the checks I do have in place.
I find the ore and click on it then it then I Assign a value of true to a Variable now it must go into a loop and wait until certain conditions are met before moving on, but it just continues on regardless of the checks that is in place. can anyone take a look at this and tell me why it is behaving like it does. And what can I do to remedy this situation as it is busy mining a ore and then before it finish it moves on to the next ore or clicks on the same ore once more.
I would appreciate some help with this. Thanks
Here is the code:
I find the ore and click on it then it then I Assign a value of true to a Variable now it must go into a loop and wait until certain conditions are met before moving on, but it just continues on regardless of the checks that is in place. can anyone take a look at this and tell me why it is behaving like it does. And what can I do to remedy this situation as it is busy mining a ore and then before it finish it moves on to the next ore or clicks on the same ore once more.
I would appreciate some help with this. Thanks
Here is the code:
function IsMining: Boolean; // True If Mining Animation
var // Credit To Flight
PBox:TBox;
Begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShIft(PBox, 250, 500) > 180);
var
x, y, RockCounter, FailSafeTime, TempTime, Counter: integer;
Mined:Boolean;
Player:Tpoint;
VBox:TBox;
Direction:TRadial;
// Writeln('The Beginning Of the Mining Sequence');
Repeat
Disguise('Starting Mining For ' + Desc);
If FindNormalRandoms then
Begin
If Not LoggedIn Then
Begin
Writeln('Found unsolvable random');
NextPlayer(False);
End;
End;
SelectRock(OreChoice);
While IsMoving Do
Begin
Wait(10);
End;
// Writeln('Start Looking For The Ore');
If (FindOre(x, y)) then
Begin
If not(Mined) Then
Begin
ClickMouse2(Mouse_Left);
MarkTime(RockCounter);
MarkTime(FailSafeTime);
Mined := True;
Ore := Point(x, y);
Player := Point(MSCX, MSCY);
End;
End;
Antiban;
Repeat
If FindNormalRandoms then
Begin
If Not LoggedIn Then
Begin
Writeln('Found unsolvable random');
NextPlayer(False);
End;
End;
Until not(Mined) or (FindBlackChatMessage('nage')) or (TimeFromMark(RockCounter) > (3700 + Random(300))) and (not(IsMining));
Mined := False;
Until (InvFull);