Results 1 to 3 of 3

Thread: Need help with Loop

  1. #1
    Join Date
    Dec 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with Loop

    Ok, so I have finally made my own powerminer. The only problem is that when the current player finishes his load(s) it goes to the next one, even if there is no more left to run. For example, when I run only 1 player and it finishes it's works, it keeps looking for another player even if the rest are set to False. Someone please help! Here is the loop:

    SCAR Code:
    begin
      Signature;
      SetupSRL;
      DeclarePlayers;
      if LoggedIn then Logout;
      LoginPlayer;
        repeat
          MineRock;
          FindRandoms;
          AntiBan;
        until (InvFull) or (Tolerance=50)
          DropOre;
          ProgressReport;
          NextPlayer(False);
    end.

  2. #2
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    Kinda pointless to use multiplayer if you are doing single player runs...

    Mulitplayer is exactly what it sounds like So when there is only one left it really cant switch to the next person. You dont want your one char running for several hours and getting banned do you?

    If you want to run singleplayer then I would suggest putting in sleep timers for atleast one hour between each login.

    Here is an improved version of your mainloop:

    SCAR Code:
    begin
      Signature;
      SetupSRL;
      DeclarePlayers;
      if LoggedIn then Logout;
        LoginPlayer;
        repeat
        if(not(loggedIn))then
          NextPlayer(False);
          repeat
            MineRock;
            FindRandoms;
            AntiBan;
          until (InvFull) or (Tolerance=50)
          DropOre;
          ProgressReport;
          NextPlayer(True);
        until(False);
    end.

    Hope that helps ya a bit Good luck!
    METAL HEAD FOR LIFE!!!

  3. #3
    Join Date
    Dec 2007
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks I'll try it out. Also, the script is originally for multi-player I just wanted to use it for only one player.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. need for to do loop help
    By Raskolnikov in forum OSR Help
    Replies: 6
    Last Post: 07-02-2008, 03:21 AM
  2. loop
    By fausco in forum OSR Help
    Replies: 2
    Last Post: 11-16-2007, 11:12 PM
  3. Loop help?
    By Becks in forum OSR Help
    Replies: 3
    Last Post: 10-23-2007, 10:32 AM
  4. Help with loop
    By skullbr00d in forum OSR Help
    Replies: 0
    Last Post: 05-29-2007, 09:23 PM
  5. loop
    By macromacro123 in forum OSR Help
    Replies: 4
    Last Post: 03-18-2007, 07:50 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
  •