John Napier of Merchiston
Although better known for his discovery of Logarithms. What is less well known is that he tried to help Sir Robert Logan of Restalrig to discovery Templar treasure at Fast Castle because apart from being a brilliant Mathematician he also dabbled in the black arts.
John Napier of Merchiston. His Tower House still exists and is incorporated into the Napier University Building now at Merchiston Edinburgh.