Wait for the pirates
From Create Your Own Story
You bravely (foolishly?) choose to ambush the other pirates as soon as they come back to their den. After waiting for a few hours, you hear voices coming from the narrow gap leading to the cave. They will have to enter one by one, meaning they cannot attack you all at once. But you start having doubts: you hear at least five or six different voices approaching. You are not sure you can take them all, but it is too late to flee.
You can either surrender to the pirates immediately or prepare for combat.