コード例 #1
0
        public static void PlayerStatusUpdateMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            PlayerStatusUpdateMessage msg = (PlayerStatusUpdateMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            if (msg.playerId == account.CharacterBaseInformations.id)
            {
                switch (msg.status.statusId)
                {
                case 10:
                    account.Log(new ActionTextInformation("Statut disponible activé."), 3);
                    break;

                case 20:
                    account.Log(new ActionTextInformation("Statut absent activé."), 3);
                    PlayerStatusUpdateRequestMessage nmsg = new PlayerStatusUpdateRequestMessage(new PlayerStatus(10));
                    account.SocketManager.Send(nmsg);
                    break;

                case  40:
                    account.Log(new ActionTextInformation("Statut solo activé."), 3);
                    break;

                case 30:
                    account.Log(new ActionTextInformation("Statut privé activé."), 3);
                    break;
                }
            }
        }
コード例 #2
0
 public static Task HandlePlayerStatusUpdateMessage(Account account, PlayerStatusUpdateMessage message)
 => Task.Run(() => account.Game.Character.Update(message));
コード例 #3
0
 private void PlayerStatusUpdateMessageHandler(DofusClient client, PlayerStatusUpdateMessage message)
 {
     //
 }