SRL Archive - Help

Anyway to select worlds from the logingin in of the script?


laakerules

2012-02-22 00:23:48

AS the longggggg title states! :)

kevin33

2012-02-22 00:25:07

Look in the function list under includes then under world. I am sure there is one under there you can refer to or use.

laakerules

2012-02-22 00:26:55



You dont think ive looked there? Ive already tried it and only way i could possible do it is log in log out select world then log in again

YoHoJo

2012-02-22 00:28:39

SMART automatically loads lowest ping server.
To pick own,press play, once smart comes up either pause or stop the script.
Manually log in, select server, and log into game.
Press play.

laakerules

2012-02-22 00:30:26

From: YoHoJo
SMART automatically loads lowest ping server.
To pick own,press play, once smart comes up either pause or stop the script.
Manually log in, select server, and log into game.
Press play.


So thats the only way? :/ that sucks for setting up a soulwars script to run past 6 hours! :/

kevin33

2012-02-22 00:31:25

Oh I see. Well you will just have to do it manually as Yohojo said. Someone should definitley look into adding that function to the list.

YoHoJo

2012-02-22 00:40:37

You could try replacing LoginPlayer; in the script with LoginPlayerToLob;
And then use those world changing functions etc, that should work.

Jagex_Fagex

2012-02-22 03:05:13

From: YoHoJo
You could try replacing LoginPlayer; in the script with LoginPlayerToLob;
And then use those world changing functions etc, that should work.


Try that, and also have a look at MSI. This is probably what they use anyway, but they select a world when you run it.

Methrend

2012-02-22 03:16:42

To auto pick a world with login, in the players declaration use
Players[0].WorldInfo := [MEMBERS, WORLDNUMBER]; 

MEMBERS is either True or False, just set it same as the world you pick.

WORLDNUMBER is the World to log into.

SRL will do the rest when you call loginplayer;

Richard

2012-02-22 03:39:36

From: Methrend
To auto pick a world with login, in the players declaration use
Players[0].WorldInfo := [MEMBERS, WORLDNUMBER]; 

MEMBERS is either True or False, just set it same as the world you pick.

WORLDNUMBER is the World to log into.

SRL will do the rest when you call loginplayer;


In addition to that, you can add a third parameter to the array which is PvP, but in login.simba, it checks for this length of this array, and if you have a third parameter, it selects a random world for some infuriating reason. Can this be changed? I really don't understand why it's there.

Methrend

2012-02-22 03:51:46

From: Richard
In addition to that, you can add a third parameter to the array which is PvP, but in login.simba, it checks for this length of this array, and if you have a third parameter, it selects a random world for some infuriating reason. Can this be changed? I really don't understand why it's there.


I think it's from the old PvP world system, not sure =\
That's why I left it out :)
I'm actually not sure if it matters what you set members to when you explicitly state a world number (i.e. it should work if you have it False but put a members world), that seems to only be used when you have the 3rd param and it picks randomly

-shrug-

Seems a bit weird and outdated, but it still works and is probably the easiest way to do it

Zota

2012-03-26 19:36:10


LoginPlayerToLob;
OpenWorldScreen;
SelectWorld(W);
LoginPlayer;

Put that where you would normally just have your Login player.
You've probably solved it by now… but just incase!

Luke