예제 #1
0
        /// <summary>
        /// Drop an item on the ground.
        /// </summary>
        /// <param name="client"></param>
        /// <param name="args"></param>
        public static void DropItem(Client client, params object[] args)
        {
            // Unique ID
            if (args[1] == null)
            {
                return;
            }

            // Boolean to drop all.
            if (args[2] == null)
            {
                return;
            }

            InventoryHandler.RemoveItemFromInventory(client, Convert.ToInt32(args[1]), Convert.ToBoolean(args[2]));
            SyncInventory(client);
        }