Results 1 to 20 of 20

Thread: Password Help

  1. #1
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default Password Help

    Alright I was not able to find a tut ... or even if this is able to be done. But I was wanting to astrix my password out and have it still work. The original is below.

    SCAR Code:
    /////////////////////////////////////////////////////////
    //-----------------Player Form-------------------------//
    /////////////////////////////////////////////////////////
    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name   := 'myname'; //Character Name
      Players[0].Pass   := 'password'; //Character Pass
      Players[0].Nick   := 'nik'; //Nickname 3 - 4 Letter's of char name
      Players[0].Active := true; //Tun player in script?
     
      Players[1].Name :=''; //account name
      Players[1].Pass :=''; //account password
      Players[1].Nick :=''; //3 letters
      Players[1].Active:=False; // Active true or false.

    end;
    /////////////////////////////////////////////////////////
    //---------------End  Player Form----------------------//
    /////////////////////////////////////////////////////////

    I wan't it to look like:


    SCAR Code:
    Players[0].Name   := 'myname'; //Character Name
      Players[0].Pass   := '********'; //Character Pass

    So, I was wondering about how this would work, if it is possible, and where to find how.
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    You can make it Astrix it out if you use a player form. That declare players procedure types what is in between those " ' ' " marks. So if you really want it to hide your password use a player form, I personally don't see the big deal why you would want to. If you're going to post the script all you have to do is take it out. Hope this helps.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't use asterisks.

    It will mess it up.

    Plus, why do you need this? If they are on your computer already, then they will do much more than steal your useless RS account.

  4. #4
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Camo Kyle View Post
    So if you really want it to hide your password use a player form, I personally don't see the big deal why you would want to.

    Hey thanks... well i suppose that that would work... but it still does not answer my original question... how to do it in scar (not forms).

    I really just was wondering if it was capable of being done. Personally I think that it would be awesome. Any more reason needed?
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  5. #5
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It's impossible.

    SCAR uses the Players[x].Pass string to log in. It has to be the unique password, nothing else, or it won't log in.

  6. #6
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Assuming that the scenario is you wanting your friend to be able to auto on the character, without seeing the password, it's easy if your friend isn't around intermediate in computers. Just highlight the declareplayers procedure and hold Alt + Insert, until it's so much on the right that you can't see it even by scrolling. However, you should remember that you are not allowed to post scripts at SRL that do this. Also, if your friend knows to, he can just do Writeln(Players[0].Pass) and voila.

  7. #7
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    You can make a encrypter/decrypter in it.. After DeclarePlayer put something like DecryptPasswords; and make a procedure to decrypt your password..

    Example:
    ScarScript:By Drunkenoldma
    Players[0].Name = 'Abcde'; Players[0].Pass = 'Bcdef'; Players[0].Nick = 'bcd';

    But that is the advanced way...

  8. #8
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Or you could use ASCII codes.

    Players[0].Password:= chr(22) + chr(53) + chr(...

    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  9. #9
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Lee Lok Hin View Post
    Or you could use ASCII codes.

    Players[0].Password:= chr(22) + chr(53) + chr(...


    I have looked for these codes before, but have never been successful in my quest. Do you know or know anybody that does know what all of these characters?
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  10. #10
    Join Date
    Nov 2008
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by anonymity View Post
    I have looked for these codes before, but have never been successful in my quest. Do you know or know anybody that does know what all of these characters?
    http://www.utoronto.ca/webdocs/HTMLd...iso_table.html

  11. #11
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Super thanks for trying...but no...

    What I am looking for is the characters and their number list.

    ex: chr(13) = enter
    ex: chr(1) = a

    so on and so forth.
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  12. #12
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    But would people who knew ASCII coes be able to determine your pass? Or is this just for personal use? I'm still confused on why you would want this.

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  13. #13
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    It is for personal use. I would like to know the ASCII codes myself... but that still did not answer my question. I would give the question answer to Zytex! and help thanks to Lee Lok Hin.
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  14. #14
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If it's for personal use then you don't need it -.-

  15. #15
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Casually, do this.
    SCAR Code:
    program New;
    const
      pass = #112#97#115#115#119#111#114#100;
    begin
      writeln(pass);
    end.

    Less casually, you could make a plugin. I came up with this (rather nooby) but am at a loss as to how to get it into SCAR.
    Code:
    #include <iostream >
    #include <string>
    using std :: cout;
    using std :: endl;
    using namespace std;
    
    extern string encrypt( string instr ); // prototypes of functions used in the code
    extern string decrypt( string instr );
    
    string encrypt (string instr ) 
    {
    	char e[30];
    	memset( e, '\0', 40 );
    	instr.copy( e, 30);
    	for( int i=0; e[i] != '\0'; ++i ) ++e[i];
    	string string1(e);
    	return string1;
    }
    
    string decrypt(string instr) {
    	char e[30];
    	memset( e, '\0', 40 );
    	instr.copy( e, 30);
    	for( int i=0; e[i] != '\0'; ++i ) --e[i];
    	string string2(e);
    	return string2;
    }

  16. #16
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by TViYH View Post
    If it's for personal use then you don't need it -.-
    Seriously? - personal use.... please tell me that all you have ever done including scripting, scar, and srl were for other people. Once you do, I will gladly listen to criticism from you.

    Personal use = using it and if/once I am able to do (figure out) something constructive with it I definitely will post anything I am able to get on this forum. I read other peoples' scripts and tuts to get the knowledge that I will need to finish off an ultimate script that I am working on. Once I am done learning (because I like to learn.... for me) I will gladly post up what I got and do what I can to help the community.


    Quote Originally Posted by A G E N T 83 View Post

    Casually, do this....................

    Less casually, you could make a plugin. I came up with this (rather nooby) but am at a loss as to how to get it into SCAR.
    Yea, thanks for the posting... but still am looking for the character number and key list.
    ps: that was helpful though.
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

  17. #17
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    SCAR Code:
    program New;

    function ConvertToKeyCode(S: string): string;
    var
      I: Integer;
    begin
      for I := 1 to Length(S) do
        Result := Result + '#' + IntToStr(GetKeyCode(S[I]));
    end;

    begin
      WriteLn(ConvertToKeyCode('ThisIsMyPassword'));
    end.

    Converts your Password into the keycodes as a string. If you really want to hide it you could play around with the conversion function a bit.

  18. #18
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    Just use the Ord function.

    Writeln('#'+IntToStr(Ord('A')));

    P.S: Don't be fooled when it doesn't appear in the auto complete list You can't just call it plainly, like: Ord('A');
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  19. #19
    Join Date
    Feb 2007
    Location
    Toronto, Ontario, Canada
    Posts
    586
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by anonymity View Post
    Yea, thanks for the posting... but still am looking for the character number and key list.
    Can be found here http://www.asciitable.com/asciifull.gif
    That is also in the SCAR help file.

    P.S: You'll want the numbers from the Dec column, not Oct.

  20. #20
    Join Date
    Jan 2007
    Location
    the middle of know-where
    Posts
    1,308
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Dan's The Man View Post
    Just use the Ord function.

    Writeln('#'+IntToStr(Ord('A')));

    Hey, thanks. That seems to be the easiest way to do it.



    Quote Originally Posted by A G E N T 83 View Post
    Can be found here http://www.asciitable.com/asciifull.gif
    That is also in the SCAR help file.

    P.S: You'll want the numbers from the Dec column, not Oct.

    Awesome style for getting the page. Thanks.
    On vacation in NeverLand,
    Code:
    typedef int bool;
    enum { false, true };

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Srl Id And Srl Password
    By lefamaster in forum OSR Help
    Replies: 2
    Last Post: 02-21-2007, 04:22 PM

Posting Permissions

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