If you enjoy historical fiction, George MacDonald Fraser fills the bill. His
Flashman series of novels includes one,
Flashman's Lady, which features our antihero, who chases pirates in 1841 in the company of James Brooke, later Rajah of Sarawak.
The whole series is a pleasant, amusing, raffish and informative read. Link:
https://en.wikipedia.org/wiki/Harry_Flashman