public static void DisplayNumericalValueMessageTreatment(Message message, byte[] packetDatas, AccountUC account) { DisplayNumericalValuePaddockMessage msg = (DisplayNumericalValuePaddockMessage)message; using (BigEndianReader reader = new BigEndianReader(packetDatas)) { msg.Deserialize(reader); } if ((int)msg.type == 1 && msg.rideId == account.CharacterBaseInformations.id) { if (account.Gather.resourceName == "Unknown") return; account.ModifBar(6, 0, 0, "Connecté"); account.Log(new ActionTextInformation("Ressource récoltée : " + account.Gather.resourceName + " +" + msg.value), 3); if (account.Gather.Stats.ContainsKey(account.Gather.resourceName)) account.Gather.Stats[account.Gather.resourceName] += msg.value; else account.Gather.Stats.Add(account.Gather.resourceName, msg.value); account.Gather.Current_Job.ActualizeStats(account.Gather.Stats); if (account.PerformGather() == false && account.Path != null) account.Path.PerformActionsStack(); } }