Results 1 to 9 of 9

Thread: Random Members World Select

  1. #1
    Join Date
    Jul 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Random Members World Select

    How can I randomly select a members only world?

    there's the

    SCAR Code:
    selectworld(48)

    command but you have to specify an exact world

    cant use

    SCAR Code:
    random(150)

    cuz I only want members only worlds

    Help Plz?>

  2. #2
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The only way I can think of is this, too bad its incredibly inefficient.
    Code:
    Case Random(65) Of
      0: SelectWorld(2);
      
      1: SelectWorld(6);
    Understand what im getting at? That's the only way I can think of solving it. But my brain's not working too well, its 1 in the morning and im tired. Maybe ill think of something while im asleep.. *shrugs* you never know.

  3. #3
    Join Date
    Jul 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol yeh i see

    i cant think of nothin either(obviously) lol

    but might as well give it a shot
    ive tried everything else
    (that doesnt require an incredibly long procedure.....)

  4. #4
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Lol, yeah, sorry about that, ill try and think some more before going to bed. This is gonna bug me now.. GRR.

  5. #5
    Join Date
    Jul 2007
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol thx for the effort =]

    its bugging me 2

  6. #6
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    HELL YEA BABY!!!!!!!!
    It is heavily based off of the current SelectWorld function, but IDC.

    Code:
    program New;
    {.include SRL\SRL.scar}
    {.include SRL\SRL\Misc\WorldSwitcher.scar}
    
    function SelectWorld1(Which: String; RandomWorld:Boolean): Boolean;
    var
      i: Integer;
    begin
      SetupWorldSwitcher;
      if not WelcomeToRuneScape then
      begin
        Result := False;
        Exit
      end;
      ClickWorldSwitchButton;
      OrderBy('location', 'down');
      OrderBy('players', 'down');
      OrderBy('type', 'up');
      Wait(1000);
      GetWorldRecord;
    //  ReadOutRecord;
        if Which = 'members' then
          for i := 1 to 65 -1 do
            begin
            Case RandomWorld Of
              True  : Begin
                        Mouse(Worlds[i+Random(65)].X, Worlds[i+Random(65)].Y, 0, 0, True);
                        Result := True;
                        Exit;
                      End;
    
              False : Begin
                        Mouse(Worlds[i].X, Worlds[i].Y, 0, 0, True);
                        Result := True;
                        Exit;
                      End;
              End;
            end;
        FreeNumbers;
    end;
    
    begin
    SetupSRL;
    SelectWorld1('members',True);
    end.
    +rep please

  7. #7
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    dont ask for rep...

  8. #8
    Join Date
    Jan 2007
    Location
    Illinois.. >.<
    Posts
    1,158
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok. sorry.

  9. #9
    Join Date
    Sep 2008
    Location
    Nova Scotia, Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm *really* new at this so may be completely way off base here...

    But when I first read this the first thing that popped into my head was setup an array of integers with the members world numbers (ahead of time). Then use Random to select a value out of the array?

    Edit: But then your script would need to be updated everytime they switched the worlds around (as they are prone to do).

    On second thought I like the previous answer better. Less error prone, and that's the whole point.

    Edit: We appreciate your desire to contribute to the community, but this post is very, very old, and gravedigging is not allowed on this forum. SRL advances so quickly that anything posted a year ago is almost sure to be completely outdated, and posting to very old messages like this one can only lead to confusion. Please check the most recent post date before responding next time. - Tarajunky

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. higher members own the world
    By joeybaltimore in forum SRL Site Discussion
    Replies: 77
    Last Post: 01-16-2009, 05:24 PM
  2. Members world??
    By Goodpeople in forum OSR Help
    Replies: 4
    Last Post: 01-03-2009, 11:58 PM
  3. Select text
    By Pietpatat in forum OSR Help
    Replies: 5
    Last Post: 06-02-2008, 04:36 PM
  4. Getting the value from a select object with javascript.
    By R0b0t1 in forum Web Development
    Replies: 4
    Last Post: 08-19-2007, 06:42 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
  •