コード例 #1
0
        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, 4) == 1)
                    {
                        switch (Utility.RandomMinMax(0, 9))
                        {
                        case 0: Item loot1 = new StuddedChest(); MorphingItem.MorphMyItem(loot1, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("armors")); c.DropItem(loot1); break;

                        case 1: Item loot2 = new StuddedArms(); MorphingItem.MorphMyItem(loot2, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("armors")); c.DropItem(loot2); break;

                        case 2: Item loot3 = new StuddedLegs(); MorphingItem.MorphMyItem(loot3, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("armors")); c.DropItem(loot3); break;

                        case 3: Item loot4 = new StuddedGorget(); MorphingItem.MorphMyItem(loot4, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("armors")); c.DropItem(loot4); break;

                        case 4: Item loot5 = new StuddedGloves(); MorphingItem.MorphMyItem(loot5, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("armors")); c.DropItem(loot5); break;

                        case 5: Item loot6 = new MagicHat(); loot6.ItemID = 5915; loot6.Name = "hat"; MorphingItem.MorphMyItem(loot6, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("misc")); c.DropItem(loot6); break;

                        case 6: Item loot7 = new Scimitar(); MorphingItem.MorphMyItem(loot7, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("weapons")); c.DropItem(loot7); break;

                        case 7: Item loot8 = new Buckler(); MorphingItem.MorphMyItem(loot8, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("armors")); c.DropItem(loot8); break;

                        case 8: Item loot9 = new MagicBoots(); loot9.Name = "boots"; loot9.ItemID = 0x170b; MorphingItem.MorphMyItem(loot9, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("misc")); c.DropItem(loot9); break;

                        case 9: Item loot10 = Loot.RandomJewelry(); MorphingItem.MorphMyItem(loot10, "IGNORED", "Murk's Pirate", "IGNORED", MorphingTemplates.TemplateMurk("misc")); c.DropItem(loot10); break;
                        }
                    }
                }
            }
        }