I have written a script to detect if a bank is nearby, if so it is clicked on. Here is the code I am using to detect and click on the banking symbol. If the bank can not be found the script is run again and again until it finds the symbol (and see's the red flag), at which point it exits the loop. However the problem is: THE LOOP NEVER EXITS!! ahhh! I thought a simple boolean would fix the matter but it has not. I fear this an extremely nooby post but please, if anyone's out there, please help!
SCAR Code:SymbolAccuracy := 0.01;
repeat
if (FindSymbol(x, y, 'bank')) then
begin
Mouse(x+random(13), y, 0, 0, True);
if (FlagPresent) then
begin
Foundthebank:=true;
Writeln('Found The Bank!');
end;
end else
writeln('Could Not Find the Bank');
Foundthebank:=false;
until(Foundthebank);


Reply With Quote



