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; } } }
public static Task HandlePlayerStatusUpdateMessage(Account account, PlayerStatusUpdateMessage message) => Task.Run(() => account.Game.Character.Update(message));
private void PlayerStatusUpdateMessageHandler(DofusClient client, PlayerStatusUpdateMessage message) { // }