| 1 |
{ |
| 2 |
"rules": [ |
| 3 |
{ |
| 4 |
"match" : ["*"], |
| 5 |
"pre" : [["quest", "scorn/Rhyz", "30"]], |
| 6 |
"post" : [], |
| 7 |
"msg" : ["Hello $you, nice to see you again."] |
| 8 |
}, { |
| 9 |
"match" : ["sure"], |
| 10 |
"pre" : [["npctoken", "state", "2"], ["item", "empty bottle"]], |
| 11 |
"post" : [["takeitem", "empty bottle", "1"], ["quest", "scorn/Rhyz", "30"], ["giveitem", "potion of gem essence"]], |
| 12 |
"msg" : ["Here you go, take this gem essence."] |
| 13 |
}, { |
| 14 |
"match" : ["sure"], |
| 15 |
"pre" : [["npctoken", "state", "2"]], |
| 16 |
"post" : [["setnpctoken", "state", "0"]], |
| 17 |
"msg" : ["Hum, where is that empty bottle of yours?"] |
| 18 |
}, { |
| 19 |
"match" : ["*"], |
| 20 |
"pre" : [["npctoken", "state", "2"]], |
| 21 |
"post" : [["setnpctoken", "state", "0"]], |
| 22 |
"msg" : ["Well, come back later then."] |
| 23 |
}, { |
| 24 |
"match" : ["gem"], |
| 25 |
"pre" : [["npctoken", "state", "1"]], |
| 26 |
"post" : [["setnpctoken", "state", "2"]], |
| 27 |
"msg" : ["Ha, glad to see he's making progress.\n\nWell, it's easy, give me a bottle, and I'll fill it for you."], |
| 28 |
"replies" : [["sure", "Sure, here is an empty bottle.", "0"], ["later", "Sorry I don't have any empty bottle for now.", "0"]] |
| 29 |
}, { |
| 30 |
"match" : ["hi", "hello"], |
| 31 |
"pre" : [["quest", "scorn/Rhyz", "10-20"]], |
| 32 |
"post" : [["setnpctoken", "state", "1"]], |
| 33 |
"msg" : ["Hello there."], |
| 34 |
"replies" : [["gem", "Rhyz sent me to get some gem essence for his amulet.", "0"]] |
| 35 |
}, { |
| 36 |
"match" : ["hi", "hello"], |
| 37 |
"pre" : [], |
| 38 |
"post" : [], |
| 39 |
"msg" : ["Hello there."] |
| 40 |
}, { |
| 41 |
"match" : ["*"], |
| 42 |
"pre" : [], |
| 43 |
"post" : [], |
| 44 |
"msg" : ["Leave me alone!"] |
| 45 |
} |
| 46 |
]} |