Ok.. When i run the script, and it gets to the "ExitAndLogOut" part... it runs the "ExitAndLogOut" Procedure, and then it resumes running This Procedure.
How can i get it so that when it runs the "ExitAndLogOut" Procedure it also stops the "BuyRunes" procedure so that it does not resume it as soon as the "ExitAndLogOut" procedure ends?
SCAR Code:Procedure ExitAndLogOut;Forward;
Procedure BuyRunes;
Begin
Wait(1000+random(20))
Repeat
MoveMouseSmoothEx(585,230,30,40,500,45,10)
Wait(200+random(20))
ClickMouse(585,230,true)
Wait(500+random(50))
If ((GetColor(436,565)) = 0) Then
Begin
ExitAndLogOut;
end else
MoveMouseSmoothEx(585,230,30,40,500,45,10)
Wait(100+random(20))
ClickMouse(585,230,false)
Wait(100+random(20))
ChooseOption(x,y,'uy 10')
RuneCounter := RuneCounter + 10;
WriteLn('Bought ' + IntToStr(RuneCounter) + 'Runes')
If (BodyCounter = (PlayerABTB)) Then
Begin
ExitAndLogOut;
Terminatescript;
end else
Wait(50+random(5))
Until ((GetColor(436,565)) = 0);
End;


Reply With Quote












