public override void OnDeath(Container c) { base.OnDeath(c); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 10) == 1) { DragonLamp lamp = new DragonLamp(); lamp.Hue = 0x4E8; lamp.LampName = this.Name + " " + this.Title; lamp.LampColor = "Amber"; c.DropItem(lamp); } } } }
public override void OnDeath(Container c) { base.OnDeath(c); Item scale = new HardScales(Utility.RandomMinMax(15, 20), "marble scales"); c.DropItem(scale); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 25) == 1) { DragonLamp lamp = new DragonLamp(); lamp.Hue = this.Hue; lamp.LampName = ""; lamp.LampColor = "Stone"; c.DropItem(lamp); } } } }
public override void OnDeath(Container c) { base.OnDeath(c); DragonTooth ingut = new DragonTooth(); ingut.Amount = Utility.RandomMinMax(1, 2); c.DropItem(ingut); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 5) == 1 && !Server.Items.CharacterDatabase.GetSpecialsKilled(killer, "DragonKing")) { Server.Items.CharacterDatabase.SetSpecialsKilled(killer, "DragonKing"); ManualOfItems book = new ManualOfItems(); book.Hue = 0x6DF; book.Name = "Tome of Dragon King Relics"; book.m_Charges = 1; book.m_Skill_1 = 99; book.m_Skill_2 = 0; book.m_Skill_3 = 0; book.m_Skill_4 = 0; book.m_Skill_5 = 0; book.m_Value_1 = 20.0; book.m_Value_2 = 0.0; book.m_Value_3 = 0.0; book.m_Value_4 = 0.0; book.m_Value_5 = 0.0; book.m_Slayer_1 = 6; book.m_Slayer_2 = 0; book.m_Owner = null; book.m_Extra = "of the Dragon King"; book.m_FromWho = "Taken from the King of Dragons"; book.m_HowGiven = "Acquired by"; book.m_Points = 150; book.m_Hue = 0x6DF; c.DropItem(book); } if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 10) == 1) { DragonLamp lamp = new DragonLamp(); lamp.Hue = 0x6DD; lamp.LampName = this.Name + " " + this.Title; lamp.LampColor = "Dark"; c.DropItem(lamp); } } } }
public override void OnDeath(Container c) { base.OnDeath(c); Item scale = new CrystalScales(); c.DropItem(scale); if (1 == Utility.RandomMinMax(0, 5)) { DragonTooth ingut = new DragonTooth(); ingut.Amount = 1; c.DropItem(ingut); } if (1 == Utility.RandomMinMax(0, 3)) { LootChest MyChest = new LootChest(Server.Misc.IntelligentAction.FameBasedLevel(this)); MyChest.Name = "crystal chest"; MyChest.Hue = Utility.RandomList(0x48D, 0x48E, 0x48F, 0x490, 0x491); MyChest.ItemID = Utility.RandomList(0xe40, 0xe41); c.DropItem(MyChest); } Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck)) { c.DropItem(new LargeCrystal()); } if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 10) == 1) { DragonLamp lamp = new DragonLamp(); lamp.Hue = this.Hue; lamp.LampName = this.Name + " " + this.Title; lamp.LampColor = "Crystal"; c.DropItem(lamp); } } } }
public override void OnDeath(Container c) { base.OnDeath(c); Item scale = new HardScales(Utility.RandomMinMax(15, 20), "caddellite scales"); c.DropItem(scale); ArrayList targets = new ArrayList(); foreach (Item item in World.Items.Values) { if (item is StaffPartCaddellite) { targets.Add(item); } } for (int i = 0; i < targets.Count; ++i) { Item item = ( Item )targets[i]; item.Delete(); } c.DropItem(new StaffPartCaddellite()); Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 10) == 1) { DragonLamp lamp = new DragonLamp(); lamp.Hue = this.Hue; lamp.LampName = this.Name + " " + this.Title; lamp.LampColor = "Caddellite"; c.DropItem(lamp); } } } }
public override void OnDeath(Container c) { base.OnDeath(c); string metal = "Iron"; if (this.Hue == MaterialInfo.GetMaterialColor("onyx", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "onyx scales"); c.DropItem(scale); metal = "Onyx"; } else if (this.Hue == MaterialInfo.GetMaterialColor("quartz", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "quartz scales"); c.DropItem(scale); metal = "Quartz"; } else if (this.Hue == MaterialInfo.GetMaterialColor("ruby", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "ruby scales"); c.DropItem(scale); metal = "Ruby"; } else if (this.Hue == MaterialInfo.GetMaterialColor("sapphire", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "sapphire scales"); c.DropItem(scale); metal = "Sapphire"; } else if (this.Hue == MaterialInfo.GetMaterialColor("spinel", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "spinel scales"); c.DropItem(scale); metal = "Spinel"; } else if (this.Hue == MaterialInfo.GetMaterialColor("topaz", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "topaz scales"); c.DropItem(scale); metal = "Topaz"; } else if (this.Hue == MaterialInfo.GetMaterialColor("amethyst", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "amethyst scales"); c.DropItem(scale); metal = "Amethyst"; } else if (this.Hue == MaterialInfo.GetMaterialColor("emerald", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "emerald scales"); c.DropItem(scale); metal = "Emerald"; } else if (this.Hue == MaterialInfo.GetMaterialColor("garnet", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "garnet scales"); c.DropItem(scale); metal = "Garnet"; } else if (this.Hue == MaterialInfo.GetMaterialColor("silver", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "silver scales"); c.DropItem(scale); metal = "Silver"; } else if (this.Hue == MaterialInfo.GetMaterialColor("star ruby", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "star ruby scales"); c.DropItem(scale); metal = "Star Ruby"; } else if (this.Hue == MaterialInfo.GetMaterialColor("jade", "monster", 0)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "jade scales"); c.DropItem(scale); metal = "Jade"; } else if (this.Hue == MaterialInfo.GetMaterialColor("copper", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "copper scales"); c.DropItem(scale); metal = "Copper"; } else if (this.Hue == MaterialInfo.GetMaterialColor("verite", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "verite scales"); c.DropItem(scale); metal = "Verite"; } else if (this.Hue == MaterialInfo.GetMaterialColor("valorite", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "valorite scales"); c.DropItem(scale); metal = "Valorite"; } else if (this.Hue == MaterialInfo.GetMaterialColor("agapite", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "agapite scales"); c.DropItem(scale); metal = "Agapite"; } else if (this.Hue == MaterialInfo.GetMaterialColor("bronze", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "bronze scales"); c.DropItem(scale); metal = "Bronze"; } else if (this.Hue == MaterialInfo.GetMaterialColor("dull copper", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "dull copper scales"); c.DropItem(scale); metal = "Dull Copper"; } else if (this.Hue == MaterialInfo.GetMaterialColor("gold", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "gold scales"); c.DropItem(scale); metal = "Golden"; } else if (this.Hue == MaterialInfo.GetMaterialColor("shadow iron", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "shadow iron scales"); c.DropItem(scale); metal = "Shadow Iron"; } else if (this.Hue == MaterialInfo.GetMaterialColor("brass", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "brass scales"); c.DropItem(scale); metal = "Brass"; } else if (this.Hue == MaterialInfo.GetMaterialColor("steel", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "steel scales"); c.DropItem(scale); metal = "Steel"; } else if (this.Hue == MaterialInfo.GetMaterialColor("mithril", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "mithril scales"); c.DropItem(scale); metal = "Mithril"; } else if (this.Hue == MaterialInfo.GetMaterialColor("xormite", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "xormite scales"); c.DropItem(scale); metal = "Xormite"; } else if (this.Hue == MaterialInfo.GetMaterialColor("obsidian", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "obsidian scales"); c.DropItem(scale); metal = "Obsidian"; } else if (this.Hue == MaterialInfo.GetMaterialColor("nepturite", "monster", Hue)) { Item scale = new HardScales(Utility.RandomMinMax(10, 50), "nepturite scales"); c.DropItem(scale); metal = "Nepturite"; } Mobile killer = this.LastKiller; if (killer != null) { if (killer is BaseCreature) { killer = ((BaseCreature)killer).GetMaster(); } if (killer is PlayerMobile) { if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 25) == 1) { DragonLamp lamp = new DragonLamp(); lamp.Hue = this.Hue; lamp.LampName = ""; lamp.LampColor = metal; c.DropItem(lamp); } } } }