Beispiel #1
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);
            Mobile killer  = this.LastKiller;
            Item   granite = new Granite();

            if (this.Hue == MaterialInfo.GetMaterialColor("copper", "monster", 0))
            {
                granite = new CopperGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("verite", "monster", 0))
            {
                granite = new VeriteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("valorite", "monster", 0))
            {
                granite = new ValoriteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("agapite", "monster", 0))
            {
                granite = new AgapiteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("bronze", "monster", 0))
            {
                granite = new BronzeGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("dull copper", "monster", 0))
            {
                granite = new DullCopperGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("gold", "monster", 0))
            {
                granite = new GoldGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("shadow iron", "monster", 0))
            {
                granite = new ShadowIronGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("nepturite", "monster", 0))
            {
                granite = new NepturiteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("obsidian", "monster", 0))
            {
                granite = new ObsidianGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("xormite", "monster", 0))
            {
                granite = new XormiteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("mithril", "monster", 0))
            {
                granite = new MithrilGranite();
            }

            granite.Amount = Utility.RandomMinMax(1, 2);

            c.DropItem(granite);
        }
Beispiel #2
0
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            ValoriteGranite granite = new ValoriteGranite();

            granite.Amount = 10;
            c.DropItem(granite);
        }
        public override void OnDeath(Container c)
        {
            base.OnDeath(c);

            Mobile killer = this.LastKiller;

            Item granite = new Granite();

            if (this.Hue == MaterialInfo.GetMaterialColor("copper", "monster", 0))
            {
                granite = new CopperGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("verite", "monster", 0))
            {
                granite = new VeriteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("valorite", "monster", 0))
            {
                granite = new ValoriteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("agapite", "monster", 0))
            {
                granite = new AgapiteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("bronze", "monster", 0))
            {
                granite = new BronzeGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("dull copper", "monster", 0))
            {
                granite = new DullCopperGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("gold", "monster", 0))
            {
                granite = new GoldGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("shadow iron", "monster", 0))
            {
                granite = new ShadowIronGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("mithril", "monster", 0))
            {
                granite = new MithrilGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("xormite", "monster", 0))
            {
                granite = new XormiteGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("obsidian", "monster", 0))
            {
                granite = new ObsidianGranite();
            }
            else if (this.Hue == MaterialInfo.GetMaterialColor("nepturite", "monster", 0))
            {
                granite = new NepturiteGranite();
            }

            granite.Amount = Utility.RandomMinMax(1, 5);

            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.ItemID   = Utility.RandomList(0x1248, 0x1264);
                        MyChest.GumpID   = 0x62;
                        MyChest.TrapType = TrapType.None;
                        MyChest.Locked   = false;
                        MyChest.Name     = "stone giant sack";
                        MyChest.Hue      = 0x9C4;
                        c.DropItem(MyChest);
                    }
                }
            }

            c.DropItem(granite);
        }