1. Trying to do this:

    Code:
    if (player.inventory.GetAmount(93029210) > 4 && player.inventory.GetAmount(1685058759) > 1 && player.inventory.GetAmount(-1063412582) > 1)
                {
                    // Delete the value for each item.
                  // I mean: Delete 4 units of xitem. Delete 1 unit of yitem. Delete 1 unit of zitem
                }
    Thanks
     
  2. Code:
    int amount = player.inventory.GetAmount(itemid##); //the amount of itemid the player has
    if (amount > 4) //if the amount the player has is greater than 4
    {
    player.inventory.Take(null, itemid##, 2); // take 2 of itemid from the players inventory
    }