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 20:10

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

Advertisement



[Release] CoEmuv2 AccountServer

Discussion on [Release] CoEmuv2 AccountServer within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2008
Posts: 55
Received Thanks: 4
[Release] CoEmuv2 AccountServer

Reads password as plain text. All credits goes to bruno for the crypt functions.

Here's the query parts so that you'd know what the variable on the config are for.
Code:
MySqlConnection("Server=" + ADBHost + ";Database='" + ADBName + "';Username='" + ADBUser + "';Password='" + ADBPass + "'");
And another one so no one would asks what table name is used.
Code:
MySqlCommand("SELECT * FROM account WHERE name='" + Account + "'", DatabaseConnection.NewConnection());
Attached Files
File Type: zip AccountServer.zip (129.1 KB, 63 views)
tribalost is offline  
Old   #2

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
Why do you want it unencrypted...
Kiyono is offline  
Old   #3
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
useless ..
xellios is offline  
Old   #4
 
elite*gold: 0
Join Date: Mar 2008
Posts: 55
Received Thanks: 4
Nothing particular, just thought it'd be nice to be able to actually input a password when registering for a CoEmuV2 server. And be able to changepass, forgot pass via a website.
tribalost is offline  
Old   #5
 
xellios's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 310
Received Thanks: 13
that is already possible if u just get ur login get to work with md5 hashes ;/?
xellios is offline  
Old   #6
 
elite*gold: 0
Join Date: Mar 2008
Posts: 55
Received Thanks: 4
Guess you didn't know that CO Clients don't use hashing methods.
tribalost is offline  
Old   #7
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,886
Code:
        try
        {
            sock = this.LoginSocket.Accept();
        }
        catch (Exception)
        {
            Console.WriteLine("> Terminating The Server");
            this.LoginSocket.Close();
        }
Accept() can fail (throw an exception) even if the server is still running perfectly fine. If someone disconnects and connects clients rapidly, this can happen.

Quote:
new Thread(new ThreadStart(socket2.Run)).Start();
Although it's an auth server, and it will never have many connections at the same time stay alive for very long, it's a bad idea to give each client it's own thread, use System.Net.Sockets.Socket.BeginReceive()

Quote:
if (length < 1000)
{
destinationArray = new byte[length];
Array.Copy(this.CSocketBuffer, destinationArray, length);
300 is more precise (still not exact, can't be bothered to go find out the exact size, its liek 276 or something), but I suppose that doesn't matter.

Quote:
case 1051:
case 1086:
RequestLogin(Data, CSocket, ClientIP);
break;
This is wrong, only case 0x41B, or 1051 should be replied to.

Quote:
if (Data.Length == 52)
{
Array.Copy(Data, 20, destinationArray, 0, 16);
str3 = Encoding.ASCII.GetString(Data, 36, 16).Replace("\0", "");
}
This should never occur unless someone is using an old client, which they shouldn't be.

Just a few things I decided to point out.
InfamousNoone is offline  
Thanks
1 User
Old   #8
 
elite*gold: 0
Join Date: Mar 2008
Posts: 55
Received Thanks: 4
Thanks for the hints. I was planning on making a new one from scratch that uses your nativeinterop. 1051 is for the 5065 Game Client while 1086 is for 5095 I think. We'll that was the type I got when trying it anyway. And yeah I wanted to support 5065 so I added the stuff for it. Niwiez, thanks again.
tribalost is offline  
Reply


Similar Threads Similar Threads
[Release] CPAdmin for CoEmuV2
03/06/2010 - CO2 PServer Guides & Releases - 0 Replies
Go to Handlers/NpcTalk.cs Add this somewhere at other NPC`s: #region CPAdmin case 2071: { if (LinkBack == 0) { Text("U can exchance here Dragonballs for cps", CSocket);
[Release] CoEmuv2 .. Stuff
08/03/2009 - CO2 PServer Guides & Releases - 5 Replies
First Plz release all you can for coemu such as any items npcs skills what ever if it is not alredy released release it plz it will save us all lots of time.. and becaz no one seem no no how to dye armor black and stuff from a npc im Releaseign how and plz if someone can release to me the npc for socing items dont remember his name and Magic Artisan and the guy for upgrading item level and quality with mets a db's.. plz^^.. any way. edit your database.cs update item code to this ...
[Release]CollectorZhao CoEmuV2
07/09/2009 - CO2 PServer Guides & Releases - 4 Replies
CollectorZhao for CoEmuV2 go to Handler.cs then click on NPCTalk.cs And place this in it. #region CollectorZhao case 2070: // CollectorZhao { if (LinkBack == 0) {
[Release] Cup Awards / CoEmuV2
07/03/2009 - CO2 PServer Guides & Releases - 12 Replies
Go to the CoEmu v2 GameServer and search for: else if (ItemID == 2100045 Replace This: else if (ItemID == 2100045 || ItemID == 2100025 && EquipLocation == 7)//Returns Gourd Position { return 7; } With this: else if (ItemID >= 2100025 && ItemID <= 2100095 && EquipLocation == 7)//Returns Gourd Position
[All-In-One] Guide and Release (CoEmuV2)
06/12/2009 - CO2 PServer Guides & Releases - 36 Replies
Hello this is BasicCoder, Andy recently posted his source for Client 5095! And there were many great releases but on like different pages, this source is Non-Lotf and its Not Binaries either. Anyways here is the posts! Main Source! http://www.elitepvpers.com/forum/co2-pserver-discu ssions-questions/254190-awesome-release-coemuv2-na no-5095-source-code.html Edited CoEmuV2 Sources:



All times are GMT +1. The time now is 20:11.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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