Exemple #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))
                    {
                        if (Utility.RandomMinMax(1, 10) == 1)
                        {
                            CanopicJar jar = new CanopicJar();
                            c.DropItem(jar);
                        }
                        else
                        {
                            EmptyCanopicJar jars = new EmptyCanopicJar();
                            c.DropItem(jars);
                        }
                    }
                }
            }
        }
Exemple #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)
                    {
                        switch (Utility.RandomMinMax(0, 5))
                        {
                        case 0: c.DropItem(new DeadSkinLegs()); break;

                        case 1: c.DropItem(new DeadSkinGloves()); break;

                        case 2: c.DropItem(new DeadSkinGorget()); break;

                        case 3: c.DropItem(new DeadSkinArms()); break;

                        case 4: c.DropItem(new DeadSkinChest()); break;

                        case 5: c.DropItem(new DeadSkinHelm()); break;
                        }
                    }

                    if (GetPlayerInfo.LuckyKiller(killer.Luck))
                    {
                        if (Utility.RandomMinMax(1, 2) == 1)
                        {
                            CanopicJar jar = new CanopicJar();
                            c.DropItem(jar);
                        }
                        else
                        {
                            EmptyCanopicJar jars = new EmptyCanopicJar();
                            c.DropItem(jars);
                        }
                    }

                    if (GetPlayerInfo.LuckyKiller(killer.Luck) && Utility.RandomMinMax(1, 4) == 1)
                    {
                        LootChest MyChest = new LootChest(Server.Misc.IntelligentAction.FameBasedLevel(this));
                        MyChest.ItemID = Utility.RandomList(0xE40, 0xE41);
                        MyChest.Name   = "pharaoh chest";
                        MyChest.Hue    = 0xB1B;
                        c.DropItem(MyChest);
                    }
                }
            }
        }
Exemple #3
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            Mobile killer = this.LastKiller;

            if (killer != null && this.Title == "the pharaoh")
            {
                if (killer is BaseCreature)
                {
                    killer = ((BaseCreature)killer).GetMaster();
                }

                if (killer is PlayerMobile)
                {
                    if (GetPlayerInfo.LuckyKiller(killer.Luck))
                    {
                        if (Utility.RandomMinMax(1, 10) == 1)
                        {
                            CanopicJar jar = new CanopicJar();
                            c.DropItem(jar);
                        }
                        else
                        {
                            EmptyCanopicJar jars = new EmptyCanopicJar();
                            c.DropItem(jars);
                        }
                    }

                    if (GetPlayerInfo.LuckyKiller(killer.Luck) && Server.Misc.IntelligentAction.FameBasedEvent(this))
                    {
                        LootChest MyChest = new LootChest(Server.Misc.IntelligentAction.FameBasedLevel(this));
                        Server.Misc.ContainerFunctions.MakeTomb(MyChest, this, 0);
                        c.DropItem(MyChest);
                    }
                }
            }
        }