Example #1
0
 private Task HandleInteractiveUseEndedMessage(Account account, InteractiveUseEndedMessage message)
 => Task.Run(() =>
 {
     _account.State = Enums.AccountStates.NONE;
     _account.Logger.LogDebug(LanguageManager.Translate("133"), LanguageManager.Translate("126"));
     OnGatherFinished(GatherResults.GATHERED);
 });
        public void HandleInteractiveUseEndedMessage(Bot bot, InteractiveUseEndedMessage message)
        {
            var interactive = bot.Character.Map.GetInteractive(message.elemId);

            if (interactive != null)
            {
                interactive.NotifyInteractiveUseEnded();
            }
        }
Example #3
0
        private void HandleMapComplementaryInformationsDataMessage(InteractiveUseEndedMessage message, ConnectedHost source)
        {
            ElementModel value;

            if (Interactives.TryGetValue((int)message.elemId, out value))
            {
                value.Enabled = false;
            }

            OnUpdated();
        }
Example #4
0
        public static void InteractiveUseEndedMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            InteractiveUseEndedMessage msg = (InteractiveUseEndedMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            if (account.Gather.Id == -1)
            {
                return;
            }
            account.SetStatus(Status.None);
            if (account.PerformGather() == false && account.Path != null)
            {
                account.Path.PerformActionsStack();
            }
        }
 public static void HandleInteractiveUseEndedMessage(WorldClient client, InteractiveUseEndedMessage message)
 {
 }
Example #6
0
 private void InteractiveUseEndedMessageHandler(DofusClient client, InteractiveUseEndedMessage message)
 {
     client.Account.Character.Status = CharacterStatus.None;
 }
Example #7
0
 private void InteractiveUseEndedMessageHandler(DofusClient Client, InteractiveUseEndedMessage Message)
 {
     //
 }
Example #8
0
 private void HandleInteractiveUseEndedMessage(IAccount arg1, InteractiveUseEndedMessage arg2)
 {
     Logger.Default.Log("HandleInteractiveUseEndedMessage", API.Utils.Enums.LogMessageType.Error);
     _account.PerformAction(Gather, 1000);
 }