The way I did it was: get quest from redbeard, go inside, give the mark, take the quest from lucky, go outside, finish the quest, kill redbeard for lucky's quest, go back inside, finish the quest to get the map, kill lucky. Two dead pirate scum and lots of goodies for me.