SRL Archive - RS3 Help

I need help scripting to log into a specific world.


Sawyer

2014-04-21 22:34:27

Hello. It's been a while since I have last scripted, and lape is different than pascal, not to mention the new SRL. How can I assign specific worlds to certain characters to have them log in to them? Thanks.
-Sawyer

The Mayor

2014-04-21 22:37:28

From: Sawyer
Hello. It's been a while since I have last scripted, and lape is different than pascal, not to mention the new SRL. How can I assign specific worlds to certain characters to have them log in to them? Thanks.
-Sawyer


You can throw it in your declarePlayers procedure


procedure declarePlayers();
begin
setLength(players, 1);

with players[0] do
begin
loginName := 'username';
password := 'password';
isActive := true;
world := 108; // What ever world you want
end

with players[1] do
begin
loginName := 'username1';
password := 'password1';
isActive := true;
isMember := true;
world := 87; // What ever world you want
end

currentPlayer := 0;
end;

Sawyer

2014-04-21 23:02:47

From: The Mayor
You can throw it in your declarePlayers procedure


procedure declarePlayers();
begin
setLength(players, 1);

with players[0] do
begin
loginName := 'username';
password := 'password';
isActive := true;
world := 108; // What ever world you want
end

with players[1] do
begin
loginName := 'username1';
password := 'password1';
isActive := true;
isMember := true;
world := 87; // What ever world you want
end

currentPlayer := 0;
end;


AAAAH… that's what I was doing wrong. I wrote:
with players[0] do
begin
world = 108;
end
rather than
with players[0] do
begin
world := 108;
end