public override void OnDeath(Container c) { base.OnDeath(c); ObsidianStone ingut = new ObsidianStone(); c.DropItem(ingut); }
public override void OnDeath(Container c) { base.OnDeath(c); if (this.RealName == "a garnet grue") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "garnet stones"); c.DropItem(stones); } else if (this.RealName == "an obsidian grue") { ObsidianStone ingut = new ObsidianStone(); c.DropItem(ingut); } else if (this.RealName == "a quartz grue") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "quartz stones"); c.DropItem(stones); } else if (this.RealName == "a silver grue") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "silver stones"); c.DropItem(stones); } else if (this.RealName == "a spinel grue") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "spinel stones"); c.DropItem(stones); } else if (this.RealName == "a star ruby grue") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "star ruby stones"); c.DropItem(stones); } else if (this.RealName == "a topaz grue") { RareMetals stones = new RareMetals(Utility.RandomMinMax(5, 10), "topaz stones"); c.DropItem(stones); } }
public static int RelicValue(Item relics, Mobile m) { int RelicValue = 0; bool IsHenchman = false; if (m is HenchmanMonster || m is HenchmanFighter || m is HenchmanArcher || m is HenchmanWizard) { IsHenchman = true; } if (relics is DDRelicVase && (IsHenchman || m is VarietyDealer)) { DDRelicVase relic = (DDRelicVase)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicPainting && (IsHenchman || m is VarietyDealer)) { DDRelicPainting relic = (DDRelicPainting)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is EmptyCanopicJar && (IsHenchman || m is VarietyDealer)) { EmptyCanopicJar relic = (EmptyCanopicJar)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicBanner && (IsHenchman || m is VarietyDealer)) { DDRelicBanner relic = (DDRelicBanner)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicGrave && (IsHenchman || m is Necromancer || m is NecromancerGuildmaster || m is NecroMage || m is Witches)) { DDRelicGrave relic = (DDRelicGrave)relics; RelicValue = relic.RelicGoldValue; } // NECROMANCERS else if (relics is DDRelicPainting && (IsHenchman || m is Artist)) { DDRelicPainting relic = (DDRelicPainting)relics; RelicValue = relic.RelicGoldValue * 2; } // ARIST PAYS DOUBLE FOR PAINTINGS else if (relics is DDRelicBanner && relics.Name.Contains("painting") && (IsHenchman || m is Artist)) { DDRelicBanner relic = (DDRelicBanner)relics; RelicValue = relic.RelicGoldValue * 2; } // ARIST PAYS DOUBLE FOR PAINTINGS else if (relics is DDRelicLight1 && (IsHenchman || m is VarietyDealer)) { DDRelicLight1 relic = (DDRelicLight1)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicLight2 && (IsHenchman || m is VarietyDealer)) { DDRelicLight2 relic = (DDRelicLight2)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicLight3 && (IsHenchman || m is VarietyDealer)) { DDRelicLight3 relic = (DDRelicLight3)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicArts && (IsHenchman || m is VarietyDealer)) { DDRelicArts relic = (DDRelicArts)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicStatue && (IsHenchman || m is VarietyDealer)) { DDRelicStatue relic = (DDRelicStatue)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicRugAddonDeed && (IsHenchman || m is VarietyDealer)) { DDRelicRugAddonDeed relic = (DDRelicRugAddonDeed)relics; RelicValue = relic.RelicGoldValue; } // ART COLLECTOR else if (relics is DDRelicWeapon && (IsHenchman || m is Weaponsmith)) { DDRelicWeapon relic = (DDRelicWeapon)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicArmor && (IsHenchman || m is Armorer)) { DDRelicArmor relic = (DDRelicArmor)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicJewels && (IsHenchman || m is Jeweler)) { DDRelicJewels relic = (DDRelicJewels)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicGem && (IsHenchman || m is Jeweler)) { DDRelicGem relic = (DDRelicGem)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicInstrument && (IsHenchman || m is Bard)) { DDRelicInstrument relic = (DDRelicInstrument)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicScrolls && (IsHenchman || m is Mage)) { DDRelicScrolls relic = (DDRelicScrolls)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicClock1 && (IsHenchman || m is Tinker)) { DDRelicClock1 relic = (DDRelicClock1)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicClock2 && (IsHenchman || m is Tinker)) { DDRelicClock2 relic = (DDRelicClock2)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicClock3 && (IsHenchman || m is Tinker)) { DDRelicClock3 relic = (DDRelicClock3)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicCloth && (IsHenchman || m is Tailor)) { DDRelicCloth relic = (DDRelicCloth)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicFur && (IsHenchman || m is Furtrader)) { DDRelicFur relic = (DDRelicFur)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicLeather && (IsHenchman || m is LeatherWorker)) { DDRelicLeather relic = (DDRelicLeather)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicDrink && (IsHenchman || m is TavernKeeper)) { DDRelicDrink relic = (DDRelicDrink)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicReagent && (IsHenchman || m is Alchemist)) { DDRelicReagent relic = (DDRelicReagent)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicAlchemy && (IsHenchman || m is Alchemist)) { DDRelicAlchemy relic = (DDRelicAlchemy)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicReagent && (IsHenchman || m is Witches)) { DDRelicReagent relic = (DDRelicReagent)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicAlchemy && (IsHenchman || m is Witches)) { DDRelicAlchemy relic = (DDRelicAlchemy)relics; RelicValue = relic.RelicGoldValue; } else if (relics is ObsidianStone && (IsHenchman || m is StoneCrafter)) { ObsidianStone relic = (ObsidianStone)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicCoins && (IsHenchman || m is Minter)) { DDRelicCoins relic = (DDRelicCoins)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicOrbs && (IsHenchman || m is Mage)) { DDRelicOrbs relic = (DDRelicOrbs)relics; RelicValue = relic.RelicGoldValue; } else if (relics is HighSeasRelic && (IsHenchman || m is Shipwright)) { HighSeasRelic relic = (HighSeasRelic)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicBook && (IsHenchman || m is Scribe)) { DDRelicBook relic = (DDRelicBook)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicTablet && (IsHenchman || m is Sage)) { DDRelicTablet relic = (DDRelicTablet)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DDRelicBearRugsAddonDeed && (IsHenchman || m is Furtrader)) { DDRelicBearRugsAddonDeed relic = (DDRelicBearRugsAddonDeed)relics; RelicValue = relic.RelicGoldValue; } else if (relics is DynamicBook && (IsHenchman || m is Scribe)) { RelicValue = Utility.RandomMinMax(20, 100); } else if (relics is DynamicBook && (IsHenchman || m is Sage)) { RelicValue = Utility.RandomMinMax(20, 100); } if (relics is DDRelicBook || relics is DDRelicTablet || relics is DDRelicScrolls) { RelicValue = (int)(RelicValue * (1 + (m.Skills[SkillName.Inscribe].Value * 0.01))); } return(RelicValue); }