Dunno. Must be that we answered many of the questions the same.
You do know that there were no pirates in "Hamlet"? =;^D
After Hamlet leaves, Laertes returns from France, enraged over Polonius' death. Ophelia reacts to her father's death with utter madness and eventually falls in a stream and drowns, further angering Laertes. En route to England, Hamlet finds the orders and changes them to order Rosencrantz and Guildenstern killed, as does occur, though Hamlet is kidnapped by pirates one day later. The pirates return Hamlet to Claudius (for a ransom), and Claudius tries one last attempt to eliminate Hamlet: he arranges a sword duel between Laertes and Hamlet....
But I don't remember any details about it.
'Horatio, when thou shalt have overlooked this, give these fellows some means to the king: they have letters for him. Ere we were two days old at sea, a pirate of very warlike appointment gave us chase. Finding ourselves too slow of sail, we put on a compelled valour, and in the grapple I boarded them: on the instant they got clear of our ship; so I alone became their prisoner. They have dealt with me like thieves of mercy: but they knew what they did; I am to do a good turn for them. Let the king have the letters I have sent; and repair thou to me with as much speed as thou wouldst fly death...