예제 #1
0
 private unsafe void HandleEquip(GameClient Client, ItemUsage* Packet)
 {
     ConquerItem Item;
     if (Client.TryGetInventory(Packet->ID, out Item))
     {
         Item.Position = (ItemPosition)Packet->Location;
         Client.AddEquipment(Item, Item.Position);
         Client.RemoveInventory(Item);
     }
 }
예제 #2
0
        private unsafe void HandleEquip(GameClient Client, ItemUsage *Packet)
        {
            ConquerItem Item;

            if (Client.TryGetInventory(Packet->ID, out Item))
            {
                Item.Position = (ItemPosition)Packet->Location;
                Client.AddEquipment(Item, Item.Position);
                Client.RemoveInventory(Item);
            }
        }