Results 1 to 9 of 9

Thread: [HELP] Is it possible to get a script to fetch data from a notepad?

  1. #1
    Join Date
    Nov 2015
    Location
    Glasgow, Scotland
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default [HELP] Is it possible to get a script to fetch data from a notepad?

    Hi there, I know that I can do a Players list with like X amount of accounts but I am wondering If i could make a script that would fetch the username and password from a notepad file. I don't know if this is possible, firstly, if you don't want to explain but it is possible, PLEASE tell me. Orrr if you wanna be nice and teach me that would be brilliant (on the basis that it's possible). But basically I am looking to be botting on several accounts, that may or may not get banned ect and updating the script in simba is an effort, if it could just take it from a notepad i could keep up to date

    Thanks for the help

    TLDR:Can Simba Read NOTEPADS?

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Kieran x Dzr View Post
    Hi there, I know that I can do a Players list with like X amount of accounts but I am wondering If i could make a script that would fetch the username and password from a notepad file. I don't know if this is possible, firstly, if you don't want to explain but it is possible, PLEASE tell me. Orrr if you wanna be nice and teach me that would be brilliant (on the basis that it's possible). But basically I am looking to be botting on several accounts, that may or may not get banned ect and updating the script in simba is an effort, if it could just take it from a notepad i could keep up to date

    Thanks for the help

    TLDR:Can Simba Read NOTEPADS?

    Read NOTEPADS? Notepad files are just "text files" and yes Simba can read them.
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Nov 2015
    Location
    Glasgow, Scotland
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    How would I go about this, I've got AeroLib in the program but no SMART.

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

    Default

    Quote Originally Posted by Kieran x Dzr View Post
    How would I go about this, I've got AeroLib in the program but no SMART.
    AeroLib isn't "in" Simba, it's a library of files that are included by certain scripts.

    If you have Simba, you have SMART. SMART is a plugin that comes bundled with Simba.

    As for your question, take a look at the file I/O documentation here: http://docs.villavu.com/simba/scriptref/files.html
    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

  5. #5
    Join Date
    Nov 2015
    Location
    Glasgow, Scotland
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    AeroLib isn't "in" Simba, it's a library of files that are included by certain scripts.

    If you have Simba, you have SMART. SMART is a plugin that comes bundled with Simba.

    As for your question, take a look at the file I/O documentation here: http://docs.villavu.com/simba/scriptref/files.html
    I was more meaning that AeroLib is used in my script and it's not using SMART. No need to take everything so literally. Thanks for the link.

  6. #6
    Join Date
    May 2012
    Location
    Glorious Nippon
    Posts
    1,011
    Mentioned
    50 Post(s)
    Quoted
    505 Post(s)

    Default

    https://github.com/SRL/SRL-6/blob/ma...orm.simba#L270
    That's a good example of how to save/load stuff to a text file

  7. #7
    Join Date
    Nov 2015
    Location
    Glasgow, Scotland
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Citrus View Post
    https://github.com/SRL/SRL-6/blob/ma...orm.simba#L270
    That's a good example of how to save/load stuff to a text file
    Hi mate, thanks for the reply, I read that and honestly coulnd't understand how I could use it. I'm not that good at this.. I need the code to take a .txt file that literally has two columns in it and then store those, then be able to move down 1 line and get me the next one

  8. #8
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Kieran x Dzr View Post
    Hi mate, thanks for the reply, I read that and honestly coulnd't understand how I could use it. I'm not that good at this.. I need the code to take a .txt file that literally has two columns in it and then store those, then be able to move down 1 line and get me the next one

    So learn..


    Untested:
    Simba Code:
    var
      i: Integer;
      hFile: Integer;
      pSize: Integer;
      pString: String;
      pStringArray: TStringArray;
      pUserInfo: TStringArray;
    begin
      hFile := OpenFile('C:/Simba/Scripts/Login.txt', false);
      if ((hFile <> -1) and ReadFileString(hFile, pString, FileSize(hFile)) then
      begin
        pStringArray := Explode(#13, pString);

        for i := 0 to high(pStringArray) do
        begin
          pUserInfo := Explode(' ', pStringArray[i]);
          writeln('Username: ', pUserInfo[0], 'Password: ', pUserInfo[1]);
        end;
      end;

      CloseFile(hFile);
    end;
    Last edited by Brandon; 11-15-2015 at 12:19 AM.
    I am Ggzz..
    Hackintosher

  9. #9
    Join Date
    Nov 2015
    Location
    Glasgow, Scotland
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    So learn..


    Untested:
    Simba Code:
    var
      i: Integer;
      hFile: Integer;
      pSize: Integer;
      pString: String;
      pStringArray: TStringArray;
      pUserInfo: TStringArray;
    begin
      hFile := OpenFile('C:/Simba/Scripts/Login.txt', false);
      if ((hFile <> -1) and ReadFileString(hFile, pString, FileSize(hFile)) then
      begin
        pStringArray := Explode(#13, pString);

        for i := 0 to high(pStringArray) do
        begin
          pUserInfo := Explode(' ', pStringArray[i]);
          writeln('Username: ', pUserInfo[0], 'Password: ', pUserInfo[1]);
        end;
      end;

      CloseFile(hFile);
    end;
    Thanks again, managed to get this working. Kinda like your script

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
  •