Esempio n. 1
0
        public static void Test(uint status, AccountUC account)
        {
            switch (status)
            {
                case m_Offline:
                   account.Log(new ConnectionTextInformation("Echec de connexion : serveur déconnecté."),0);
                   account.TryReconnect(600);
                    break;

                case m_Saving:
                    account.Log(new ConnectionTextInformation("Echec de connexion : serveur en sauvegarde."),0);
                    account.TryReconnect(600);
                    break;

                case m_Full:
                    account.Log(new ConnectionTextInformation("Echec de connexion : serveur complet."),0);
                    account.TryReconnect(60);
                    break;

                default:
                    account.Log(new ConnectionTextInformation("Echec de connexion : raison inconnue."),0);
                    account.TryReconnect(30);
                    break;
            }
        }
        public static void Test(int reason, AccountUC account)
        {
            switch (reason)
            {
                case m_WrongCredentials:
                    account.Log(new ErrorTextInformation("Echec de connexion : mauvais identifiants."),0);
                    break;

                case m_Banned:
                    account.Log(new ErrorTextInformation("Echec de connexion : compte banni."), 0);
                    break;

                case m_Kicked:
                    account.Log(new ErrorTextInformation("Echec de connexion : compte banni temporairement."), 0);
                    break;

                case m_InMaintenance:
                    account.Log(new ErrorTextInformation("Echec de connexion : serveur en maintenance."), 0);
                    account.TryReconnect(15);
                    break;

                default:
                    account.Log(new ErrorTextInformation("Echec de connexion : erreur inconnue."), 0);
                    break;
            }
        }
Esempio n. 3
0
 public static void ServerListMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
 {
     account.Log(new ConnectionTextInformation("Serveur complet."), 0);
     account.TryReconnect(600);
 }
Esempio n. 4
0
 public static void CharacterSelectedErrorMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
 {
     account.Log(new ConnectionTextInformation("Erreur lors de la sélection du personnage."),0);
     account.TryReconnect(30);
 }