Add default message, force asking for 'pirate' or 'job' to be able to get treasure information

master
Nicolas Weeger 2021-08-22 10:56:00 +02:00
parent 92c1ad5320
commit 4c39b6e71a
1 changed files with 7 additions and 2 deletions

View File

@ -2,13 +2,13 @@
"rules": [ "rules": [
{ {
"match" : ["treasure"], "match" : ["treasure"],
"pre" : [["quest", "wolfsburg/treasure-island", "=10"]], "pre" : [["quest", "wolfsburg/treasure-island", "=10"], ["npctoken", "state", "job"]],
"post" : [["quest", "wolfsburg/treasure-island", "20"]], "post" : [["quest", "wolfsburg/treasure-island", "20"]],
"msg" : ["Yarh, I do happen.\n\nYou need a magic shovel.\n\nTalk to my friend Long John Silver in this tavern, he knows more than I do."] "msg" : ["Yarh, I do happen.\n\nYou need a magic shovel.\n\nTalk to my friend Long John Silver in this tavern, he knows more than I do."]
}, { }, {
"match" : ["pirate", "job"], "match" : ["pirate", "job"],
"pre" : [["quest", "wolfsburg/treasure-island", "=10"]], "pre" : [["quest", "wolfsburg/treasure-island", "=10"]],
"post" : [], "post" : [["setnpctoken", "state", "job"]],
"msg" : ["I search the seven seas looking for treasure."], "msg" : ["I search the seven seas looking for treasure."],
"replies" : [["treasure", "Talking of treasure, you don't happen to know anything about the so-called treasure island?", "2"]] "replies" : [["treasure", "Talking of treasure, you don't happen to know anything about the so-called treasure island?", "2"]]
}, { }, {
@ -26,5 +26,10 @@
"pre" : [], "pre" : [],
"post" : [], "post" : [],
"msg" : ["I search the seven seas looking for treasure."] "msg" : ["I search the seven seas looking for treasure."]
}, {
"match" : ["*"],
"pre" : [],
"post" : [],
"msg" : ["ARRRRRRR MATEY!!!!!"]
} }
]} ]}