I remember watching a few scenes from some show/movie on TV in the 90’s involving some uniformed children (scouts?) trying unsuccessfully to rescue an older man from quicksand. It then cut to some pirates (I think) climbing the inside of a tower, using a spiral staircase. Seeing that their path was blocked, one of them said ‘Throw me a hook’, and getting it, he leaped into the middle of the tower onto a massive rope connected to a bell at the top. When he landed on the rope, the bell rang out, and somewhere else (the top of the tower?) a group of gaudily dressed people heard the tolling of the bell during their rowdy reveries.
That is all I remember, and it bugs me that I don’t know what show or movie this bizarre sequence was from.