Exemplo n.º 1
0
 private void AccountLoggingKickedMessageHandler(DofusClient client, AccountLoggingKickedMessage message)
 {
     client.Logger.Log(
         $"Compte kick pour {message.Days} jours, {message.Hours} heures, {message.Minutes} minutes :'( ",
         LogMessageType.Public);
     client.Dispose();
 }
Exemplo n.º 2
0
        private void SelectedServerRefusedMessageHandler(DofusClient client, SelectedServerRefusedMessage message)
        {
            client.Logger.Log($"Le serveur {D2OParsing.GetServerName(message.ServerId)} n'est pas accessible", LogMessageType.Public);
            switch ((ServerConnectionErrorEnum)message.Error)
            {
            case ServerConnectionErrorEnum.SERVER_CONNECTION_ERROR_DUE_TO_STATUS:
                client.Logger.Log($"Status du serveur: {(ServerStatusEnum)message.ServerStatus}", LogMessageType.Public);
                break;

            case ServerConnectionErrorEnum.SERVER_CONNECTION_ERROR_NO_REASON:
                break;

            case ServerConnectionErrorEnum.SERVER_CONNECTION_ERROR_ACCOUNT_RESTRICTED:
                break;

            case ServerConnectionErrorEnum.SERVER_CONNECTION_ERROR_COMMUNITY_RESTRICTED:
                break;

            case ServerConnectionErrorEnum.SERVER_CONNECTION_ERROR_LOCATION_RESTRICTED:
                break;

            case ServerConnectionErrorEnum.SERVER_CONNECTION_ERROR_SUBSCRIBERS_ONLY:
                break;

            case ServerConnectionErrorEnum.SERVER_CONNECTION_ERROR_REGULAR_PLAYERS_ONLY:
                break;
            }
            client.Dispose();
        }
Exemplo n.º 3
0
 private void IdentificationFailedBannedMessageHandler(DofusClient Client, IdentificationFailedBannedMessage Message)
 {
     if (Message.BanEndDate != 0)
     {
         Client.Logger.Log($"Votre compte est banni jusqu'au : {Message.BanEndDate.UnixTimestampToDateTime()}.", LogMessageType.Public);
     }
     else
     {
         Client.Logger.Log("Votre compte est banni pour : " + Message.Reason, LogMessageType.Public);
     }
     Client.Dispose();
 }
Exemplo n.º 4
0
        private void CharacterCreationResultMessageHandler(DofusClient client, CharacterCreationResultMessage message)
        {
            switch ((CharacterCreationResultEnum)message.Result)
            {
            case CharacterCreationResultEnum.OK:
                client.Account.Character.IsFirstConnection = true;
                break;

            case CharacterCreationResultEnum.ERR_NO_REASON:
                break;

            case CharacterCreationResultEnum.ERR_INVALID_NAME:
                client.Logger.Log($"Ce nom de personnage est invalide.", LogMessageType.Public);
                client.Dispose();
                break;

            case CharacterCreationResultEnum.ERR_NAME_ALREADY_EXISTS:
                client.Logger.Log($"Ce nom de personnage est déjà pris.", LogMessageType.Public);
                client.Dispose();
                break;

            case CharacterCreationResultEnum.ERR_TOO_MANY_CHARACTERS:
                client.Logger.Log($"Vous avez déjà atteint la limite de personnages disponible.", LogMessageType.Public);
                client.Dispose();
                break;

            case CharacterCreationResultEnum.ERR_NOT_ALLOWED:
                break;

            case CharacterCreationResultEnum.ERR_NEW_PLAYER_NOT_ALLOWED:
                break;

            case CharacterCreationResultEnum.ERR_RESTRICED_ZONE:
                break;

            case CharacterCreationResultEnum.ERR_INCONSISTENT_COMMUNITY:
                break;
            }
        }
Exemplo n.º 5
0
 private void IdentificationFailedMessageHandler(DofusClient Client, IdentificationFailedMessage Message)
 {
     Client.Logger.Log("Identification échouée !", LogMessageType.Public);
     Client.Logger.Log(((IdentificationFailureReasonEnum)Message.Reason).ToString(), LogMessageType.Public);
     Client.Dispose();
 }
Exemplo n.º 6
0
 private void CharacterNameSuggestionFailureMessageHandler(DofusClient client, CharacterNameSuggestionFailureMessage message)
 {
     client.Logger.Log($"{message.Reason}", LogMessageType.Public);
     client.Dispose();
 }