Runescapian321
04-19-2008, 02:11 PM
Another short tut :) Many people have been having problems with this recently, so I'll help by posting a short tutorial on how to do it.
You'll see this in most scripts, or something like it
procedure DeclarePlayers;
begin
SRLID:= '';
SRLPassword:= '';
HowManyPlayers := 5;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
Players[1].Name :='';
Players[1].Pass :='';
Players[1].Nick :='';
Players[1].Active:=True;
Players[2].Name :='';
Players[2].Pass :='';
Players[2].Nick :='';
Players[2].Active:=True;
Players[3].Name :='';
Players[3].Pass :='';
Players[3].Nick :='';
Players[3].Active:=True;
Players[4].Name :='';
Players[4].Pass :='';
Players[4].Nick :='';
Players[4].Active:=True;
end;
Now, let me explain each part separately.
SRLID:= '';
SRLPassword:= '';
This is your SRL Stats ID (the number) and your password (for SRL Stats). If you have no idea what this is, look through the various tuts on how to get one.
HowManyPlayers := 5;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
Usually, you don't have to touch HowManyPlayers. This is saying how many player arrays* there are. Many people wrongly edit this thinking that is how many players they're using, but that causes an error. I'll explain how to set the amount of players you want to use later.
*A player array is one of these
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
CurrentPlayer is what player you want to start with. In a player array, after the word 'Players' there is a [0] or any other number in it. Whichever player array you used to set up the player you want to use first, take a look at the number after Players and put that in after 'CurrentPlayer :='.
Don't touch NumberofPlayers unless you know what you're doing ;)
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
Players[1].Name :='';
Players[1].Pass :='';
Players[1].Nick :='';
Players[1].Active:=True;
Players[2].Name :='';
Players[2].Pass :='';
Players[2].Nick :='';
Players[2].Active:=True;
Players[3].Name :='';
Players[3].Pass :='';
Players[3].Nick :='';
Players[3].Active:=True;
Players[4].Name :='';
Players[4].Pass :='';
Players[4].Nick :='';
Players[4].Active:=True;
Ah, the player arrays They're pretty simple really. Lets break it down to just one...
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
The Name is your runescape name. The Pass is your runescape password. The Nick* is 3-4 letters from the middle of your runescape name. You CANNOT use a part of your name that has spaces in it. Active is whether you want to use this player or not (true or false). This is how you can set the amount of players you want to use. For every player you DONT want to use, make it False.
* Examples of a Nick...If your name is Ilikecheese, you can use 'like', 'ike', 'eese', 'chee', 'hee', whatever you want. If your name is Ilike cheese, you CANNOT use 'ke_c' or 'e_ch', on account of there being a space. Nicks are used for random event detection.
Sometimes there may be something like this
Players[0].Booleans[0]:=false; //Instructions should be here
These can be used for a variety of things. The author usually labels what to put in where I labeled 'Instructions should be here'.
And one last thing...
You may see something like this...
const
FirstPlayer = 0; //Player to start with
world = 49;
Well, that's usually pretty simple. The author should label what to put in, and put that in.
I hope you liked my tut :)
Happy Autoing!
You'll see this in most scripts, or something like it
procedure DeclarePlayers;
begin
SRLID:= '';
SRLPassword:= '';
HowManyPlayers := 5;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
Players[1].Name :='';
Players[1].Pass :='';
Players[1].Nick :='';
Players[1].Active:=True;
Players[2].Name :='';
Players[2].Pass :='';
Players[2].Nick :='';
Players[2].Active:=True;
Players[3].Name :='';
Players[3].Pass :='';
Players[3].Nick :='';
Players[3].Active:=True;
Players[4].Name :='';
Players[4].Pass :='';
Players[4].Nick :='';
Players[4].Active:=True;
end;
Now, let me explain each part separately.
SRLID:= '';
SRLPassword:= '';
This is your SRL Stats ID (the number) and your password (for SRL Stats). If you have no idea what this is, look through the various tuts on how to get one.
HowManyPlayers := 5;
CurrentPlayer := 0;
NumberOfPlayers(HowManyPlayers);
Usually, you don't have to touch HowManyPlayers. This is saying how many player arrays* there are. Many people wrongly edit this thinking that is how many players they're using, but that causes an error. I'll explain how to set the amount of players you want to use later.
*A player array is one of these
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
CurrentPlayer is what player you want to start with. In a player array, after the word 'Players' there is a [0] or any other number in it. Whichever player array you used to set up the player you want to use first, take a look at the number after Players and put that in after 'CurrentPlayer :='.
Don't touch NumberofPlayers unless you know what you're doing ;)
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
Players[1].Name :='';
Players[1].Pass :='';
Players[1].Nick :='';
Players[1].Active:=True;
Players[2].Name :='';
Players[2].Pass :='';
Players[2].Nick :='';
Players[2].Active:=True;
Players[3].Name :='';
Players[3].Pass :='';
Players[3].Nick :='';
Players[3].Active:=True;
Players[4].Name :='';
Players[4].Pass :='';
Players[4].Nick :='';
Players[4].Active:=True;
Ah, the player arrays They're pretty simple really. Lets break it down to just one...
Players[0].Name :='';
Players[0].Pass :='';
Players[0].Nick :='';
Players[0].Active:=True;
The Name is your runescape name. The Pass is your runescape password. The Nick* is 3-4 letters from the middle of your runescape name. You CANNOT use a part of your name that has spaces in it. Active is whether you want to use this player or not (true or false). This is how you can set the amount of players you want to use. For every player you DONT want to use, make it False.
* Examples of a Nick...If your name is Ilikecheese, you can use 'like', 'ike', 'eese', 'chee', 'hee', whatever you want. If your name is Ilike cheese, you CANNOT use 'ke_c' or 'e_ch', on account of there being a space. Nicks are used for random event detection.
Sometimes there may be something like this
Players[0].Booleans[0]:=false; //Instructions should be here
These can be used for a variety of things. The author usually labels what to put in where I labeled 'Instructions should be here'.
And one last thing...
You may see something like this...
const
FirstPlayer = 0; //Player to start with
world = 49;
Well, that's usually pretty simple. The author should label what to put in, and put that in.
I hope you liked my tut :)
Happy Autoing!