示例#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, 5))
                        {
                        case 0: MagicBoneLegs leg = new MagicBoneLegs();                BaseRunicTool.ApplyAttributesTo((BaseArmor)leg, false, 1000, 5, 25, 100);     c.DropItem(leg);              break;

                        case 1: MagicBoneGloves glv = new MagicBoneGloves();    BaseRunicTool.ApplyAttributesTo((BaseArmor)glv, false, 1000, 5, 25, 100);     c.DropItem(glv);              break;

                        case 2: MagicBoneArms arm = new MagicBoneArms();                BaseRunicTool.ApplyAttributesTo((BaseArmor)arm, false, 1000, 5, 25, 100);     c.DropItem(arm);              break;

                        case 3: MagicBoneChest tun = new MagicBoneChest();              BaseRunicTool.ApplyAttributesTo((BaseArmor)tun, false, 1000, 5, 25, 100);     c.DropItem(tun);              break;

                        case 4: MagicBoneHelm hlm = new MagicBoneHelm();                BaseRunicTool.ApplyAttributesTo((BaseArmor)hlm, false, 1000, 5, 25, 100);     c.DropItem(hlm);              break;

                        case 5: MagicBoneSkirt skt = new MagicBoneSkirt();              BaseRunicTool.ApplyAttributesTo((BaseArmor)skt, false, 1000, 5, 25, 100);     c.DropItem(skt);              break;
                        }
                    }
                }
            }
        }
示例#2
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)
                    {
                        LootChest MyChest = new LootChest(Server.Misc.IntelligentAction.FameBasedLevel(this));
                        MyChest.Name   = "bone carved chest";
                        MyChest.ItemID = Utility.RandomList(0x2DF1, 0x2DF1);
                        MyChest.Hue    = 0;
                        c.DropItem(MyChest);
                    }
                    if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 4) == 1)
                    {
                        switch (Utility.RandomMinMax(0, 5))
                        {
                        case 0: MagicBoneLegs leg = new MagicBoneLegs();                BaseRunicTool.ApplyAttributesTo((BaseArmor)leg, false, 1000, 5, 25, 100);     c.DropItem(leg);              break;

                        case 1: MagicBoneGloves glv = new MagicBoneGloves();    BaseRunicTool.ApplyAttributesTo((BaseArmor)glv, false, 1000, 5, 25, 100);     c.DropItem(glv);              break;

                        case 2: MagicBoneArms arm = new MagicBoneArms();                BaseRunicTool.ApplyAttributesTo((BaseArmor)arm, false, 1000, 5, 25, 100);     c.DropItem(arm);              break;

                        case 3: MagicBoneChest tun = new MagicBoneChest();              BaseRunicTool.ApplyAttributesTo((BaseArmor)tun, false, 1000, 5, 25, 100);     c.DropItem(tun);              break;

                        case 4: MagicBoneHelm hlm = new MagicBoneHelm();                BaseRunicTool.ApplyAttributesTo((BaseArmor)hlm, false, 1000, 5, 25, 100);     c.DropItem(hlm);              break;

                        case 5: MagicBoneSkirt skt = new MagicBoneSkirt();              BaseRunicTool.ApplyAttributesTo((BaseArmor)skt, false, 1000, 5, 25, 100);     c.DropItem(skt);              break;
                        }
                    }
                }
            }
        }