From daa7e593b8df0462f3025eb700e64a5f8b662a00 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sun, 17 Jan 2010 15:26:44 +0000 Subject: [PATCH] First really basic quest, to test the mechanisms. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@12347 282e977c-c81d-0410-88c4-b93c2d0d6712 --- darcap/darcap/potionshop | 69 ++++++++++++++++++++++++++++++++++++++-- darcap/darcap/shop_g | 55 +++++++++++++++++++++++++++++++- darcap/darcap/shop_w | 63 +++++++++++++++++++++++++++++++++++- world/world_116_102 | 2 +- 4 files changed, 184 insertions(+), 5 deletions(-) diff --git a/darcap/darcap/potionshop b/darcap/darcap/potionshop index 9f4faa04b..91f5388c3 100644 --- a/darcap/darcap/potionshop +++ b/darcap/darcap/potionshop @@ -1,5 +1,5 @@ arch map -name Darcap Potionshop +name Molthir's Potionshop reset_timeout 7200 difficulty 1 region darcap @@ -11,7 +11,7 @@ enter_x 13 enter_y 14 msg Created: 1996-05-02 bt foom (thomas@astro.psu.edu) -Modified: 2008-12-01 Rick Tanner +Modified: 2010-01-17 Nicolas Weeger endmsg end arch woodfloor @@ -1135,6 +1135,71 @@ arch woodfloor x 14 y 12 end +arch guildmaster +name Molthir +msg +@match * +I'm too busy to help you. +@match note +the actuel dialogs are in the various dlg_xxx scrolls in the inventory of this NPC. +They vary based on the quest currently being done. + +Please don't change the @match and @reply unless you know what you are doing :) +endmsg +face wizard.151 +hp 100 +maxhp 100 +x 14 +y 12 +randomitems standard +pick_up 0 +arch scroll_2 +name dlg_standard +msg +@match * +Hello, and welcome to Molthir's potion shop! + +I hope you'll find suitable things. +endmsg +end +arch scroll_2 +name dlg_first +msg +@match sigh_ok +This is really generous of you, thanks! +@match no +Ha well, maybe later then. +@match spike +@reply sigh_ok Ok, *sigh*, I'll go get them. +@reply no Not now, sorry, I got things to do. +Ha yes, the famous Potion to cure back aches! + +Unfortunately I need some smaprh roots. Bob, at the general store in the south, should have gotten them, but right now I can't get them, I'm doing some alchemy. + +Would you mind getting them for me? +@match * +@question spike Spike says you got potions that can help his back? +Hello, and welcome to Molthir's potion shop! + +I hope you'll find suitable things. +endmsg +end +arch event_say +title cf_darcap +slaying darcap/Molthir +end +arch scroll_2 +name dlg_wait_roots +msg +@match * +So, did you get the roots? +endmsg +end +arch event_user +title cf_darcap +slaying darcap/Molthir +end +end arch woodfloor x 14 y 13 diff --git a/darcap/darcap/shop_g b/darcap/darcap/shop_g index c9ef62177..eadf8707d 100644 --- a/darcap/darcap/shop_g +++ b/darcap/darcap/shop_g @@ -10,7 +10,7 @@ height 16 enter_x 2 enter_y 1 msg -Modified: 2008-12-01 Rick Tanner +Modified: 2010-01-17 Nicolas Weeger endmsg end arch woodfloor @@ -328,6 +328,59 @@ x 3 y 7 pick_up 0 monster 0 +arch event_say +title cf_darcap +slaying darcap/Bob +end +arch scroll_2 +name dlg_standard +msg +@match hello +Hello. Would you like to buy some fish? +@match order|tower +To open the Tower, you must uses each part +in order of the sage's names. Good Luck. +@match sage +I don't know. Go ask them! +@match name +My name is Bob. I own this place. +@match bakery|food +yep, I get fresh fish every day. +@match day +Yes, every day. Now either buy +something or leave. I'm busy. +@match * +Sorry, I don't understand you +endmsg +end +arch scroll_2 +name dlg_roots +msg +@match hello +Hello. Would you like to buy some fish? +@match order|tower +To open the Tower, you must uses each part +in order of the sage's names. Good Luck. +@match sage +I don't know. Go ask them! +@match name +My name is Bob. I own this place. +@match bakery|food +yep, I get fresh fish every day. +@match day +Yes, every day. Now either buy +something or leave. I'm busy. +@match roots +Ha yes, the roots! + +I almost forgot. + +Here, take them, and give them to Molthir for me, please. +@match * +@reply roots Do you have Molthir's smaprh roots? +Sorry, I don't understand you +endmsg +end end arch shop_empty x 3 diff --git a/darcap/darcap/shop_w b/darcap/darcap/shop_w index 5c6becc07..82be4b85d 100644 --- a/darcap/darcap/shop_w +++ b/darcap/darcap/shop_w @@ -11,7 +11,7 @@ enter_x 14 enter_y 14 msg Created: 1994-10-11 -Modified: 2008-12-01 Rick Tanner +Modified: 2010-01-17 Nicolas Weeger endmsg end arch shop_empty @@ -1120,6 +1120,67 @@ arch woodfloor x 14 y 12 end +arch guildmaster +name Spike +msg +@match * +I'm too busy to help you. +@match note +the actuel dialogs are in the various dlg_xxx scrolls in the inventory of this NPC. +They vary based on the quest currently being done. + +Please don't change the @match and @reply unless you know what you are doing :) +endmsg +face paladin.151 +hp 100 +maxhp 100 +x 14 +y 12 +randomitems throw_stnd +pick_up 0 +arch event_say +name event_say +title cf_darcap +slaying darcap/Spike +end +arch scroll_2 +name dlg_start +msg +@match quest_accept +Oh, many thanks! +@match * +@reply quest_accept Ok, I'll go fetch your potion, then. +Ohhhh, my poor back, it hurts! + +Would you be kind enough to go get me a potion from the potion shop? +endmsg +invisible 1 +end +arch scroll_2 +name dlg_progress +msg +@match yes +Please give it to me before I break in two! +@match no +Then please get it rapidly, my poor back! +@match * +@reply no No, sorry +@reply yes Yes, I have it +So, did you get the potion yet? +endmsg +end +arch scroll_2 +name dlg_ended +msg +@match * +Ha, my back is so much better, thanks to the potion you brought me! +endmsg +end +arch event_user +title cf_darcap +slaying darcap/Spike +end +end arch woodfloor x 14 y 13 diff --git a/world/world_116_102 b/world/world_116_102 index d96b7701a..0ffd3dfb9 100644 --- a/world/world_116_102 +++ b/world/world_116_102 @@ -8137,7 +8137,7 @@ y 25 elevation 0 end arch store_alchemy -name Darcap Potionshop +name Molthir's Potionshop slaying /darcap/darcap/potionshop hp 13 sp 14