SRL Archive - OSR Help

How to choose world?


rotchy1

2013-05-19 22:34:04

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?

King

2013-05-19 22:41:49

http://villavu.com/forum/showthread.php?t=89296&highlight=how+to+choose+a+world

The Mayor

2013-05-19 22:42:38

Just put WorldInfo into your declare players procedure:


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;

rotchy1

2013-05-19 22:42:58

From: King
http://villavu.com/forum/showthread.php?t=89296&highlight=how+to+choose+a+world


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

King

2013-05-19 22:45:10

From: rotchy1
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 :D

From: The Mayor
Just put WorldInfo into your declare players procedure:


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 ;)

The Mayor

2013-05-19 22:46:07

From: rotchy1
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 :ninja:

King

2013-05-19 22:47:32

From: The Mayor
Yea opps, copied straight out of a script. Edited :)


I did that yesterday with a customer >.<