[
    {
        "id":"farrik_1",
        "message":"Hello. I heard that you helped us find the key of Luthor. Good work, it will really come in handy.",
        "replies":[
            {
                "text":"Who are you?",
                "nextPhraseID":"farrik_2"
            },
            {
                "text":"What can you tell me about the Thieves' Guild?",
                "nextPhraseID":"farrik_4"
            }
        ]
    },
    {
        "id":"farrik_2",
        "message":"I'm Farrik, Umar's brother.",
        "replies":[
            {
                "text":"What do you do around here?",
                "nextPhraseID":"farrik_3"
            },
            {
                "text":"What can you tell me about the Thieves' Guild?",
                "nextPhraseID":"farrik_4"
            }
        ]
    },
    {
        "id":"farrik_3",
        "message":"I mostly manage our trading with other guilds and keep an eye on what the thieves need to be as effective as they can be.",
        "replies":[
            {
                "text":"What can you tell me about the Thieves' Guild?",
                "nextPhraseID":"farrik_4"
            }
        ]
    },
    {
        "id":"farrik_4",
        "message":"We try to keep to ourselves as much as possible, and help our fellow thieves as much as possible.",
        "replies":[
            {
                "text":"Any recent events happening?",
                "nextPhraseID":"farrik_5"
            },
            {
                "text":"I asked Dunla about the beer distribution operation and the 'business agreement'. He sent me to you.",
                "nextPhraseID":"farrik_beer",
                "requires":[
                    {
                        "requireType":"questLatestProgress",
                        "requireID":"beer_bootlegging",
                        "value":40
                    }
                ]
            }
        ]
    },
    {
        "id":"farrik_5",
        "message":"Well, there was one thing a few weeks ago. One of our guild members got arrested for trespassing.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_6"
            }
        ]
    },
    {
        "id":"farrik_6",
        "message":"The Fallhaven guard has started to get really annoyed with us lately. Probably because we have been very successful in our recent missions.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_7"
            }
        ]
    },
    {
        "id":"farrik_7",
        "message":"The guards have increased their security lately, leading to them arresting one of our members.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_8"
            }
        ]
    },
    {
        "id":"farrik_8",
        "message":"He is currently held in the jail here in Fallhaven, pending transfer to Feygard.",
        "replies":[
            {
                "text":"What did he do?",
                "nextPhraseID":"farrik_9"
            }
        ]
    },
    {
        "id":"farrik_9",
        "message":"Oh, nothing serious. He was trying to get into the catacombs of Fallhaven church.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_10"
            }
        ]
    },
    {
        "id":"farrik_10",
        "message":"But now that you have helped us with that mission, I guess we don't need to go there anymore.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_11"
            }
        ]
    },
    {
        "id":"farrik_11",
        "message":"I guess I can trust you with this secret. We are planning a mission tonight to help him out of jail.",
        "replies":[
            {
                "text":"Those guards really seem annoying.",
                "nextPhraseID":"farrik_13"
            },
            {
                "text":"After all, if he wasn't allowed down there, then the guards are right to arrest him.",
                "nextPhraseID":"farrik_12"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"farrik",
                "value":10
            }
        ]
    },
    {
        "id":"farrik_12",
        "message":"Yeah, I guess so. But for the guild's sake, we would rather have our friend freed than imprisoned.",
        "replies":[
            {
                "text":"Don't worry, your secret plan to free him is safe with me.",
                "nextPhraseID":"farrik_14"
            },
            {
                "text":"[Lie] Don't worry, your secret plan to free him is safe with me.",
                "nextPhraseID":"farrik_14"
            },
            {
                "text":"Maybe I should tell the guards that you are planning to get him out?",
                "nextPhraseID":"farrik_15",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":20,
                        "negate":true
                    }
                ]
            }
        ]
    },
    {
        "id":"farrik_13",
        "message":"Oh yes, they are. The people also dislike them in general, it's not just us in the Thieves' Guild.",
        "replies":[
            {
                "text":"Is there anything I can do to help you with those annoying guards?",
                "nextPhraseID":"farrik_16"
            }
        ]
    },
    {
        "id":"farrik_14",
        "message":"Thank you. Now please leave me."
    },
    {
        "id":"farrik_15",
        "message":"Whatever, they wouldn't believe you anyway.",
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"farrik",
                "value":30
            }
        ]
    },
    {
        "id":"farrik_16",
        "message":"Are you sure you want to annoy the guards? If they catch word of you being involved, you could get into a lot of trouble.",
        "replies":[
            {
                "text":"No problem, I can handle myself!",
                "nextPhraseID":"farrik_18"
            },
            {
                "text":"There might be a reward for this later on. I'm in.",
                "nextPhraseID":"farrik_18"
            },
            {
                "text":"On second thought, maybe I should keep out of this.",
                "nextPhraseID":"farrik_17"
            }
        ]
    },
    {
        "id":"farrik_17",
        "message":"Sure, it's up to you.",
        "replies":[
            {
                "text":"Good luck on your mission.",
                "nextPhraseID":"farrik_14"
            },
            {
                "text":"Maybe I should tell the guards that you are planning to get him out?",
                "nextPhraseID":"farrik_15",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":20,
                        "negate":true
                    }
                ]
            }
        ]
    },
    {
        "id":"farrik_18",
        "message":"Good.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_19"
            }
        ]
    },
    {
        "id":"farrik_19",
        "message":"OK, here is the plan. The guard captain has a bit of a drinking problem.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_20"
            }
        ]
    },
    {
        "id":"farrik_20",
        "message":"If we were able to supply him with some mead that we have prepared, we might just be able to sneak our friend out during the night, when the captain is sleeping off the drunkenness.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_20a"
            }
        ]
    },
    {
        "id":"farrik_20a",
        "message":"Our cook can prepare a special brew of mead for you that will knock him out.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_21"
            }
        ]
    },
    {
        "id":"farrik_21",
        "message":"He would probably need to be persuaded to drink on duty too. If that should fail, he could probably be bribed instead.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_22"
            }
        ]
    },
    {
        "id":"farrik_22",
        "message":"How does that sound to you? Do you think you are up to it?",
        "replies":[
            {
                "text":"No, this is really starting to sound like a bad idea.",
                "nextPhraseID":"farrik_17"
            },
            {
                "text":"Sure, sounds easy!",
                "nextPhraseID":"farrik_23",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":30,
                        "negate":true
                    }
                ]
            },
            {
                "text":"Sounds a bit dangerous, but I guess I'll try.",
                "nextPhraseID":"farrik_23",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":30,
                        "negate":true
                    }
                ]
            }
        ]
    },
    {
        "id":"farrik_23",
        "message":"Good. Report back to me when you have gotten the guard captain to drink that special mead.",
        "replies":[
            {
                "text":"Will do.",
                "nextPhraseID":"farrik_14"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"farrik",
                "value":20
            }
        ]
    },
    {
        "id":"farrik_return_1",
        "message":"Hello again my friend. How goes your mission to get the guard captain drunk?",
        "replies":[
            {
                "text":"I am not done yet, but I am working on it.",
                "nextPhraseID":"farrik_23"
            },
            {
                "text":"It is done. He should be no problem during the night.",
                "nextPhraseID":"farrik_24",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":60
                    }
                ]
            }
        ]
    },
    {
        "id":"farrik_select_1",
        "replies":[
            {
                "nextPhraseID":"farrik_return_2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":70
                    }
                ]
            },
            {
                "nextPhraseID":"farrik_return_2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":80
                    }
                ]
            },
            {
                "nextPhraseID":"farrik_select_2"
            }
        ]
    },
    {
        "id":"farrik_select_2",
        "replies":[
            {
                "nextPhraseID":"farrik_return_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":20
                    },
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":30,
                        "negate":true
                    }
                ]
            },
            {
                "nextPhraseID":"farrik_return_3",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":30
                    },
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":20,
                        "negate":true
                    }
                ]
            },
            {
                "nextPhraseID":"farrik_1"
            }
        ]
    },
    {
        "id":"farrik_24",
        "message":"That is good news! Now we should be able to get our friend out from jail tonight.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"farrik_25"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"farrik",
                "value":70
            },
            {
                "rewardType":"removeSpawnArea",
                "rewardID":"fallhaven_prisoner",
                "mapName":"fallhaven_prison"
            }
        ]
    },
    {
        "id":"farrik_25",
        "message":"Thank you for your help my friend. Take these coins as a token of our appreciation.",
        "replies":[
            {
                "text":"Thank you. Goodbye.",
                "nextPhraseID":"X"
            },
            {
                "text":"Finally, some gold.",
                "nextPhraseID":"X"
            }
        ],
        "rewards":[
            {
                "rewardType":"dropList",
                "rewardID":"gold200"
            }
        ]
    },
    {
        "id":"farrik_return_2",
        "message":"Thank you for your help with the guard captain earlier.",
        "replies":[
            {
                "text":"Sure.",
                "nextPhraseID":"X"
            },
            {
                "text":"I asked Dunla about the beer distribution operation and the 'business agreement'. He sent me to you.",
                "nextPhraseID":"farrik_beer",
                "requires":[
                    {
                        "requireType":"questLatestProgress",
                        "requireID":"beer_bootlegging",
                        "value":40
                    }
                ]
            }
        ]
    },
    {
        "id":"farrik_26",
        "message":"That's very useful information. Well done. You have my thanks, friend.",
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"farrik",
                "value":80
            }
        ]
    },
    {
        "id":"farrik_return_3",
        "message":"So did you tell the guard captain about our plan then?",
        "replies":[
            {
                "text":"No, I haven't talked to him.",
                "nextPhraseID":"X"
            },
            {
                "text":"[Lie]. No. I went there, but I overheard the guard captain saying there was no real threat, so they will lower security. So maybe you can carry out your mission without me being involved.",
                "nextPhraseID":"farrik_26",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"farrik",
                        "value":50
                    }
                ]
            }
        ]
    }
]