[Release] CoEmu v2 Client Create Char Fix

11/28/2009 02:05 t_dubble_uu#1
Im not sure if this had been released yet i didnt find anything when i searched so here it is.

This will fix the bug when u make a char and get the "Characted created! Please hit back twice and then re-log in to the game!" message. It will now show the login bar and auto send u back to the login page.

In GameServer/Handlers/NewCharacter.cs

Find
Code:
int CharID = Database.Database.NewCharacter(Name, Mesh, Class, CSocket.AccountName);
if(CharID > -1)
{
    CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "Characted created! Please hit back twice and then re-log in to the game!", Struct.ChatType.Dialog));
    CSocket.Disconnect();
}
Replace with
Code:
int CharID = Database.Database.NewCharacter(Name, Mesh, Class, CSocket.AccountName);
if (CharID > -1)
{
    CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", "ALLUSERS", "ANSWER_OK", Struct.ChatType.Dialog));
    //CSocket.Disconnect();
}
else
{
    Console.WriteLine("CharID: " + CharID);
    //CSocket.Disconnect();
}
11/28/2009 03:47 -Shunsui-#2
nice release :D
11/28/2009 03:51 airborne.#3
ty
11/28/2009 07:40 t_dubble_uu#4
your both welcome. Ive got almost all the features coded trade partners, locked items, mentor, mining, old style pk system and soc chance, gw, all skills, attack types and all that shit but i wont use most of it cause im turning this server into a 1.0 version
11/28/2009 08:27 Dr.And♥#5
Quote:
Originally Posted by t_dubble_uu View Post
your both welcome. Ive got almost all the features coded trade partners, locked items, mentor, mining, old style pk system and soc chance, gw, all skills, attack types and all that shit but i wont use most of it cause im turning this server into a 1.0 version
Nice! ;D
11/28/2009 12:09 hunterman01#6
Oh to your signature "dark angel"

I doubt it