PDA

View Full Version : I need help scripting to log into a specific world.



Sawyer
04-22-2014, 02:34 AM
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
04-22-2014, 02:37 AM
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
04-22-2014, 03:02 AM
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