Results 1 to 10 of 10

Thread: Repeat?

  1. #1
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Repeat?

    Hey,

    I have recently started to learn SCAR and I am progressing very fast.
    One thing I wonder is the way to include a repeat option in SCAR.
    I just can't get it to work.......

    Any example of a working simple script would be helpful.

    Thanks,

    Fort Ash

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    SCAR Code:
    begin
      SetUp;
      repeat
        AntiBan;
        SearchForTraps;
        AntiRandom;
        NAFOutFight;
        DontDie;
      until false;
    end.

    thats just part of a main loop, but it gets the general point across.

  3. #3
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    SCAR Code:
    Begin
      Repeat
        ReadLn('Spam!');
      Until(False);
    End.


  4. #4
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    Wooooo...... That was fast!

    Thanks guys!

    Fort Ash

  5. #5
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Just a note: the "until false;" part means it will repeat forever, because it will keep repeating until whatever is after "until" is true. Since false is never true, it will go on forever.

  6. #6
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    Just a note: the "until false;" part means it will repeat forever, because it will keep repeating until whatever is after "until" is true. Since false is never true, it will go on forever.
    Which is Called an "Endless Loop" and you should try to avoid

  7. #7
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Not really. There are some places where they are useful.

  8. #8
    Join Date
    May 2008
    Location
    127.0.0.1
    Posts
    705
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by bullzeye95 View Post
    Not really. There are some places where they are useful.
    example please?
    <Wizzup> And he's a Christian
    <Wizzup> So he MUST be trusted
    ___________________________________________
    <Wizzup> she sounds like a dumb bitch

  9. #9
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Brute forcing algorithms.

  10. #10
    Join Date
    Jan 2009
    Posts
    53
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hey,

    I'll keep that in mind.

    Fort Ash

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. repeat until...???
    By Alligaattor in forum OSR Help
    Replies: 12
    Last Post: 10-23-2008, 12:59 AM
  2. How do I get this to repeat until?
    By Claymore in forum OSR Help
    Replies: 2
    Last Post: 07-07-2008, 04:02 PM
  3. repeat help
    By trojan in forum OSR Help
    Replies: 2
    Last Post: 06-15-2007, 03:54 PM
  4. repeat somewhere help thx
    By rkroxpunk in forum OSR Help
    Replies: 4
    Last Post: 03-12-2007, 08:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •