Results 1 to 7 of 7

Thread: How to choose world?

  1. #1
    Join Date
    Jan 2012
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    12 Post(s)

    Default How to choose world?

    Is it possible to have a script pick a specific world at first run? I have a script that's world sensitive running and I want to it use the same world every time it restarts, so how could I implement that into the script?

  2. #2
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

  3. #3
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Just put WorldInfo into your declare players procedure:

    Simba Code:
    Procedure DeclarePlayers;
    Begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      With Players[0] Do
      Begin
        Name        := 'username';
        Pass        := 'password';        
        WorldInfo   := [30];  //This will log into world 30
        Active      := True;
      End;
    End;

  4. #4
    Join Date
    Jan 2012
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    12 Post(s)

    Default

    thanks....not sure why this didn't come up when I searched it...but thankyou very much sir!

    P.S. you left your user/pass in that lol

  5. #5
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by rotchy1 View Post
    thanks....not sure why this didn't come up when I searched it...but thankyou very much sir!
    Not a problem, I would normally say search around without posting it, but this was like 6-7 pages back. I just knew it was there and kept looking

    Quote Originally Posted by The Mayor View Post
    Just put WorldInfo into your declare players procedure:

    Simba Code:
    Procedure DeclarePlayers;
    Begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
      With Players[0] Do
      Begin
        Name        := 'username';
        Pass        := 'password';        
        WorldInfo   := [30];  //This will log into world 30
        Active      := True;
      End;
    End;

    I (ninja) 'd you mayor

  6. #6
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by rotchy1 View Post
    thanks....not sure why this didn't come up when I searched it...but thankyou very much sir!

    P.S. you left your user/pass in that lol
    Yea opps, copied straight out of a script. Edited


    P.S. King you

  7. #7
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by The Mayor View Post
    Yea opps, copied straight out of a script. Edited
    I did that yesterday with a customer >.<

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
  •