Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 12:36

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

Advertisement



[release]troubleshoot login freezing in loft [do not know if it works well]

Discussion on [release]troubleshoot login freezing in loft [do not know if it works well] within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2008
Posts: 77
Received Thanks: 63
Smile [release]troubleshoot login freezing in loft [do not know if it works well]

go to Database.cs , Search public static byte Authenticate

and replace it with:

Code:
 public static byte Authenticate(string UserName, string Password)
        {
            try
            {
                MySqlDataAdapter DataAdapter = new MySqlDataAdapter("SELECT * FROM `Accounts` WHERE `AccountID` = '" + UserName + "'", Connection);
                DataSet DSet = new DataSet();

                DataAdapter.Fill(DSet, "Account");

                if (DSet == null)
                    return 0;
                if (DSet.Tables.Count == 0)
                    return 0;
                if (DSet.Tables["Account"].Rows.Count > 0)
                {
                    DataRow DR = DSet.Tables["Account"].Rows[0];

                    string Pass = (string)DR["Password"];
                    if (Pass == Password || Pass == "")
                    {
                        if (Pass == "")
                        {
                            MySqlCommand Command = new MySqlCommand("UPDATE `Accounts` SET `Password` = '" + Password + "' WHERE `AccountID` = '" + UserName + "'", Connection);
                            Command.ExecuteNonQuery();
                        }

                        uint LogonCount = (uint)DR["LogonCount"];
                        LogonCount++;
                        MySqlCommand Comm = new MySqlCommand("UPDATE `Accounts` SET `LogonCount` = " + LogonCount + " WHERE `AccountID` = '" + UserName + "'", Connection);
                        Comm.ExecuteNonQuery();

                        return Convert.ToByte((uint)DR["LogonType"]);
                    }
                    else
                        return 0;
                }
                else
                    return 0;
            }
            catch (Exception Exc) { Console.WriteLine(Exc.ToString()); return 0; }
        }
I'm not sure that it works very well leave your comments please ...
konkizta is offline  
Old 10/14/2008, 12:23   #2
 
elite*gold: 0
Join Date: Jan 2008
Posts: 145
Received Thanks: 91
nice work dude!
but how try it if it works and how to create/make a login freeze bug?
pauldexter is offline  
Reply


Similar Threads Similar Threads
[Release] 3rb Reborn for Loft
06/15/2010 - CO2 PServer Guides & Releases - 27 Replies
Hi guys, I just want to share you my 3rd RB from my Source :D Add this to Character.cs anywhere in Character.cs You can change the PreviousClass to PrevJob and Class to Job coz I made this source, is it's kinda different. public void ThirdReborn(byte ToClass) { try
[Release][UPDATE] Stop Freezing when Minmizing
05/27/2010 - Shaiya Hacks, Bots, Cheats & Exploits - 0 Replies
The original post can be found here: Since that post was posted, the address for the antifreeze has changed. After some digging, I found the new address, shown below. All you need to do is open up Cheat Engine, add this address, change its value to 1, and freeze it. From there, the window should no longer freeze after you minimize. The Address: 301B08 ~Thank you~
Can V5016 Loft be upgraded to V5165 LOFT?
12/02/2009 - CO2 Private Server - 11 Replies
Hey guys, i jus got windows 7 and i'm not able to run Coemu V2 cause i have windows 7 and its 64-bit. I was wondering if anyone had a loft source that has most if not all things fixed (Weapons skills added, Rb's fixed ect...). I got a old source from Shadow Co that i have been working on and making good progress. Jus a few main questions- -Is there anyway to use CoemuV2 on my windows 7 64-bit computer? -If i use loft can i patch it up to 5165? Thanks for all help, please don't flame,...
Silkroad Freezing On Login Screen
02/04/2009 - Silkroad Online - 0 Replies
When ı try to login silkroad , silkroad is freezing .(sorry my english is a little bad)nd sometimes it is giving "Send Eror". My Computer Intel Core 2 Duo E210 (1.6 GHZ) 1 Gb Ram Ati Radeon Hd 2350
[Release] Loft Source:
07/17/2008 - CO2 Guides & Templates - 7 Replies
Orinal posted By Super.Pvper :cool:.



All times are GMT +2. The time now is 12:36.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.