:karl_ask_for_pirate_diary
  #[CONDITION] Managers.Tasks.getTaskStatus('teleport-quest-4') == TaskStatus.NONE && Managers.Tasks.getTaskStatus('teleport-quest-3') == TaskStatus.ACCEPTED
  #[PRIORITY] !Managers.Villagers.wasEventPlayedToday('karl_ask_for_pirate_diary')

  Player "Hey Karl, do you know where I can find a Wanted Poster?"
  Karl "What the heck is this? Are you saying I'm a wanted man?"
  Player "... no. Benjamin is willing to trade a wanted poster for something I need."
  Karl "I see. So you're not after me. And trading something you need is a wise move. I will do the same!"
  Player "So you have a poster?"
  Karl "I do. But I'll only give it to you if you get me a <color:item>Pirate Diary</color>."
  Player "This is getting more and more complicated, but fine, I'll try to find a Pirate Diary."
  
  replace task teleport-quest-3 teleport-quest-4

:karl_receive_pirate_diary
  #[CONDITION] Managers.Tasks.getTaskStatus('teleport-quest-4-delivery') == TaskStatus.ACCEPTED
  #[PRIORITY] true

  Karl "Hey, what's that smell?"
  Player "It's a long story. But I got the Pirate Diary you wanted."
  Karl "This is not the Diary of a Pirate, it's a book called Pirate Diary."
  Player "Oh, you wanted an actual diary? From a real pirate?"
  Karl "Nevermind, you'd never find it anyway. Here's the wanted poster that you were looking for."

  js Switches.foundWantedPoster = true;
  replace task teleport-quest-4-delivery teleport-quest-3-delivery

