예제 #1
0
 protected override void OnTraderItemMoved(Trader trader, TradeItem item, bool modified, int difference)
 {
     base.OnTraderItemMoved(trader, item, modified, difference);
     if (item.Stack == 0u)
     {
         InventoryHandler.SendExchangeObjectRemovedMessage(base.FirstTrader.Character.Client, trader != base.FirstTrader, item.Guid);
         InventoryHandler.SendExchangeObjectRemovedMessage(base.SecondTrader.Character.Client, trader != base.SecondTrader, item.Guid);
     }
     else
     {
         if (modified)
         {
             InventoryHandler.SendExchangeObjectModifiedMessage(base.FirstTrader.Character.Client, trader != base.FirstTrader, item);
             InventoryHandler.SendExchangeObjectModifiedMessage(base.SecondTrader.Character.Client, trader != base.SecondTrader, item);
         }
         else
         {
             InventoryHandler.SendExchangeObjectAddedMessage(base.FirstTrader.Character.Client, trader != base.FirstTrader, item);
             InventoryHandler.SendExchangeObjectAddedMessage(base.SecondTrader.Character.Client, trader != base.SecondTrader, item);
         }
     }
 }
예제 #2
0
 protected override void OnTraderKamasChanged(Trader trader, uint amount)
 {
     base.OnTraderKamasChanged(trader, amount);
     InventoryHandler.SendExchangeKamaModifiedMessage(base.FirstTrader.Character.Client, trader != base.FirstTrader, (int)amount);
 }
예제 #3
0
 protected override void OnTraderReadyStatusChanged(Trader trader, bool status)
 {
     base.OnTraderReadyStatusChanged(trader, status);
     InventoryHandler.SendExchangeIsReadyMessage(base.FirstTrader.Character.Client, trader, status);
     InventoryHandler.SendExchangeIsReadyMessage(base.SecondTrader.Character.Client, trader, status);
 }