SRL Archive - OSR Help

World selecting


stuartroad

2012-08-31 04:29:53

Hi, trying to make my script choose a certain world because of avatar buffs for extra xp, I can't find what to type to make it chose a certain world. Do I have to make that whole bit up on my own for the script or is there an inbuilt way of telling it to choose a certain world. Thankyou!

Le Jingle

2012-08-31 04:43:45

In your DeclarePlayers procedure, just add WorldInfo, as seen in the example below. I believe this is what you mean/what you are looking for.


procedure DeclarePlayers;
begin
HowManyPlayers:= 1;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer:= 0;
with Players[0] do
begin
Name := '';
Pass := '';
Active := True;
WorldInfo := [true, 44]; // Selects world 44 when logged in on RS
end;
end;

Hope this helps,
Lj

stuartroad

2012-08-31 07:37:08

thankyou, i will give it a try when the script dies, i am sure this is exactly what i was asking for. much love xox