Log in

View Full Version : NextPlayer(True);? Does player have to be active?



MacroHawk
05-14-2007, 12:15 AM
I am making an auto miner and I have a question. When you are using multiple players like this:


Procedure DeclarePlayers;
begin
HowManyPlayers:=3;
NumberOfPlayers(HowManyPlayers);
CurrentPlayer := 0;

Players[0].Name :=''; //RuneScape Username
Players[0].Pass :=''; //RuneScape Password
Players[0].Nick :=''; //3-4 Characters of Your Name
Players[0].Active :=True;
Players[0].Ores :=''; //Tin, Copper, or Iron

Players[1].Name :=''; //RuneScape Username
Players[1].Pass :=''; //RuneScape Password
Players[1].Nick :=''; //3-4 Characters of Your Name
Players[1].Ores :=''; //Tin, Copper, or Iron

Players[2].Name :=''; //RuneScape Username
Players[2].Pass :=''; //RuneScape Password
Players[2].Nick :=''; //3-4 Characters of Your Name
Players[2].Ores :=''; //Tin, Copper, or Iron
end;

And I have added a function where where you can chose how many loads to do for each player until it switches to the next one. And my question is, is this: Do I have have to have this:


Players[0].Active :=True;

To use this when the player reaches the set amount loads:


NextPlayer(True);

Buckleyindahouse
05-14-2007, 12:42 AM
Its recommened cause the user might wanna set that particular player to false.

NextPlayer(True) = switches players leaving that one true for later use
NextPlayer(False) = Switches players leaving that on false cause of inability to auto due to random.

JAD
05-14-2007, 01:17 AM
It explains it in my tutorial learning the things to become a SRL member. But like buckley said,

NextPlayer(True) Switches players leaving the one's activeness your switching off of to true.

NextPlayer(False) Switches players leaving the one's activeness your switching off of to false.

So if you use NextPlayer(True), it will switch back to that player once it goes down the line of players, and then starts over..etc.

NextPlayer(False) Is normally used if a player gets lost or something like that, so it remembers not to switch back to that player, because it is un-autoable.