public static void HandleExchangeOnHumanVendorRequestMessage(WorldClient client, ExchangeOnHumanVendorRequestMessage message)
        {
            Merchant actor = client.Character.Map.GetActor <Merchant>((int)message.humanVendorId);

            if (actor != null && (int)actor.Cell.Id == message.humanVendorCell)
            {
                MerchantShopDialog merchantShopDialog = new MerchantShopDialog(actor, client.Character);
                merchantShopDialog.Open();
            }
        }
Пример #2
0
        public static void HandleExchangeOnHumanVendorRequestMessage(WorldClient client, ExchangeOnHumanVendorRequestMessage message)
        {
            var merchant = client.Character.Map.GetActor <Merchant>((int)message.humanVendorId);

            if (merchant == null || merchant.Cell.Id != message.humanVendorCell)
            {
                return;
            }

            var shop = new MerchantShopDialog(merchant, client.Character);

            shop.Open();
        }