Inheritance: BaseHealPotion
Beispiel #1
0
        public BasePotion FillBottle()
        {
            BasePotion pot;

            switch (m_Type)
            {
            default:
            case PotionEffect.Nightsight: pot = new NightSightPotion(); break;

            case PotionEffect.CureLesser: pot = new LesserCurePotion(); break;

            case PotionEffect.Cure: pot = new CurePotion(); break;

            case PotionEffect.CureGreater: pot = new GreaterCurePotion(); break;

            case PotionEffect.Agility: pot = new AgilityPotion(); break;

            case PotionEffect.AgilityGreater: pot = new GreaterAgilityPotion(); break;

            case PotionEffect.Strength: pot = new StrengthPotion(); break;

            case PotionEffect.StrengthGreater: pot = new GreaterStrengthPotion(); break;

            case PotionEffect.PoisonLesser: pot = new LesserPoisonPotion(); break;

            case PotionEffect.Poison: pot = new PoisonPotion(); break;

            case PotionEffect.PoisonGreater: pot = new GreaterPoisonPotion(); break;

            case PotionEffect.PoisonDeadly: pot = new DeadlyPoisonPotion(); break;

            case PotionEffect.Refresh: pot = new RefreshPotion(); break;

            case PotionEffect.RefreshGreater: pot = new GreaterRefreshPotion(); break;

            case PotionEffect.HealLesser: pot = new LesserHealPotion(); break;

            case PotionEffect.Heal: pot = new HealPotion(); break;

            case PotionEffect.HealGreater: pot = new GreaterHealPotion(); break;

            case PotionEffect.ExplosionLesser: pot = new LesserExplosionPotion(); break;

            case PotionEffect.Explosion: pot = new ExplosionPotion(); break;

            case PotionEffect.ExplosionGreater: pot = new GreaterExplosionPotion(); break;

            case PotionEffect.Conflagration: pot = new ConflagrationPotion(); break;

            case PotionEffect.ConflagrationGreater: pot = new GreaterConflagrationPotion(); break;

            case PotionEffect.MaskOfDeath: pot = new MaskOfDeathPotion(); break;

            case PotionEffect.MaskOfDeathGreater: pot = new GreaterMaskOfDeathPotion(); break;

            case PotionEffect.ConfusionBlast: pot = new ConfusionBlastPotion(); break;

            case PotionEffect.ConfusionBlastGreater: pot = new GreaterConfusionBlastPotion(); break;

            case PotionEffect.Invisibility: pot = new InvisibilityPotion(); break;

            case PotionEffect.ParasiticPoison: pot = new ParasiticPotion(); break;

            case PotionEffect.DarkglowPoison: pot = new DarkglowPotion(); break;
            }

            return(pot);
        }
        public override void OnDoubleClick(Mobile from)
        {
            if (!IsChildOf(from.Backpack))
            {
                from.SendMessage("This must be in your backpack to use.");
                return;
            }
            else
            {
                Item item = new Bandage(); item.Amount = Utility.RandomMinMax(5, 30); from.AddToBackpack(item);

                if (Utility.RandomMinMax(1, 2) == 1)
                {
                    item = new LesserHealPotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 10); from.AddToBackpack(item);
                }
                if (Utility.RandomMinMax(1, 2) == 1)
                {
                    item = new LesserCurePotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 10); from.AddToBackpack(item);
                }
                if (Utility.RandomMinMax(1, 2) == 1)
                {
                    item = new LesserRejuvenatePotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 10); from.AddToBackpack(item);
                }

                if (Utility.RandomMinMax(1, 4) == 1)
                {
                    item = new HealPotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 5); from.AddToBackpack(item);
                }
                if (Utility.RandomMinMax(1, 4) == 1)
                {
                    item = new CurePotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 5); from.AddToBackpack(item);
                }
                if (Utility.RandomMinMax(1, 4) == 1)
                {
                    item = new RefreshPotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 5); from.AddToBackpack(item);
                }
                if (Utility.RandomMinMax(1, 4) == 1)
                {
                    item = new RejuvenatePotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 5); from.AddToBackpack(item);
                }

                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    item = new TotalRefreshPotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 3); from.AddToBackpack(item);
                }
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    item = new GreaterCurePotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 3); from.AddToBackpack(item);
                }
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    item = new GreaterHealPotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 3); from.AddToBackpack(item);
                }
                if (Utility.RandomMinMax(1, 10) == 1)
                {
                    item = new GreaterRejuvenatePotion(); Server.Items.BasePotion.MakePillBottle(item); item.Amount = Utility.RandomMinMax(1, 3); from.AddToBackpack(item);
                }

                from.PrivateOverheadMessage(MessageType.Regular, 0x14C, false, "You dump the contents out into your pack.", from.NetState);
                this.Delete();
            }
        }
Beispiel #3
0
        public BasePotion FillBottle()
        {
            BasePotion pot;

            switch (m_Type)
            {
            default:
            case PotionEffect.Nightsight:           pot = new NightSightPotion(); break;

            case PotionEffect.CureLesser:           pot = new LesserCurePotion(); break;

            case PotionEffect.Cure:                         pot = new CurePotion(); break;

            case PotionEffect.CureGreater:          pot = new GreaterCurePotion(); break;

            case PotionEffect.Agility:                      pot = new AgilityPotion(); break;

            case PotionEffect.AgilityGreater:       pot = new GreaterAgilityPotion(); break;

            case PotionEffect.Strength:                     pot = new StrengthPotion(); break;

            case PotionEffect.StrengthGreater:      pot = new GreaterStrengthPotion(); break;

            case PotionEffect.PoisonLesser:         pot = new LesserPoisonPotion(); break;

            case PotionEffect.Poison:                       pot = new PoisonPotion(); break;

            case PotionEffect.PoisonGreater:        pot = new GreaterPoisonPotion(); break;

            case PotionEffect.PoisonDeadly:         pot = new DeadlyPoisonPotion(); break;

            case PotionEffect.Refresh:                      pot = new RefreshPotion(); break;

            case PotionEffect.RefreshTotal:         pot = new TotalRefreshPotion(); break;

            case PotionEffect.HealLesser:           pot = new LesserHealPotion(); break;

            case PotionEffect.Heal:                         pot = new HealPotion(); break;

            case PotionEffect.HealGreater:          pot = new GreaterHealPotion(); break;

            case PotionEffect.ExplosionLesser:      pot = new LesserExplosionPotion(); break;

            case PotionEffect.Explosion:            pot = new ExplosionPotion(); break;

            case PotionEffect.ExplosionGreater:     pot = new GreaterExplosionPotion(); break;

            case PotionEffect.Conflagration:        pot = new ConflagrationPotion(); break;

            case PotionEffect.ConflagrationGreater: pot = new GreaterConflagrationPotion(); break;

            case PotionEffect.MaskOfDeath:          pot = new MaskOfDeathPotion(); break;

            case PotionEffect.MaskOfDeathGreater:   pot = new GreaterMaskOfDeathPotion(); break;

            case PotionEffect.ConfusionBlast:               pot = new ConfusionBlastPotion(); break;

            case PotionEffect.ConfusionBlastGreater:        pot = new GreaterConfusionBlastPotion(); break;
            }
            if (this.Cheater_Name != null)
            {
                pot.Cheater_Name = this.Cheater_Name;
            }
            return(pot);
        }