Results 1 to 5 of 5

Thread: How to implement mutliple characters into script

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

    Default 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. #2
    Join Date
    Feb 2013
    Posts
    459
    Mentioned
    5 Post(s)
    Quoted
    219 Post(s)

    Default

    I'd start with an array of players eg
    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. #3
    Join Date
    Jul 2007
    Posts
    51
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    Anyone else have any suggestions?

  4. #4
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    973
    Mentioned
    47 Post(s)
    Quoted
    488 Post(s)

    Default

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

  5. #5
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,187
    Mentioned
    112 Post(s)
    Quoted
    1853 Post(s)

    Default

    Quote Originally Posted by imalama101 View Post
    Anyone else have any suggestions?
    what is wrong with wthomas' suggestion
    GitLab projects | Simba for Linux | Find me on IRC or Discord | OSRS scripts | Come play ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

Thread Information

Users Browsing this Thread

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
  •