I'm looking for a stable alternative to ChooseOption and derivates. any ideas?
I'm looking for a stable alternative to ChooseOption and derivates. any ideas?
I don't check this place often, sorry.
Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path
I used ChooseOption('') all the time (and recently) and its been working 100% for me, whats going wrong with yours? Failing to identify the text? What text are you telling it to search for? Try shortening it to just two unique letters.
I will try, thank you
A second question : Knowing that there is no flag on screen, why is this an infinite loop?
SCAR Code:procedure Misc_Flag(WaitMore : Boolean);
begin
While FlagDistance >= Random(4) do
begin
Wait(100 + Random(50));
Writeln('5');
end;
if WaitMore then Wait(700+Random(400));
end;
for reference, FlagDistance is
SCAR Code:if (FindColor(X, Y, FlagColor, MMX1, MMY1, MMX2, MMY2)) then
Result := Distance(MMCX, MMCY, X + 1, Y + 14);
Update : Countcolor(flagcolor) return 19-20. isn't flagcolor unique? I see nothing red on minimap.
Last edited by Cigue; 01-29-2010 at 10:39 PM.
I don't check this place often, sorry.
Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path
SCAR Code:procedure Misc_Flag(WaitMore : Boolean);
begin
While FlagDistance >= Random(4) do //this does check for flag!
begin
Wait(100 + Random(50)); //then it waits
Writeln('5');
end;
if WaitMore then Wait(700+Random(400)); //and waits more if you want it to
end;
Wats wrong? I don't understand your question.
Not an infinite loop, it only loops if flagcolor is found.
SCAR is a strange machine. My problem was that it kept looping even if there was no flag, basically inventing the color. now it stopped.
I don't check this place often, sorry.
Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path
Random(4) returns 0-3..
FlagDistance >= 0 would return true if it doesn't exist I think?
I don't know what it returns if there is no flag though most likely -1 so that might not be it.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
when there is no flag it returns 0, although I made it so the while..do would stop if flagcolor wasn't found.
I don't check this place often, sorry.
Currently working on - Software Engineering degree. Thank you SRL for showing me the one true path
There are currently 1 users browsing this thread. (0 members and 1 guests)