public override void SendSlot(int index, params Player[] players)
        {
            InventorySlotPacket pk = new InventorySlotPacket();

            pk.Slot        = (uint)index;
            pk.Item        = this.GetItem(index);
            pk.InventoryId = this.Type;
            Player player = this.Holder;

            player.SendPacket(pk);
        }
        public virtual void SendSlot(int index, params Player[] players)
        {
            InventorySlotPacket pk = new InventorySlotPacket();

            pk.Slot = (uint)index;
            pk.Item = this.GetItem(index);
            for (int i = 0; i < players.Length; ++i)
            {
                Player player = players[i];
                pk.InventoryId = this.Type;
                player.SendPacket(pk);
            }
        }
Ejemplo n.º 3
0
        public override void SendSlot(int index, params Player[] players)
        {
            InventorySlotPacket pk = new InventorySlotPacket
            {
                Slot = (uint)index,
                Item = this.GetItem(index)
            };

            for (int i = 0; i < players.Length; ++i)
            {
                Player player = players[i];
                pk.InventoryId = player.Inventory.OpendWindowId;
                player.SendPacket(pk);
            }
        }