The event was part of year-long celebrations marking 800 years since the town's royal burgh was created.