コード例 #1
0
 public static void HandleExchangeBuy(ExchangeBuyMessage message, WorldClient client)
 {
     if (client.Character.IsInExchange(ExchangeTypeEnum.NPC_SHOP))
     {
         client.Character.GetDialog <NpcShopExchange>().Buy((ushort)message.objectToBuyId, message.quantity);
     }
 }
コード例 #2
0
 public static void HandleExchangeBuy(ExchangeBuyMessage message, WorldClient client)
 {
     if (client.Character.NpcShopExchange != null)
     {
         client.Character.NpcShopExchange.Buy((ushort)message.objectToBuyId, message.quantity);
     }
 }
コード例 #3
0
        public static void HandleExchangeBuyMessage(WorldClient client, ExchangeBuyMessage message)
        {
            IShopDialog shopDialog = client.Character.Dialog as IShopDialog;

            if (shopDialog != null)
            {
                shopDialog.BuyItem((int)message.objectToBuyId, (uint)message.quantity);
            }
        }
コード例 #4
0
        public static void HandleExchangeBuyMessage(WorldClient client, ExchangeBuyMessage message)
        {
            var dialog = client.Character.Dialog as IShopDialog;

            if (dialog != null)
            {
                dialog.BuyItem(message.objectToBuyId, message.quantity);
            }
        }