예제 #1
0
 public void Update(IdentificationFailedForBadVersionMessage msg)
 {
     if (msg == null)
     {
         throw new ArgumentNullException("msg");
     }
     RequieredVersion = msg.requiredVersion;
 }
예제 #2
0
        public static void IdentificationFailedForBadVersionMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            IdentificationFailedForBadVersionMessage identificationFailedForBadVersionMessage = (IdentificationFailedForBadVersionMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                identificationFailedForBadVersionMessage.Deserialize(reader);
            }
            account.Log(new ErrorTextInformation("Echec de connexion : Dofus a été mis à jour ("
                                                 + identificationFailedForBadVersionMessage.requiredVersion.major + "."
                                                 + identificationFailedForBadVersionMessage.requiredVersion.minor + "."
                                                 + identificationFailedForBadVersionMessage.requiredVersion.release + "."
                                                 + identificationFailedForBadVersionMessage.requiredVersion.revision + "."
                                                 + identificationFailedForBadVersionMessage.requiredVersion.patch + "."
                                                 + identificationFailedForBadVersionMessage.requiredVersion.buildType + ")."
                                                 + " BlueSheep supporte uniquement la version " + GameConstants.Major + "."
                                                 + GameConstants.Minor + "." + GameConstants.Release + "."
                                                 + GameConstants.Revision + "." + GameConstants.Patch + "."
                                                 + GameConstants.BuildType + " du jeu. Consultez le forum pour être alerté de la mise à jour du bot."), 0);
            account.SocketManager.DisconnectFromGUI();
        }
예제 #3
0
 private void IdentificationFailedForBadVersionMessageHandler(DofusClient Client, IdentificationFailedForBadVersionMessage Message)
 {
     //
 }
예제 #4
0
 private void HandleIdentificationFailedForBadVersionMessage(IAccount account,
                                                             IdentificationFailedForBadVersionMessage message)
 {
     Logger.Default.Log($"Wrong Dofus version. -> {message.RequiredVersion}");
 }
예제 #5
0
 private void HandleIdentificationFailedForBadVersion(IdentificationFailedForBadVersionMessage msg)
 {
     Console.WriteLine("Bad version !");
 }
예제 #6
0
 private void IdentificationFailedForBadVersionMessageHandler(DofusClient client,
                                                              IdentificationFailedForBadVersionMessage message)
 {
     client.Logger.Log("La version n'est pas bonne. Version requise : " + message.RequiredVersion,
                       LogMessageType.Public);
 }
 public static void HandleIdentificationFailedForBadVersionMessage(Bot bot, IdentificationFailedForBadVersionMessage message)
 {
     bot.ClientInformations.Update(message);
     bot.OnCharacterIdentified(false);
 }