Example #1
0
        void InvMgr_ItemChargeUsed(object sender, ItemChargeUseEventArgs e)
        {
            MoveItem mi = new MoveItem() { FromSlot = e.SlotID, NumberInStack = 0xFFFFFFFF, ToSlot = 0xFFFFFFFF };
            EQApplicationPacket<MoveItem> miPack = new EQApplicationPacket<MoveItem>(AppOpCode.DeleteCharge, mi);

            for (int i = 0; i < e.Charges; i++)
                this.Client.SendApplicationPacket(miPack);
        }
        protected void OnItemChargeUsed(ItemChargeUseEventArgs e)
        {
            EventHandler<ItemChargeUseEventArgs> handler = ItemChargeUsed;

            if (handler != null)
                handler(this, e);
        }