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?
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?
I'd start with an array of players eg
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.Code:type TPlayer = record Name, Pass: String; end; TPlayerarray = array of TPlayer;
Anyone else have any suggestions?
You basically answered your own question in the OP. Just make a list of characters and passwords and loop through them.
GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!
<BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols
There are currently 1 users browsing this thread. (0 members and 1 guests)