Change text if player already did the quest. Also don't let do it again and again, force to wait for map reset.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13340 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2010-05-30 10:43:50 +00:00
parent 764c046bdf
commit 5eb9ed4fb5
1 changed files with 13 additions and 1 deletions

View File

@ -4,7 +4,7 @@
{
"match" : ["yes"],
"pre" : [["quest", "darcap/Spike", "10"], ["item", "Molthir's famous potion for the back"]],
"post" : [["quest", "darcap/Spike", "50"], ["givecontents", "pouch"], ["takeitem", "Molthir's famous potion for the back"]],
"post" : [["quest", "darcap/Spike", "50"], ["givecontents", "pouch"], ["takeitem", "Molthir's famous potion for the back"], ["setnpctoken", "feel_better", "yes"]],
"msg" : ["Ohhhhh, thanks!\n\nHere, take this as a token of gratitude."],
"replies" : []
},{
@ -26,6 +26,12 @@
"msg" : ["Please, did you get the potion from Molthir?"],
"replies" : [["yes", "Yes, I finally got it...", "1"], ["no", "No, not yet, sorry.", "1"]]
},{
"match" : ["*"],
"pre" : [["questdone", "darcap/Spike"], ["npctoken", "feel_better", "yes"]],
"post" : [],
"msg" : ["Thanks to the potion, my back is much better, thanks!"],
"replies" : []
},{
"match" : ["yes"],
"pre" : [["quest", "darcap/Spike", "0"]],
"post" : [["quest", "darcap/Spike", "10"]],
@ -39,6 +45,12 @@
"replies" : []
},{
"match" : ["*"],
"pre" : [["questdone", "darcap/Spike"]],
"post" : [],
"msg" : ["It was generous of you to give me a potion, but unfortunately my back is starting to hurt again.\n\nWould you be as kind as go get me another one?"],
"replies" : [["yes", "Sure, I guess I can do that.", "1"], ["no", "Sorry, I'm busy right now...", "1"]]
},{
"match" : ["*"],
"pre" : [],
"post" : [],
"msg" : ["Ohhhh, my poor back, it hurts!\n\nWould you be kind enough to go get me a potion from the potion shop?"],