It was not until 1740 , at the coronation of his successor Frederick II ( Frederick the Great ) , that the town 's became important again . It was not until 1740 , at the coronation of his successor Frederick II , that the town 's significance increased , as regular celebrations were held again at the palace .