Results 1 to 4 of 4

Thread: How would i make a script start from the beginning of main loop?

  1. #1
    Join Date
    Nov 2007
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default How would i make a script start from the beginning of main loop?

    Title says it; any way?
    Never Play Runescape Only Macro On It!!!!!

  2. #2
    Join Date
    Apr 2012
    Posts
    157
    Mentioned
    10 Post(s)
    Quoted
    57 Post(s)

    Default

    What do you mean by start from the beginning of Main Loop? Is main loop a function you created, or are you referring to the actual main body of the script?

  3. #3
    Join Date
    Jul 2012
    Posts
    437
    Mentioned
    10 Post(s)
    Quoted
    165 Post(s)

    Default

    would something like this work

    Simba Code:
    program new;
    label mainloop;

    procedure mainloop2;
    begin
    writeln('blabla');
    end;

    begin
    mainloop: mainloop2;
    goto mainloop;

    end.

  4. #4
    Join Date
    Feb 2013
    Posts
    465
    Mentioned
    6 Post(s)
    Quoted
    221 Post(s)

    Default

    Quote Originally Posted by tealc View Post
    would something like this work

    Simba Code:
    program new;
    label mainloop;

    procedure mainloop2;
    begin
    writeln('blabla');
    end;

    begin
    mainloop: mainloop2;
    goto mainloop;

    end.

    Please never use goto's, you could structure that script just like this:
    Simba Code:
    program new;


      procedure mainloop2;
      begin
        writeln('blabla');
      end;

    begin
      repeat
        mainloop;
      until 1=0;
    end.
    And you'll actually be able to follow the logic.

Thread Information

Users Browsing this Thread

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

Posting Permissions

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