Results 1 to 5 of 5

Thread: Getting account details from a doc

  1. #1
    Join Date
    Nov 2015
    Posts
    20
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default Getting account details from a doc

    Can't edit the title, this is not about stealing accounts

    Hello Simba

    I have built up quite a few accounts and I'm getting pretty sick of having to type in a different username and password every time I want an acc to run a bot. Would it be possible to have my scripts find the information in a document. I should then be able to specify which account I want it to access (acc1, acc2, acc3...). In advance, thanks for the answers.

    Regards Rune

    Acc doc.txt
    Just if my explanation of the dock sucked too much.
    Last edited by rune3132; 04-04-2016 at 12:00 PM. Reason: Realiced how it sounds

  2. #2
    Join Date
    Jun 2014
    Posts
    463
    Mentioned
    27 Post(s)
    Quoted
    229 Post(s)

    Default

    Read INI
    Write INI

    OpenFile
    CloseFile
    ExplodeWrap
    Tsunami

  3. #3
    Join Date
    Nov 2015
    Posts
    20
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Didn't know those existed, thansk alot.

  4. #4
    Join Date
    Jan 2007
    Location
    The Netherlands!
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    You can also create a record that holds all your accounts. Then you can cycle through your accounts easily as well by going to the right index. I made an example. It is possible that there are easier or shorter ways, but this seems to work as well:

    Simba Code:
    program ExampleAccountSelector;

    type TAcc = record
      Account: String;
      Passw: String;
    end;

    var
      Player: Array of TAcc;
      i, TotalAccounts: Integer;

    Procedure SelectAccount;

    begin
      i := 2;
      TotalAccounts := 4;
      SetLength(Player, TotalAccounts);

      Player[0].Account  := 'Peter4';
      Player[0].Passw    := 'Passw4';

      Player[1].Account  := 'Peter1';
      Player[1].Passw    := 'Passw1';

      Player[2].Account  := 'Peter2';
      Player[2].Passw    := 'Passw2';

      Player[3].Account  := 'Peter3';
      Player[3].Passw    := 'Passw3';

    end;

    begin
      SelectAccount;
      WriteLn(Player[i].Account + ' ' + Player[i].Passw);
    end.


    I hope you can use this.

    Edit: You can add this to existing scripts. If it asks for your account details just put in the stuff I used in the WriteLn.
    Last edited by Klaust; 04-04-2016 at 09:30 PM.
    Derp.

  5. #5
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Klaust View Post
    You can also create a record that holds all your accounts. Then you can cycle through your accounts easily as well by going to the right index. I made an example. It is possible that there are easier or shorter ways, but this seems to work as well:

    Simba Code:
    program ExampleAccountSelector;

    type TAcc = record
      Account: String;
      Passw: String;
    end;

    var
      Player: Array of TAcc;
      i, TotalAccounts: Integer;

    Procedure SelectAccount;

    begin
      i := 2;
      TotalAccounts := 4;
      SetLength(Player, TotalAccounts);

      Player[0].Account  := 'Peter4';
      Player[0].Passw    := 'Passw4';

      Player[1].Account  := 'Peter1';
      Player[1].Passw    := 'Passw1';

      Player[2].Account  := 'Peter2';
      Player[2].Passw    := 'Passw2';

      Player[3].Account  := 'Peter3';
      Player[3].Passw    := 'Passw3';

    end;

    begin
      SelectAccount;
      WriteLn(Player[i].Account + ' ' + Player[i].Passw);
    end.


    I hope you can use this.

    Edit: You can add this to existing scripts. If it asks for your account details just put in the stuff I used in the WriteLn.
    yes you could initialise the variable player with an array (create a name + pass array and loop through them)

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
  •