Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server > CO2 PServer Guides & Releases
You last visited: Today at 16:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release/Guide] Account Creating With Client

Discussion on [Release/Guide] Account Creating With Client within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
[Release/Guide] Account Creating With Client

Hello people, long time no release, haha =D Anyways, I was thinking. Isnt it annoying to go on a website everytime you are going to create a new account? Oh well, I actually think it is. So therefore, I will release how to create an funcion in your server, that allows the user to create an new account with putting "NEW" infront of the real username.

Example : You want to create an account with the username "Peter".
Then you do:
Quote:
NEWPeter

Okay, hope you know what I mean. As some of you know, I encourage people to go INI for accounts/characters instead of MySQL, so this is for INI files, just so you know, but its easy to convert to MySQL.


So first, we go to the place in your source (Probably LOTF) where it all happens, Authenticate.

To get there, search for :

Quote:
public static byte Authenticate(string UserName, string Password)

Now, find a good spot to put this funcion in. Found it? Okay, good!
First we have to make a check to see if the username starts with "NEW".
Okay, now this is REALLY fimiluar with the english spelling. We do this :

Quote:
if (UserName.StartsWith("NEW"))
{
Now, we have to make it remove the actual "NEW". We can do that by this:

Quote:
string RealUserName = UserName.Remove(0, 3);
The reason why we put 0, 3 , is because 0 is for the start of the name, and 3 is for the amount of letters we are going to remove. NEW is 3 letters, therefore we put a 3.


Now, we'll have to make a check if the accountname already exist. As I said earlier, I use INI, so you'll have to convert this to MySQL ( Not that hard really.. )


Quote:
if (!File.Exists(StartupPath + "Accounts\\" + RealUserName + ".acc"))
{

Okay, so that checks if an file with the current username exist. Hopefully it doesnt.



Now its time for all the easy job, write a line to an INI. Not many people know how to do this, so I will guide you through.

First we have to create a new INI, with the name of the username. We do that like this:


Quote:
IniFile I = new IniFile(StartupPath + "Accounts\\" + RealUserName + ".acc");
Now, lets write the password, status, logtype and character lines.


Quote:
I.IniWriteValue("UserName", "Password", "");
I.IniWriteValue("UserName", "Status", "");
I.IniWriteValue("UserName", "LogType", "2");
I.IniWriteValue("UserName", "Character", "");
}
}

The "" or "2" after the , is the default value for each line.


So,I hope I have taught you something new today. Have a good weekend and goodluck!


Emme
_Emme_ is offline  
Thanks
18 Users
Old 12/19/2008, 16:51   #2
 
sherwin9's Avatar
 
elite*gold: 0
Join Date: Oct 2006
Posts: 222
Received Thanks: 27
+ for you , since it's a ******* nice release, though i'm not going to use it but ok :P
sherwin9 is offline  
Old 12/19/2008, 16:54   #3
 
Beta Limit's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 493
Received Thanks: 72
Great Guide Emme as usual- i am going to add this into my server, will help ALOT when i go to .ini.

Also like how you explain every detail of it - This is a big help for the noobies

keep up the good work and i hope to see more!
Beta Limit is offline  
Old 12/19/2008, 16:59   #4
 
~Demented~'s Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 183
Received Thanks: 70
nice work
~Demented~ is offline  
Old 12/19/2008, 17:08   #5
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Thanks for your comment guys, means alot.
Oh btw, forgot to mention ; Want me to explain something futher/better, or want to know what ___ means, or want me to implent _____ ( has to be related to this ) - Well then just go ahead and ask.

Also post comments on my guiding skills,I've tried to guide you through as much as I could.

Emme
_Emme_ is offline  
Old 12/19/2008, 19:13   #6
 
damianpesta's Avatar
 
elite*gold: 0
Join Date: Jan 2007
Posts: 1,034
Received Thanks: 58
Quote:
Originally Posted by EmmeTheCoder View Post
Wtf? This is absolutely NOT from Samevhan's source. I just created this dude, what tha heck?
Did he delete Post or did u just double Post? lol
damianpesta is offline  
Old 12/19/2008, 19:15   #7
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
Ahh, he deleted his post. Ill delete mine too. =P
_Emme_ is offline  
Old 12/19/2008, 19:42   #8
 
L1nk1n*P4rK's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 303
Received Thanks: 39
+T, Great Release
L1nk1n*P4rK is offline  
Old 12/19/2008, 22:18   #9
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
NIce can i ask u somting how to u fix the inv bug help plz?
taylor2846 is offline  
Old 12/20/2008, 02:09   #10
 
taylor2846's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 469
Received Thanks: 94
only one problem unless its just me

the name 'StartupPath' dos not exist in carnet context
taylor2846 is offline  
Old 12/20/2008, 02:12   #11
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by taylor2846 View Post
only one problem unless its just me

the name 'StartupPath' dos not exist in carnet context
You can use
Code:
System.IO.Directory.GetCurrentDirectory() + "\\"
tao4229 is offline  
Old 12/20/2008, 12:39   #12


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
So everytime someone spells their username wrong, regardless of if the password is correct, it makes a new account?

Thats genious

Why didnt anyone else think of this fantastic new feature?
Korvacs is offline  
Old 12/20/2008, 14:07   #13
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
I doubt someone have NEW infront of their real username..
_Emme_ is offline  
Old 12/20/2008, 18:04   #14
 
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
Quote:
Originally Posted by Korvacs View Post
So everytime someone spells their username wrong, regardless of if the password is correct, it makes a new account?

Thats genious

Why didnt anyone else think of this fantastic new feature?
Nah, thats COEurope style, this is actually an "OK" idea...
Easier just to have a register page though.
tao4229 is offline  
Old 12/20/2008, 21:29   #15


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
Quote:
Originally Posted by EmmeTheCoder View Post
I doubt someone have NEW infront of their real username..
Meh even still your just increasing the load on your auth server, if its even split from the game server, making it quite an idiotic way to make accounts <_<"
Korvacs is offline  
Reply


Similar Threads Similar Threads
[Guide] Creating new 2Moons account if your not American / Bypass Country Block
08/16/2009 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 205 Replies
This is a guide on how to make a new 2Moons account if your not from the Usa or Canada using "Yourfreedom" as proxy. Step 1: Register for yourfreedom. Go here and register for yourfreedom Your Freedom: User registration Step 2: Download yourfreedom. You can download yourfreedom here Your Freedom: Downloads
[Guide]Creating your own skills (client side)
07/08/2009 - CO2 PServer Guides & Releases - 13 Replies
#Removed Seems not many need this guide, most can't seem to get it working.



All times are GMT +1. The time now is 16:08.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.