Beispiel #1
0
        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);
        }
Beispiel #2
0
        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();
        }
Beispiel #3
0
 public static void OnProtocolRequired(DofusSocket client, ProtocolRequired message)
 {
     //
 }