Console account creator

05/19/2010 15:05 .Summer#1
okay this is the account creation for the 5165 source by tanel, but how can i make it read an ip adress from an ini file, then it create the account to the ip, but at same path, cuz then it can be putted in client and players make account from there. I have seen it before, but i wondered how. cuz i suck at working with ips and ini.
I just need an ip check and a write to ip or something right?
i got no clue seriously :P
Code:
        public static void CreateAccount(string Name, string Password, string Status)
        {
            if (!File.Exists(@"C:\OldCODB\Users\" + Name + ".usr"))
            {
                FileStream FS = new FileStream(@"C:\OldCODB\Users\" + Name + ".usr", FileMode.CreateNew);
                BinaryWriter BW = new BinaryWriter(FS);
                AccCheck(Name, Password);
                BW.Write(Password);
                BW.Write(Status);
                BW.Close();
                FS.Close();
            }
        }
05/19/2010 15:13 Korvacs#2
Why do you want to assign an account to an ip address anyway?
05/20/2010 08:51 Arcо#3
GC.Soc.Endpoint
05/20/2010 15:07 .Summer#4
Quote:
Originally Posted by Korvacs View Post
Why do you want to assign an account to an ip address anyway?
so peoples can register from the client.
and they will need my ip to create account to the right place if im right. I just don't know how :P Never worked with such things ;D
05/20/2010 17:55 Korvacs#5
But why do you need the IP Address?
05/20/2010 19:18 .Kob#6
Why don't use sql? Just for accounts.
05/20/2010 22:24 .Summer#7
cakobu did you read topic.
I want a console to create account.
That you put in the client, so peopels register from there :)
And i simply dont want to rewrite from flatfile to sql.

@Korvacs, how should it else know wich pc to connect? :P
05/20/2010 22:28 kinshi88#8
Make a program to connect to your login server, then send data from the program to login server, and the login server will create it.
If you put in your database details in the program your giving to everyone, anyone can get your info =O
05/20/2010 22:47 .Summer#9
Thank you kinshi :)
05/20/2010 22:49 .Kob#10
And if you make a program with just a WebBrowrser with yout register page? Thats a easy way xd
05/20/2010 22:50 .Summer#11
i simply can't php :)
and i dont want those wierd released.
becuz they dont have what i want em like xD