A Wiltshire trio accused of murdering a man “planned” to lure him to his death, a court heard.