Beispiel #1
0
        private void createItem()
        {
            DSRItemCategory category = cmbCategory.SelectedItem as DSRItemCategory;
            DSRItem         item     = lbxItems.SelectedItem as DSRItem;
            int             id       = item.ID;

            if (item.UpgradeType == DSRItem.Upgrade.PyroFlame || item.UpgradeType == DSRItem.Upgrade.PyroFlameAscended)
            {
                id += (int)nudUpgrade.Value * 100;
            }
            else
            {
                id += (int)nudUpgrade.Value;
            }
            if (item.UpgradeType == DSRItem.Upgrade.Infusable || item.UpgradeType == DSRItem.Upgrade.InfusableRestricted)
            {
                DSRInfusion infusion = cmbInfusion.SelectedItem as DSRInfusion;
                id += infusion.Value;
            }
            Hook.GetItem(category.ID, id, (int)nudQuantity.Value);
        }
Beispiel #2
0
        private void cmbInfusion_SelectedIndexChanged(object sender, EventArgs e)
        {
            DSRInfusion infusion = cmbInfusion.SelectedItem as DSRInfusion;

            nudUpgrade.Maximum = infusion.MaxUpgrade;
        }