This movie involves something about a table surrounded with chairs on which skeletons are sitting. When all of them are there, they disintegrate and a sword appears at the centre of the table.
Another part involves a place with a lot of treasure but it cannot be touched.
Also, the protagonists of the movie find one of the lost sailor/king who is still alive and if I am not mistaken the name begins with R. He has gone mad, and was standing on a rock when light was shone upon him.
I may have made minute errors in description, but please help me out with the name of the movie.