[
    {
        "id":"arghest_start",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_alert",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"Omi2_bwm1",
                        "value":47
                    },
                    {
                        "requireType":"questProgress",
                        "requireID":"bwm72_beginning",
                        "value":22,
                        "negate":true
                    }
                ]
            },
            {
                "nextPhraseID":"arghest_return_1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"prim_innquest",
                        "value":40
                    }
                ]
            },
            {
                "nextPhraseID":"arghest_return_2",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"prim_innquest",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"arghest_1"
            }
        ]
    },
    {
        "id":"arghest_1",
        "message":"Hello there.",
        "replies":[
            {
                "text":"What is this place?",
                "nextPhraseID":"arghest_2"
            },
            {
                "text":"Who are you?",
                "nextPhraseID":"arghest_5"
            },
            {
                "text":"Did you rent the back room at the inn in Prim?",
                "nextPhraseID":"arghest_8",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"prim_innquest",
                        "value":10
                    }
                ]
            }
        ]
    },
    {
        "id":"arghest_2",
        "message":"This is the old Elm mine of Prim.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_3"
            }
        ]
    },
    {
        "id":"arghest_3",
        "message":"We used to mine a lot here. But that was before the attacks started.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_4"
            }
        ]
    },
    {
        "id":"arghest_4",
        "message":"The attacks on Prim by the beasts, the bandits and the disappearances really reduced our numbers. Now we cannot keep up the mining activity any longer.",
        "replies":[
            {
                "text":"Who are you?",
                "nextPhraseID":"arghest_5"
            }
        ]
    },
    {
        "id":"arghest_5",
        "message":"I am Arghest. I guard the entrance here to make sure no one enters the old mine.",
        "replies":[
            {
                "text":"What is this place?",
                "nextPhraseID":"arghest_2"
            },
            {
                "text":"Can I enter the mine?",
                "nextPhraseID":"arghest_6",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"bwm72_beginning",
                        "value":22,
                        "negate":true
                    }
                ]
            },
            {
                "text":"Can I enter the mine?",
                "nextPhraseID":"arghest_15",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"bwm72_beginning",
                        "value":22
                    }
                ]
            }
        ]
    },
    {
        "id":"arghest_6",
        "message":"No. The mine is closed.",
        "replies":[
            {
                "text":"OK, goodbye.",
                "nextPhraseID":"X"
            },
            {
                "text":"Please?",
                "nextPhraseID":"arghest_7"
            }
        ]
    },
    {
        "id":"arghest_7",
        "message":"I said no. Visitors are not allowed in there.",
        "replies":[
            {
                "text":"Please?",
                "nextPhraseID":"arghest_6"
            },
            {
                "text":"Just a quick peek?",
                "nextPhraseID":"arghest_6"
            }
        ]
    },
    {
        "id":"arghest_return_1",
        "message":"Welcome back. Thanks for your help earlier. I hope the room at the inn can be of use to you.",
        "replies":[
            {
                "text":"You are welcome. Goodbye.",
                "nextPhraseID":"X"
            },
            {
                "text":"Can I enter the mine?",
                "nextPhraseID":"arghest_6",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"bwm72_beginning",
                        "value":22,
                        "negate":true
                    }
                ]
            },
            {
                "text":"Can I enter the mine?",
                "nextPhraseID":"arghest_15",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"bwm72_beginning",
                        "value":22
                    }
                ]
            }
        ]
    },
    {
        "id":"arghest_return_2",
        "message":"Welcome back. Did you bring me the 5 bottles of milk that I requested?",
        "replies":[
            {
                "text":"No, not yet. I'm working on it.",
                "nextPhraseID":"arghest_return_3"
            },
            {
                "text":"Yes, here you go, enjoy!",
                "nextPhraseID":"arghest_return_4",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"milk",
                        "value":5
                    }
                ]
            },
            {
                "text":"Yes, but this nearly cost me a fortune!",
                "nextPhraseID":"arghest_return_4",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"milk",
                        "value":5
                    }
                ]
            }
        ]
    },
    {
        "id":"arghest_return_3",
        "message":"OK then. Return to me once you have them.",
        "replies":[
            {
                "text":"Will do. Goodbye.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"arghest_return_4",
        "message":"Thank you my friend! Now I can restock my supply.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_return_5"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"prim_innquest",
                "value":40
            }
        ]
    },
    {
        "id":"arghest_return_5",
        "message":"These bottles look excellent. Now I can last a while longer in here.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_return_6"
            }
        ]
    },
    {
        "id":"arghest_return_6",
        "message":"Oh, and about the room in the inn - you are welcome to use it in any way you see fit. Quite a cozy place to rest if you ask me.",
        "replies":[
            {
                "text":"Thanks Arghest. Goodbye.",
                "nextPhraseID":"X"
            },
            {
                "text":"Finally, I thought I would never be able to rest here!",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"arghest_8",
        "message":"'Inn in Prim' - you sound funny.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_9"
            }
        ]
    },
    {
        "id":"arghest_9",
        "message":"Yes, I rent it. I stay there to rest when my shift ends.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_10"
            }
        ]
    },
    {
        "id":"arghest_10",
        "message":"However, now that we guards aren't as plentiful as we used to be, it has been a while since I could rest in there.",
        "replies":[
            {
                "text":"Mind if I use the room at the inn to rest in?",
                "nextPhraseID":"arghest_11"
            },
            {
                "text":"Are you still going to use it?",
                "nextPhraseID":"arghest_11"
            }
        ]
    },
    {
        "id":"arghest_11",
        "message":"Well, I would like to still keep the option of using it. But I guess someone else could rest there now that I'm not actively using it.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_12"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"prim_innquest",
                "value":20
            }
        ]
    },
    {
        "id":"arghest_12",
        "message":"Tell you what, if you bring me some more supplies to keep me occupied here, I guess you could have my permission to use it even though I have rented it.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"arghest_13"
            }
        ]
    },
    {
        "id":"arghest_13",
        "message":"I have plenty of meat here, but I ran out of milk some weeks ago. Do you think you could help me restock my milk supply?",
        "replies":[
            {
                "text":"Sure, no problem. I'll get you your bottles of milk. How much do you need?",
                "nextPhraseID":"arghest_14"
            },
            {
                "text":"Sure, if it leads to me being able to rest here. I'm in.",
                "nextPhraseID":"arghest_14"
            }
        ]
    },
    {
        "id":"arghest_14",
        "message":"Bring me 5 bottles of milk. That should be enough.",
        "replies":[
            {
                "text":"I'll go buy some.",
                "nextPhraseID":"X"
            },
            {
                "text":"OK. I'll be right back.",
                "nextPhraseID":"X"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"prim_innquest",
                "value":30
            }
        ]
    }
]