Esempio n. 1
0
        public void AddItemToShop(byte sourceWindow, UInt16 sourceSlot, UInt32 destinationSlot, UInt64 price)
        {
            CShopAddItemPacket packet = new CShopAddItemPacket();

            packet.SourceInventory = sourceWindow;
            packet.SourceSlot      = sourceSlot;
            packet.DestinationSlot = destinationSlot;
            packet.Price           = price;
            virtualClient.SendPacket(packet);
        }
Esempio n. 2
0
        public void Sell(byte srcWindow, UInt16 srcSlot, UInt32 dstSlot, UInt64 price)
        {
            CShopAddItemPacket packet = new CShopAddItemPacket()
            {
                DestinationSlot = dstSlot,
                Price           = price,
                SourceInventory = srcWindow,
                SourceSlot      = srcSlot
            };

            virtualClient.SendPacket(packet);
        }