Ejemplo n.º 1
0
        public static void GameFightTurnStartPlayingMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            GameFightTurnStartPlayingMessage msg = (GameFightTurnStartPlayingMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            //account.Fight.PerformAutoTimeoutFight(100);
            if (account.Fight != null)
            {
                account.Fight.FightTurn();
            }
        }
Ejemplo n.º 2
0
        public static void GameFightTurnStartPlayingMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            GameFightTurnStartPlayingMessage msg = (GameFightTurnStartPlayingMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            account.FightData.TurnStarted();
            if (account.Fight != null)
            {
                account.Fight.flag = 1;
                account.Fight.ExecutePlan();
            }
            else
            {
                account.Log(new ErrorTextInformation("Aucune IA, le bot ne peut pas combattre !"), 0);
            }
        }
Ejemplo n.º 3
0
 private void HandleGameFightTurnStartPlayingMessage(IAccount account, GameFightTurnStartPlayingMessage message)
 {
     TurnStarted?.Invoke();
 }
Ejemplo n.º 4
0
 private void HandleMapComplementaryInformationsDataMessage(GameFightTurnStartPlayingMessage message, ConnectedHost source)
 {
     IA.SpellsLauncher.StartFight();
 }
Ejemplo n.º 5
0
 private void GameFightTurnStartPlayingMessageHandler(DofusClient client,
                                                      GameFightTurnStartPlayingMessage message)
 {
     //
 }