public static void Init(string address) { Server = new LuServer(1001, 1000, address); Server.AddHandler((byte) RemoteConnection.Auth, (byte) MsgAuthLoginRequest, new LoginRequestHandler()); Server. Start(Config.Current.EncryptPackets); new Thread(Command).Start(); }
public static void Init(string address) { Server = new LuServer(2006, 1000, address); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientValidation, new ClientValidationHandler()); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientLoginRequest, new ClientLoginRequestHandler()); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientCharacterListRequest, new CharacterListRequestHandler()); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientCharacterCreateRequest, new ClientCharacterCreateRequestHandler()); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientCharacterDeleteRequest, new ClientCharacterDeleteRequestHandler()); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientCharacterRenameRequest, new ClientCharacterRenameRequestHandler()); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientLevelLoadComplete, new ClientLevelLoadCompleteHandler()); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientGameMsg, new ClientGameMsgHandler()); Server.AddHandler((ushort) RemoteConnection.World, (uint) MsgWorldClientRoutePacket, new ClientRoutePacketHandler()); Server.Start(Config.Current.EncryptPackets); }