SRL Archive - Help

Need help with starting script (2nd day with srl)


Reinier

2011-12-26 07:07:51

Hi, I'm new here and I got a question.
What do I have to enter in ''Players[1]''?

Players[1].Name := 'I know what to enter here';
Players[1].Pass := 'I know what to enter here';
Players[1].Nick := 'Do I have to enter display name here?';
Players[1].Active := True;
Players[1].Pin := 'I know what to enter here';



SOLVED

Gushers

2011-12-26 07:16:49

From: Reinier
Hi, I'm new here and I got a question.
What do I have to enter in ''Players[1]''?

Players[1].Name := 'I know what to enter here';
Players[1].Pass := 'I know what to enter here';
Players[1].Nick := 'Do I have to enter display name here?';
Players[1].Active := True;
Players[1].Pin := 'I know what to enter here';


You do not need to enter the display name unless you want it to logout whenever your name is called, if you have the in your script.
You should setup some variables.. Here's some of my setup code for my PowerMiner:
procedure DeclarePlayers;
var i:integer;
begin
NumberOfPlayers(NumbOfPlayers);
CurrentPlayer := StartPlayer;
for i:= 0 to NumbOfPlayers-1 do
Players[i].BoxRewards := ['XP','xp','lamp'];

with Players[0] do
begin
Name := ''; //Player Username.
Pass := ''; //Player Password.
Nick := ''; //Player nickname - 3-4 letters of Player username.
Active := True;
Integers[1] := 4; //1=BrightCopper,2=DarkCopper,3=Tin,4=Iron.
Integers[2] := 4; //Seconds to try mining rock before clicking another.
end;

end;