public static void GivePrayer(TeiravonMobile from) { TeiravonMobile Caster = from; int min, max; min = 1 + (int)(Caster.Skills[SkillName.SpiritSpeak].Value * 0.25); max = min + Caster.PlayerLevel / 2; if (Caster.CheckSkill(SkillName.SpiritSpeak, 0.0, 120.0)) { Caster.Mana += Utility.RandomMinMax(min, max); Caster.PublicOverheadMessage(MessageType.Emote, 0x3B2, true, "*Bows their head*"); Caster.PlaySound(0x103); Caster.FixedParticles(0x375A, 1, 15, 9501, 391, 4, EffectLayer.Head); Caster.Freeze(TimeSpan.FromSeconds(1)); return; } else { Caster.SendMessage("You are unable to clear your mind for prayer."); return; } }