Could be like the Count of Monte Cristo yet in a sort of priate fashion. Man out to get revenge with the help of his crew on others who wronged him and threw him away into the cold depths of prison which he cleverly escapes out of. Finds treasure bassed on knowledge give to him by another prisoner?