public static void PlayDrinkEffect( Mobile m ) { m.RevealingAction(); m.PlaySound( 0x2D6 ); m.AddToBackpack( new Bottle() ); if ( m.Body.IsHuman && !m.Mounted ) m.Animate( 34, 5, 1, true, false, 0 ); }
public override void Drink(Mobile m) { TimeSpan duration = TimeSpan.FromMinutes(1); if (m.Blessed == false) { m.FixedEffect(0x375A, 10, 15); m.PlaySound(492); BasePotion.PlayDrinkEffect(m); this.Consume(); m.Blessed = true; m.NameHue = 0x35; RemoveTimer(m); Timer t = new InternalTimer(m, duration); m_Table[m] = t; t.Start(); } else { m.SendMessage("An invulnerability potion is already taking effect on your person."); //An invisibility potion is already taking effect on your person. } }