| 1 |
{ |
| 2 |
"rules": [ |
| 3 |
{ |
| 4 |
"match" : ["*"], |
| 5 |
"pre" : [["quest", "navar/Iscar-pen", "=50"]], |
| 6 |
"post" : [], |
| 7 |
"msg" : ["Hello $you, how are you doing?"] |
| 8 |
}, { |
| 9 |
"match" : ["yes"], |
| 10 |
"pre" : [["quest", "navar/Iscar-pen", "10-40"], ["item", "Hasphatois's Writing Pen"], ["npctoken", "status", "has"]], |
| 11 |
"post" : [["quest", "navar/Iscar-pen", "50"], ["takeitem", "Hasphatois's Writing Pen"], ["givecontents", "reward"]], |
| 12 |
"msg" : ["Thank you very much!\n\nHere, take this autograph. There are MANY people who'd like one, you know."] |
| 13 |
}, { |
| 14 |
"match" : ["yes"], |
| 15 |
"pre" : [["quest", "navar/Iscar-pen", "10-40"], ["npctoken", "status", "has"]], |
| 16 |
"post" : [["setnpctoken", "status", "0"]], |
| 17 |
"msg" : ["Where is it?"] |
| 18 |
}, { |
| 19 |
"match" : ["*"], |
| 20 |
"pre" : [["quest", "navar/Iscar-pen", "10-40"], ["npctoken", "status", "has"]], |
| 21 |
"post" : [["setnpctoken", "status", "0"]], |
| 22 |
"msg" : ["*sigh*"] |
| 23 |
}, { |
| 24 |
"match" : ["*"], |
| 25 |
"pre" : [["quest", "navar/Iscar-pen", "10-40"]], |
| 26 |
"post" : [["setnpctoken", "status", "has"]], |
| 27 |
"msg" : ["So, did you get a pen from Hasphatois?"], |
| 28 |
"replies" : [["yes", "Yes, I do.", "1"], ["no", "No, not yet.", "0"]] |
| 29 |
}, { |
| 30 |
"match" : ["ok"], |
| 31 |
"pre" : [["npctoken", "st", "ask"]], |
| 32 |
"post" : [["quest", "navar/Iscar-pen", "10"]], |
| 33 |
"msg" : ["Thank you very much!\n\nHasphatois lives in the mining town north of Navar, you can't miss it if you follow the road."] |
| 34 |
}, { |
| 35 |
"match" : ["*"], |
| 36 |
"pre" : [["npctoken", "st", "ask"]], |
| 37 |
"post" : [["setnpctoken", "st", "0"]], |
| 38 |
"msg" : ["Well, ok, if you change your mind...\n\n*sigh*"] |
| 39 |
}, { |
| 40 |
"match" : ["brand"], |
| 41 |
"pre" : [["npctoken", "st", "br"]], |
| 42 |
"post" : [["setnpctoken", "st", "ask"]], |
| 43 |
"msg" : ["A pen made with graphite and by Hasphatois the smith.\n\nSay, you wouldn't get one for me, do you? I'd give you a great reward!"], |
| 44 |
"replies" : [["ok", "I guess I can help, yes.", "1"], ["no", "No, sorry, I don't have time for now.", "0"]] |
| 45 |
}, { |
| 46 |
"match" : ["why"], |
| 47 |
"pre" : [["npctoken", "st", "why"]], |
| 48 |
"post" : [["setnpctoken", "st", "br"]], |
| 49 |
"msg" : ["I write novels for children.\n\nBut I lost my pen, and I can't write anymore!\n\nWell, I doubt you'd have a decent writing pen anymore, I need some specific brand.\n\n*sigh*"], |
| 50 |
"replies" : [["brand", "What kind of pen, exactly?", "1"]] |
| 51 |
}, { |
| 52 |
"match" : ["*"], |
| 53 |
"pre" : [], |
| 54 |
"post" : [["setnpctoken", "st", "why"]], |
| 55 |
"msg" : ["Hello.\n\nYou wouldn't have a pen, by any chance?"], |
| 56 |
"replies" : [["why", "Why do you need a pen?", "1"]] |
| 57 |
} |
| 58 |
]} |