public override void OnResponse(NetState state, RelayInfo info)
        {
            Mobile from = state.Mobile;

            switch (info.ButtonID)
            {
            case 0: //Close Gump
            {
                from.CloseGump(typeof(ArtifactGump));
                break;
            }

            case 1:  // Axe of the Heavens
            {
                Item item = new AxeOfTheHeavens();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 2: // Blade of insanity
            {
                Item item = new BladeOfInsanity();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 3: //Blade of the Righteous
            {
                Item item = new BladeOfTheRighteous();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 4: //Bone Crusher
            {
                Item item = new BoneCrusher();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 5: //Breath of the Dead
            {
                Item item = new BreathOfTheDead();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 6: //Frostbringer
            {
                Item item = new Frostbringer();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 7: //Legacy of the Dread Lord
            {
                Item item = new LegacyOfTheDreadLord();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 8: //Serpent's Fang
            {
                Item item = new SerpentsFang();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 9: //Staff of the Magi
            {
                Item item = new StaffOfTheMagi();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 10: //The Beserker's Maul
            {
                Item item = new TheBeserkersMaul();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 11: //The Dragon Slayer
            {
                Item item = new TheDragonSlayer();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 12: //Titans Hammer
            {
                Item item = new TitansHammer();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 13: //The Taskmaster
            {
                Item item = new TheTaskmaster();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 14: //Zyronic Claw
            {
                Item item = new ZyronicClaw();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 15: //The Dryad Bow
            {
                Item item = new TheDryadBow();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 16: //Armor of Fortune
            {
                Item item = new ArmorOfFortune();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 17: //Gauntlets of Nobility
            {
                Item item = new GauntletsOfNobility();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 18: //Helm of Insight
            {
                Item item = new HelmOfInsight();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 19: //Holy Knights Breastplate
            {
                Item item = new HolyKnightsBreastplate();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 20: //Jackal's Collar
            {
                Item item = new JackalsCollar();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 21: //Leggings of Bane
            {
                Item item = new LeggingsOfBane();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 22: //Midnight Bracers
            {
                Item item = new MidnightBracers();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 23: //Ornate Crown of the Harrower
            {
                Item item = new OrnateCrownOfTheHarrower();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 24: //Shadow Dancer Leggings
            {
                Item item = new ShadowDancerLeggings();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 25: //Inquisitor's Resolution
            {
                Item item = new InquisitorsResolution();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 26: //Tunic of Fire
            {
                Item item = new TunicOfFire();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 27: //Voice of the Fallen King
            {
                Item item = new VoiceOfTheFallenKing();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 29: //Bracelet of Health
            {
                Item item = new BraceletOfHealth();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 30: //Ornament of the Magician
            {
                Item item = new OrnamentOfTheMagician();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 31: //Ring of the Elements
            {
                Item item = new RingOfTheElements();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 32: //Ring of the Vile
            {
                Item item = new RingOfTheVile();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 34: //Aegis
            {
                Item item = new Aegis();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 35: //Arcane Shield
            {
                Item item = new ArcaneShield();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 36: //Divine Countenance
            {
                Item item = new DivineCountenance();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 37: //Hat of the Magi
            {
                Item item = new HatOfTheMagi();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 38: //Hunters Headdress
            {
                Item item = new HuntersHeaddress();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }

            case 39: //Spirit of the Totem
            {
                Item item = new SpiritOfTheTotem();
                item.LootType = LootType.Blessed;
                from.AddToBackpack(item);
                from.CloseGump(typeof(ArtifactGump));
                m_Deed.Delete();
                break;
            }
            }
        }
Esempio n. 2
0
        public static void CheckProperties(Item item)
        {
            if (item is PrimerOnArmsTalisman && ((PrimerOnArmsTalisman)item).Attributes.AttackChance != 10)
            {
                ((PrimerOnArmsTalisman)item).Attributes.AttackChance = 10;
            }

            if (item is ClaininsSpellbook && ((ClaininsSpellbook)item).Attributes.LowerManaCost != 10)
            {
                ((ClaininsSpellbook)item).Attributes.LowerManaCost = 10;
            }

            if (item is CrimsonCincture && ((CrimsonCincture)item).Attributes.BonusDex != 10)
            {
                ((CrimsonCincture)item).Attributes.BonusDex = 10;
            }

            if (item is CrystallineRing && ((CrystallineRing)item).Attributes.CastRecovery != 3)
            {
                ((CrystallineRing)item).Attributes.CastRecovery = 3;
            }

            if (item is HumanFeyLeggings)
            {
                HumanFeyLeggings fey = (HumanFeyLeggings)item;

                if (fey.PhysicalBonus != 3)
                {
                    fey.PhysicalBonus = 3;
                }

                if (fey.FireBonus != 3)
                {
                    fey.FireBonus = 3;
                }

                if (fey.ColdBonus != 3)
                {
                    fey.ColdBonus = 3;
                }

                if (fey.EnergyBonus != 3)
                {
                    fey.EnergyBonus = 3;
                }
            }

            if (item is FoldedSteelGlasses && ((FoldedSteelGlasses)item).Attributes.DefendChance != 25)
            {
                ((FoldedSteelGlasses)item).Attributes.DefendChance = 25;
            }

            if (item is HeartOfTheLion)
            {
                HeartOfTheLion lion = (HeartOfTheLion)item;

                if (lion.PhysicalBonus != 5)
                {
                    lion.PhysicalBonus = 5;
                }

                if (lion.FireBonus != 5)
                {
                    lion.FireBonus = 5;
                }

                if (lion.ColdBonus != 5)
                {
                    lion.ColdBonus = 5;
                }

                if (lion.PoisonBonus != 5)
                {
                    lion.PoisonBonus = 5;
                }

                if (lion.EnergyBonus != 5)
                {
                    lion.EnergyBonus = 5;
                }
            }

            if (item is HuntersHeaddress)
            {
                HuntersHeaddress hunters = (HuntersHeaddress)item;

                if (hunters.Resistances.Physical != 8)
                {
                    hunters.Resistances.Physical = 8;
                }

                if (hunters.Resistances.Fire != 4)
                {
                    hunters.Resistances.Fire = 4;
                }

                if (hunters.Resistances.Cold != -8)
                {
                    hunters.Resistances.Cold = -8;
                }

                if (hunters.Resistances.Poison != 9)
                {
                    hunters.Resistances.Poison = 9;
                }

                if (hunters.Resistances.Energy != 3)
                {
                    hunters.Resistances.Energy = 3;
                }
            }

            if (item is KasaOfTheRajin && ((KasaOfTheRajin)item).Attributes.DefendChance != 10)
            {
                ((KasaOfTheRajin)item).Attributes.DefendChance = 10;
            }

            if (item is MaceAndShieldGlasses && ((MaceAndShieldGlasses)item).Attributes.WeaponDamage != 10)
            {
                ((MaceAndShieldGlasses)item).Attributes.WeaponDamage = 10;
            }

            if (item is VesperOrderShield && ((VesperOrderShield)item).Attributes.CastSpeed != 0)
            {
                ((VesperOrderShield)item).Attributes.CastSpeed = 0;

                if (item.Name != "Order Shield")
                {
                    item.Name = "Order Shield";
                }
            }

            if (item is OrnamentOfTheMagician && ((OrnamentOfTheMagician)item).Attributes.RegenMana != 3)
            {
                ((OrnamentOfTheMagician)item).Attributes.RegenMana = 3;
            }

            if (item is RingOfTheVile && ((RingOfTheVile)item).Attributes.AttackChance != 25)
            {
                ((RingOfTheVile)item).Attributes.AttackChance = 25;
            }

            if (item is RuneBeetleCarapace)
            {
                RuneBeetleCarapace carapace = (RuneBeetleCarapace)item;

                if (carapace.PhysicalBonus != 3)
                {
                    carapace.PhysicalBonus = 3;
                }

                if (carapace.FireBonus != 3)
                {
                    carapace.FireBonus = 3;
                }

                if (carapace.ColdBonus != 3)
                {
                    carapace.ColdBonus = 3;
                }

                if (carapace.PoisonBonus != 3)
                {
                    carapace.PoisonBonus = 3;
                }

                if (carapace.EnergyBonus != 3)
                {
                    carapace.EnergyBonus = 3;
                }
            }

            if (item is SpiritOfTheTotem)
            {
                SpiritOfTheTotem totem = (SpiritOfTheTotem)item;

                if (totem.Resistances.Fire != 7)
                {
                    totem.Resistances.Fire = 7;
                }

                if (totem.Resistances.Cold != 2)
                {
                    totem.Resistances.Cold = 2;
                }

                if (totem.Resistances.Poison != 6)
                {
                    totem.Resistances.Poison = 6;
                }

                if (totem.Resistances.Energy != 6)
                {
                    totem.Resistances.Energy = 6;
                }
            }

            if (item is Stormgrip && ((Stormgrip)item).Attributes.AttackChance != 10)
            {
                ((Stormgrip)item).Attributes.AttackChance = 10;
            }

            if (item is InquisitorsResolution)
            {
                InquisitorsResolution inquis = (InquisitorsResolution)item;

                if (inquis.PhysicalBonus != 5)
                {
                    inquis.PhysicalBonus = 5;
                }

                if (inquis.FireBonus != 7)
                {
                    inquis.FireBonus = 7;
                }

                if (inquis.ColdBonus != -2)
                {
                    inquis.ColdBonus = -2;
                }

                if (inquis.PoisonBonus != 7)
                {
                    inquis.PoisonBonus = 7;
                }

                if (inquis.EnergyBonus != -7)
                {
                    inquis.EnergyBonus = -7;
                }
            }

            if (item is TomeOfLostKnowledge && ((TomeOfLostKnowledge)item).Attributes.RegenMana != 3)
            {
                ((TomeOfLostKnowledge)item).Attributes.RegenMana = 3;
            }

            if (item is WizardsCrystalGlasses)
            {
                WizardsCrystalGlasses glasses = (WizardsCrystalGlasses)item;

                if (glasses.PhysicalBonus != 5)
                {
                    glasses.PhysicalBonus = 5;
                }

                if (glasses.FireBonus != 5)
                {
                    glasses.FireBonus = 5;
                }

                if (glasses.ColdBonus != 5)
                {
                    glasses.ColdBonus = 5;
                }

                if (glasses.PoisonBonus != 5)
                {
                    glasses.PoisonBonus = 5;
                }

                if (glasses.EnergyBonus != 5)
                {
                    glasses.EnergyBonus = 5;
                }
            }
        }