[
    {
        "id":"lleglaris",
        "replies":[
            {
                "nextPhraseID":"lleglaris_r4",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"lleglaris",
                        "value":30
                    }
                ]
            },
            {
                "nextPhraseID":"lleglaris_r1",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"lleglaris",
                        "value":15
                    }
                ]
            },
            {
                "nextPhraseID":"lleglaris15",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"lleglaris",
                        "value":10
                    }
                ]
            },
            {
                "nextPhraseID":"lleglaris0"
            }
        ]
    },
    {
        "id":"lleglaris0",
        "message":"Are you sure you should be here? Maybe you should go play with .. your toys or something?",
        "replies":[
            {
                "text":"Watch it. Do you even know who you're talking to?",
                "nextPhraseID":"lleglaris2"
            },
            {
                "text":"Fine. I'll leave.",
                "nextPhraseID":"X"
            },
            {
                "text":"Hey, no need to be rude.",
                "nextPhraseID":"lleglaris1"
            },
            {
                "text":"Hey, those look like some nice items you have there. Care to trade?",
                "nextPhraseID":"lleglaris_rej"
            }
        ]
    },
    {
        "id":"lleglaris1",
        "message":"Ha ha. I can be as rude as I want!",
        "replies":[
            {
                "text":"Whatever.",
                "nextPhraseID":"X"
            },
            {
                "text":"Watch it. Do you even know who you're talking to?",
                "nextPhraseID":"lleglaris2"
            }
        ]
    },
    {
        "id":"lleglaris2",
        "message":"Hah! Please enlighten me.",
        "replies":[
            {
                "text":"I was the one who slew the lich Toszylae between Loneford and Brimhaven.",
                "nextPhraseID":"lleglaris3",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"toszylae",
                        "value":70
                    }
                ]
            },
            {
                "text":"See this amulet that I'm wearing? This is Marrowtaint.",
                "nextPhraseID":"lleglaris4",
                "requires":[
                    {
                        "requireType":"wear",
                        "requireID":"marrowtaint",
                        "value":1
                    }
                ]
            },
            {
                "text":"See this ring that I am wearing? This is the Ring of lesser Shadow.",
                "nextPhraseID":"lleglaris4",
                "requires":[
                    {
                        "requireType":"wear",
                        "requireID":"ring_shadow0",
                        "value":1
                    }
                ]
            },
            {
                "text":"I was the one who helped solve the mystery in Loneford.",
                "nextPhraseID":"lleglaris3",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"loneford",
                        "value":54
                    }
                ]
            },
            {
                "text":"I saved the settlement of Prim from the attacks from Blackwater Mountain.",
                "nextPhraseID":"lleglaris3",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"prim_hunt",
                        "value":240
                    }
                ]
            },
            {
                "text":"I helped the Blackwater Mountain settlement make the attacks from Prim stop.",
                "nextPhraseID":"lleglaris3",
                "requires":[
                    {
                        "requireType":"questProgress",
                        "requireID":"bwm_agent",
                        "value":240
                    }
                ]
            },
            {
                "text":"I am the son of an ordinary farmer in a minor settlement called Crossglen, not far west from here! I've even killed a rat or two!",
                "nextPhraseID":"lleglaris5"
            },
            {
                "text":"Never mind.",
                "nextPhraseID":"X"
            }
        ]
    },
    {
        "id":"lleglaris3",
        "message":"That was you? Hah! And you expect me to believe that?",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris7"
            }
        ]
    },
    {
        "id":"lleglaris4",
        "message":"Good for you. It looks just like any other trinket to me.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris7"
            }
        ]
    },
    {
        "id":"lleglaris5",
        "message":"Ha ha! Now, that's funny!",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris6"
            }
        ]
    },
    {
        "id":"lleglaris6",
        "message":"You have my best wishes, kid. Hope you'll get to see the world some day."
    },
    {
        "id":"lleglaris7",
        "message":"If you're such an experienced adventurer, I'm sure a small task of mine wouldn't be any problem for you?",
        "replies":[
            {
                "text":"What task?",
                "nextPhraseID":"lleglaris8"
            }
        ]
    },
    {
        "id":"lleglaris8",
        "message":"I've lost an amulet of mine. I was out in the woods around the cabin here and heard a noise coming from the east.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris9"
            }
        ]
    },
    {
        "id":"lleglaris9",
        "message":"Tired as I was, I didn't notice the things coming out from behind the trees fast enough.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris10"
            }
        ]
    },
    {
        "id":"lleglaris10",
        "message":"Undead things. Yuck, that smell.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris11"
            }
        ]
    },
    {
        "id":"lleglaris11",
        "message":"I saw this hole in the ground that they seemed to come out of. The ground had been completely corrupted around it.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris12"
            }
        ]
    },
    {
        "id":"lleglaris12",
        "message":"Anyway, I ran away and my amulet must have gotten stuck on a branch or something like that.",
        "replies":[
            {
                "text":"I'll go look for your amulet.",
                "nextPhraseID":"lleglaris14"
            },
            {
                "text":"Undead? No way, I'm out.",
                "nextPhraseID":"lleglaris13"
            }
        ]
    },
    {
        "id":"lleglaris13",
        "message":"Yeah, that's what I though as well."
    },
    {
        "id":"lleglaris14",
        "message":"Good.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris15"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"lleglaris",
                "value":10
            }
        ]
    },
    {
        "id":"lleglaris15",
        "message":"Go look just east of my cabin here. You probably need to take the path north when you exit the cabin, and then head east.",
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"lleglaris",
                "value":15
            }
        ]
    },
    {
        "id":"lleglaris_r1",
        "message":"Hi again. Did you find my amulet?",
        "replies":[
            {
                "text":"Can you tell me your story again?",
                "nextPhraseID":"lleglaris8"
            },
            {
                "text":"Yes, here it is.",
                "nextPhraseID":"lleglaris_r3",
                "requires":[
                    {
                        "requireType":"inventoryRemove",
                        "requireID":"lleglaris",
                        "value":1
                    }
                ]
            },
            {
                "text":"Still looking for it.",
                "nextPhraseID":"lleglaris_r2"
            }
        ]
    },
    {
        "id":"lleglaris_r2",
        "message":"Ok then. I won't keep you."
    },
    {
        "id":"lleglaris_r3",
        "message":"Yes, that's the one. It's good to see it back in my hands again.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris_r4"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"lleglaris",
                "value":30
            }
        ]
    },
    {
        "id":"lleglaris_r4",
        "message":"Thank you for finding my amulet.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris_r5"
            }
        ]
    },
    {
        "id":"lleglaris_r5",
        "message":"Maybe you really are an experienced adventurer after all.",
        "replies":[
            {
                "text":"N",
                "nextPhraseID":"lleglaris_r6"
            }
        ]
    },
    {
        "id":"lleglaris_r6",
        "message":"Anyway, see this table here? It's just some old trinkets that I've gathered along the years. Maybe some of them could come in handy for you?",
        "replies":[
            {
                "text":"Let me see what you have.",
                "nextPhraseID":"S"
            }
        ],
        "rewards":[
            {
                "rewardType":"questProgress",
                "rewardID":"lleglaris",
                "value":40
            }
        ]
    },
    {
        "id":"lleglaris_rej",
        "message":"With you? No way. You look way to inexperienced.",
        "replies":[
            {
                "text":"Watch it. Do you even know who you're talking to?",
                "nextPhraseID":"lleglaris2"
            },
            {
                "text":"Fine. Maybe later them.",
                "nextPhraseID":"X"
            }
        ]
    }
]