A former policeman forged a suicide note to claim a share of his friend's fortune, a crown court has heard.
Marcus Alder, 48, of Offord Darcy, Cambridgeshire, tried to trick Philip Tyssen-Gee's family into giving him at least £100,000, prosecutors claim.
Peterborough Crown Court heard Mr Alder wrote the fake suicide note and forged Mr Tyssen-Gee's signature claiming he wanted Mr Alder to inherit.
Mr Alder denies charges of perjury, fraud, theft and blackmail.
He has also pleaded not guilty to perverting the course of justice, obtaining money by deception, possessing a prohibited firearm and possessing an imitation firearm with intent to cause fear.
The court heard Mr Alder had known 50-year-old Mr Tyssen-Gee, of Somersham, Cambridgeshire, for more than 20 years.
Jurors were told Mr Tyssen-Gee was a "reclusive bachelor" who had inherited about £500,000 when his mother died in 1998.
Timothy Spencer QC, prosecuting, said Mr Alder, a former policeman, had pretended to be Mr Tyssen-Gee's gay lover and told people he was dependent on him.
Mr Spencer told the court how in 2005 Mr Tyssen-Gee began making large withdrawals from a bank account.
He told his investment manager that he had met a girlfriend called "Babs".
But Mr Spencer said the prosecution would argue that "Babs" was a fiction and that Mr Tyssen-Gee was being duped by Mr Alder.
The court heard Mr Alder found Mr Tyssen-Gee dead in November 2006 and made the 999 call telling police that his friend had committed suicide.
The court was told that shortly afterwards Mr Alder tricked his way into Mr Tyssen-Gee's home by telling Mr Tyssen-Gee's solicitor that he needed to collect some books.
Mr Spencer said Mr Alder then produced a suicide note which the prosecution claimed was fake and had been written earlier by forging Mr Tyssen-Gee's signature.
In the note, Mr Tyssen-Gee reportedly said there were "many reasons" for his suicide but he added that he wanted Mr Alder to inherit.
The note said there should be enough money for Mr Alder to pay off his mortgage and have some cash to spare.
The case continues.