# Thread: How to implement mutliple characters into script

1. SRL Junior Member
Join Date
Jul 2007
Posts
51
Mentioned
0 Post(s)
Quoted
20 Post(s)

## How to implement mutliple characters into script

So I have a script I made for a rsps, I want to add a option to change chars periodically. I know to use a global timer, but how should I complete the list of chars to switch to after the time has expired for a current char?

2. SRL Junior Member
Join Date
Feb 2013
Posts
460
Mentioned
5 Post(s)
Quoted
219 Post(s)
Code:
type
TPlayer = record
Name, Pass: String;
end;
TPlayerarray = array of TPlayer;
That can be populated with your account info. In the script you'd have a check to see whether or not you should switch player(based on the timer), if so then logout and relogin the next player from the list; incrementing an index through the array each time.

3. SRL Junior Member
Join Date
Jul 2007
Posts
51
Mentioned
0 Post(s)
Quoted
20 Post(s)
Anyone else have any suggestions?

4. You basically answered your own question in the OP. Just make a list of characters and passwords and loop through them.

5. SRL Member
Join Date
Dec 2011
Location
East Coast, USA
Posts
4,188
Mentioned
112 Post(s)
Quoted
1853 Post(s)
Originally Posted by imalama101
Anyone else have any suggestions?
what is wrong with wthomas' suggestion

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•