public static async void OnHelloConnectMessage(DofusSocket client, HelloConnectMessage message) { client.Write("Connecté au serveur d'authentification."); var credentials = Rsa.Encrypt(message.Key, client.Account.Login, client.Account.Password, message.Salt); var version = new VersionExtended { Major = 2, Minor = 42, Release = 0, Revision = 121463, Patch = 6, BuildType = (sbyte)BuildTypeEnum.Release, Install = (sbyte)ClientInstallTypeEnum.ClientBundle, Technology = (sbyte)ClientTechnologyEnum.ClientAir }; var identificationMessage = new IdentificationMessage { Autoconnect = true, Credentials = credentials, FailedAttempts = new ushort[0], Lang = "fr", ServerId = 0, SessionOptionalSalt = 0, UseCertificate = false, UseLoginToken = false, Version = version }; client.Write("Envois des informations d'identification..."); await client.Send(identificationMessage); }
private static void Main(string[] args) { //Timing.Bench(); SerDesManager.GenerateExpressions(); var client = new DofusSocket("NomDeCompte", "MotDePasse"); client.Start(); //D2OManager.Init(); //D2OManager.DisplayAll<Server>(); Console.ReadKey(); }
public static void OnProtocolRequired(DofusSocket client, ProtocolRequired message) { // }