Hey kelly
See this for the visa requirements:
Morocco.com - Visas & Passports in Morocco - Morocco
You do not need a visa if you are a British national. You are allowed to stay there for 90 days without a visa requirement. However, I'm not sure about the exemption if you buy a property. As far as I'm aware, there is no such rule or regulation that exempts you. But I may be wrong.
Cathy