Ejemplo n.º 1
0
 public void Update(ExchangeRequestedTradeMessage message)
 {
     if (message.ExchangeType == 1 && message.Target == _account.Game.Character.Id)
     {
         ExchangeRequested?.Invoke((int)message.Source);
     }
 }
Ejemplo n.º 2
0
        public static void ExchangeRequestedTradeMessageTreatment(Message message, byte[] packetDatas, AccountUC account)
        {
            ExchangeRequestedTradeMessage msg = (ExchangeRequestedTradeMessage)message;

            using (BigEndianReader reader = new BigEndianReader(packetDatas))
            {
                msg.Deserialize(reader);
            }
            if (account.GestItemsUC.ListenerBox.Checked)
            {
                account.Inventory.AcceptExchange();
            }
        }
Ejemplo n.º 3
0
 private void HandleExchangeRequestedTradeMessage(IAccount account, ExchangeRequestedTradeMessage message)
 {
     Logger.Default.Log($"Le joueur id: {message.Source} vous demande en échange.", LogMessageType.Info);
     account.Network.SendToServer(new ExchangeAcceptMessage());
 }
Ejemplo n.º 4
0
 private void ExchangeRequestedTradeMessageHandler(DofusClient client, ExchangeRequestedTradeMessage message)
 {
     client.Logger.Log($"Le joueur id: {message.Source} vous demande en échange.", LogMessageType.Info);
     client.Send(new ExchangeAcceptMessage());
 }
Ejemplo n.º 5
0
 public static Task HandleExchangeRequestedTradeMessage(Account account, ExchangeRequestedTradeMessage message)
 => Task.Run(async() =>
 {
     await Task.Delay(200);
     account.Game.Exchange.Update(message);
 });