Ejemplo n.º 1
0
        protected override void ApplyEffect(PlayerMobile pm)
        {
            pm.AddStatMod(new StatMod(StatType.Str, "Balm", 10, m_EffectDuration));

            pm.SendLocalizedMessage(1095136); //You apply the balm and suddenly feel stronger!
            base.ApplyEffect(pm);
        }
Ejemplo n.º 2
0
        public virtual void BladeBlessing_OnTarget(Mobile from, object target)
        {
            if (!from.CanSee(target))
            {
                from.SendLocalizedMessage(500237);                   //Target cannot be seen.
            }
            else if (target is BaseWeapon)
            {
                BaseWeapon wep = (BaseWeapon)target;

                wep.MaxHitPoints += Utility.RandomMinMax(80, 120);
                wep.HitPoints     = wep.MaxHitPoints;
                wep.LootType      = LootType.Blessed;

                from.FixedParticles(0x373A, 10, 15, 5018, EffectLayer.Waist);
                from.PlaySound(0x1EA);

                this.Delete();
            }
            else if (target is Mobile)
            {
                Mobile       m  = (Mobile)target;
                PlayerMobile pm = (PlayerMobile)m;

                if (pm.Karma >= 1500)
                {
                    m_StatMod0 = new StatMod(StatType.All, "statbonus", 15, TimeSpan.FromMinutes(5));
                    pm.AddStatMod(m_StatMod0);

                    m_TimedSkillMod0 = new TimedSkillMod(SkillName.Tactics, true, 10, dateTime);
                    from.AddSkillMod(m_TimedSkillMod0);

                    this.Delete();
                }
                else
                {
                    from.SendMessage("You are not worthy of this blessing.");
                }
            }
            else
            {
                from.SendMessage("This spell would not work on that.");
            }
        }
Ejemplo n.º 3
0
 public virtual void BonusAction(PlayerMobile player, Mobile attacker)
 {
     player.AddStatMod(new StatMod(StatType.Str, "ancient wyrm bonus", Utility.RandomMinMax(5, 15), TimeSpan.FromMinutes(2.0)));
 }