I am looking for the spells in the script that a player can't cast in town like Blade Spirits and Energy Vortex. Anyone know where those are located in the scripts?
 
Each offensive spell has a call to the CheckTown function located in SpellHelper.cs. You can comment out or remove that check if you want to allow the spells to work anywhere.


From SpellHelper.cs:
Code:
        public static bool CheckTown(Point3D loc, Mobile caster)
        {
            if (IsTown(loc, caster))
            {
                caster.SendLocalizedMessage(500946); // You cannot cast this in town!
                return false;
            }

            return true;
        }


Inside each offensive spell, find this line:
Code:
else if (SpellHelper.CheckTown(p, this.Caster) && this.CheckSequence())

and change it to
Code:
else if (this.CheckSequence())
 
Back