From bdf76c67ba1df2d2710267b58db569adaa9b019c Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sun, 3 Jun 2012 12:25:09 +0000 Subject: [PATCH] Quest: the cure for Gordon. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18188 282e977c-c81d-0410-88c4-b93c2d0d6712 --- santo_dominion/gordon.msg | 14 ++ santo_dominion/santo_dominion.quests | 33 ++++ santo_dominion/tavern.2ndfloor | 231 +++++++-------------------- santo_dominion/warloc_druid.anim | 26 +++ santo_dominion/warloc_druid.msg | 58 +++++++ 5 files changed, 193 insertions(+), 169 deletions(-) create mode 100644 santo_dominion/gordon.msg create mode 100644 santo_dominion/warloc_druid.anim create mode 100644 santo_dominion/warloc_druid.msg diff --git a/santo_dominion/gordon.msg b/santo_dominion/gordon.msg new file mode 100644 index 000000000..94de7f034 --- /dev/null +++ b/santo_dominion/gordon.msg @@ -0,0 +1,14 @@ +{ + "rules": [ + { + "match" : ["*"], + "pre" : [["quest", "santo_dominion/Gordon", "30"]], + "post" : [], + "msg" : ["Thank you for helping me."] + }, { + "match" : ["*"], + "pre" : [["quest", "santo_dominion/Gordon", "20"]], + "post" : [["quest", "santo_dominion/Gordon", "30"]], + "msg" : ["Thank you for saving me. As promised, you can take my plate, which in the chest."] + } +]} diff --git a/santo_dominion/santo_dominion.quests b/santo_dominion/santo_dominion.quests index 40de22364..1eb4d8907 100644 --- a/santo_dominion/santo_dominion.quests +++ b/santo_dominion/santo_dominion.quests @@ -28,3 +28,36 @@ end_description end_step end_quest +quest santo_dominion/Gordon +title The cure for Gordon the Warrior +face fighter.111 +description +I've been tasked to find ingredients to cure Gordon the Warrior. +end_description +restart 1 +step 10 +description +I must find the three ingredients needed for the cure: +- a beholder's tongue +- a scorpion's stinger +- a skin of a shadow viper +end_description +end_step +step 20 +description +I have found the ingredients, I should talk to Gordon once he's cured. +end_description +end_step +step 30 +description +Gordon gave me the combination for his chest so I can get his armor. +end_description +end_step +step 40 +finishes_quest +description +I've claimed my reward. +end_description +end_step +end_quest + diff --git a/santo_dominion/tavern.2ndfloor b/santo_dominion/tavern.2ndfloor index 28dc0d277..380168906 100644 --- a/santo_dominion/tavern.2ndfloor +++ b/santo_dominion/tavern.2ndfloor @@ -6,7 +6,7 @@ width 33 height 31 msg Created: Andreas Vogl (red.blaze@gmx.net) -Modified: 2012-03-25 Rick Tanner +Modified: 2012-06-03 Nicolas Weeger endmsg end arch grass @@ -3181,15 +3181,15 @@ arch wwall_1_2 x 18 y 18 end -arch woodfloor -hp 30 -sp 26 +arch duplicator +other_arch locked_door2 x 18 y 19 -type 41 connected 14 -activate_on_push 1 -activate_on_release 1 +end +arch woodfloor +x 18 +y 19 end arch locked_door2 slaying no_key_available @@ -3435,16 +3435,6 @@ arch bookshelf x 19 y 23 no_pick 1 -arch note -name list of ingredients -msg -Three ingredients are needed for the cure: -- a beholder's tongue -- a scorpion's stinger -- skin of the shadow viper -When you have them, put them into the cauldron. -endmsg -end end arch woodfloor x 19 @@ -3793,15 +3783,15 @@ arch woodfloor x 21 y 20 end -arch woodfloor -hp 28 -sp 28 +arch duplicator +other_arch sage +x 21 +y 21 +connected 15 +end +arch woodfloor x 21 y 21 -type 41 -connected 14 -activate_on_push 1 -activate_on_release 1 end arch sage name Gorgon the Warrior @@ -3820,25 +3810,9 @@ hp 500 maxhp 500 x 21 y 21 -resist_physical 100 -resist_magic 100 -resist_fire 100 -resist_electricity 100 -resist_cold 100 -resist_confusion 100 -resist_acid 100 -resist_drain 100 -resist_weaponmagic 100 -resist_ghosthit 100 -resist_poison 100 -resist_fear 100 -resist_deplete 100 -resist_death 100 -resist_chaos 100 -resist_godpower 100 -resist_holyword 100 -resist_blind 100 +randomitems none monster 0 +no_damage 1 end arch dungeon_magic x 21 @@ -3907,26 +3881,13 @@ hp 500 maxhp 500 x 21 y 27 -resist_physical 100 -resist_magic 100 -resist_fire 100 -resist_electricity 100 -resist_cold 100 -resist_confusion 100 -resist_acid 100 -resist_drain 100 -resist_weaponmagic 100 -resist_ghosthit 100 -resist_poison 100 -resist_fear 100 -resist_deplete 100 -resist_death 100 -resist_chaos 100 -resist_godpower 100 -resist_holyword 100 -resist_blind 100 randomitems none +move_type walk stand_still 1 +no_damage 1 +arch npc_dialog +name /santo_dominion/warloc_druid.msg +end end arch woodfloor x 21 @@ -4272,6 +4233,13 @@ endmsg resist_fire 20 value 5000 weight 60000 +arch quest_advance_pickup +name santo_dominion/Gordon 30>40 +unique 1 +end +end +arch quest_apply_if +name santo_dominion/Gordon 30 end end arch woodfloor @@ -4314,49 +4282,22 @@ arch afloor_right x 23 y 24 end -arch altar -name 13 -slaying shadow viper's skin -food 1 -x 23 -y 25 -connected 13 -end -arch altar -name 12 -slaying scorpion's stinger -food 1 -x 23 -y 25 -connected 12 -end -arch altar -name 11 -slaying beholder's tongue -food 1 -x 23 -y 25 -connected 11 -end -arch permanent_lava +arch woodfloor name fireplace -hp 0 -dam 0 -wc 0 +face lava.111 +animation permanent_lava x 23 y 25 -type 0 -attacktype 0 -move_on 0 -lifesave 0 +speed 0.2 +is_animated 1 +anim_speed 0.2 end -arch boulder -name cauldron -face cauldron_open.111 +arch cauldron x 23 y 25 -move_block 0 -can_roll 0 +no_pick 1 +identified 1 +is_cauldron 0 end arch afloor_right x 23 @@ -5247,38 +5188,10 @@ arch blocked x 28 y 25 end -arch woodfloor +arch blocked x 28 y 26 end -arch button_small -name 14 -x 28 -y 26 -weight 25000 -connected 14 -end -arch creator -name 13 -other_arch ten_kilo -x 28 -y 26 -connected 13 -end -arch creator -name 12 -other_arch ten_kilo -x 28 -y 26 -connected 12 -end -arch creator -name 11 -other_arch ten_kilo -x 28 -y 26 -connected 11 -end arch blocked x 28 y 27 @@ -5446,51 +5359,10 @@ arch blocked x 29 y 25 end -arch woodfloor +arch blocked x 29 y 26 end -arch magic_mouth -name 14 - done -msg -The Warlock Druid says: -Hooray! The potion is completed. Now my friend Gorgon can be cured! Thank you very much! I'm sure Gorgon will reward you, go see him. -endmsg -x 29 -y 26 -connected 14 -move_on 0 -end -arch magic_mouth -name 13 -msg -You put the shadow viper's skin into the cauldron. -endmsg -x 29 -y 26 -connected 13 -move_on 0 -end -arch magic_mouth -name 12 -msg -You put the scorpion's stinger into the cauldron. -endmsg -x 29 -y 26 -connected 12 -move_on 0 -end -arch magic_mouth -name 11 -msg -You put the beholder's tongue into the cauldron. -endmsg -x 29 -y 26 -connected 11 -move_on 0 -end arch blocked x 29 y 27 @@ -5696,7 +5568,7 @@ sp 20 x 30 y 28 speed 0.0 -connected 14 +connected 15 end arch fighter name Gorgon the Warrior @@ -5711,6 +5583,9 @@ resist_magic 100 resist_fire 100 resist_electricity 100 resist_cold 100 +arch npc_dialog +name /santo_dominion/gordon.msg +end end arch blocked x 30 @@ -6028,14 +5903,32 @@ arch blocked x 32 y 27 end +arch sign +name readme +msg +The buttons are merely here to please Gridarta, the connections 14 and 15 will be called by the animation +endmsg +x 32 +y 27 +end arch blocked x 32 y 28 end +arch button_trigger +x 32 +y 28 +connected 15 +end arch blocked x 32 y 29 end +arch button_trigger +x 32 +y 29 +connected 14 +end arch blocked x 32 y 30 diff --git a/santo_dominion/warloc_druid.anim b/santo_dominion/warloc_druid.anim new file mode 100644 index 000000000..fefc71b30 --- /dev/null +++ b/santo_dominion/warloc_druid.anim @@ -0,0 +1,26 @@ +[Config] +victimtype= object +victim= who +unique= no +always_delete= no +time_representation= second +#animation=MakePotion +[MakePotion] +1 moveto 23 25 +0 message The Warloc makes the fire hotter. +2 stop +0 message The Warloc mixes the ingredients in the cauldron. +2 stop +0 message You see red smoke pouring from the cauldron. +1 stop +1 say The potion is complete, finally! +1 moveto 17 20 +0 message The Warloc opens the door. +0 trigger 14 +1 moveto 20 20 +1 stop +0 message With some effort, the Warloc helps Gordon drink. +1 stop +0 trigger 15 +1 say The potion worked, Gordon is cured! +1 moveto 21 27 diff --git a/santo_dominion/warloc_druid.msg b/santo_dominion/warloc_druid.msg new file mode 100644 index 000000000..09fe163ae --- /dev/null +++ b/santo_dominion/warloc_druid.msg @@ -0,0 +1,58 @@ +{ + "rules": [ + { + "match" : ["*"], + "pre" : [["quest", "santo_dominion/Gordon", "20"]], + "post" : [], + "msg" : ["Thank you for helping us."] + }, { + "match" : ["yes"], + "pre" : [["quest", "santo_dominion/Gordon", "=10"], ["item", "beholder's tongue"], ["item", "scorpion's stinger"], ["item", "shadow viper's skin"]], + "post" : [["animate", "/santo_dominion/warloc_druid.anim", "MakePotion"], ["quest", "santo_dominion/Gordon", "20"], ["takeitem", "beholder's tongue"], ["takeitem", "scorpion's stinger"], ["takeitem", "shadow viper's skin"]], + "msg" : ["Thank you, now I can make the cure!"] + }, { + "match" : ["yes"], + "pre" : [["quest", "santo_dominion/Gordon", "=10"]], + "post" : [], + "msg" : ["Where are they?"] + }, { + "match" : ["no"], + "pre" : [["quest", "santo_dominion/Gordon", "=10"]], + "post" : [], + "msg" : ["Please hurry up..."] + }, { + "match" : ["viper"], + "pre" : [["quest", "santo_dominion/Gordon", "=10"]], + "post" : [], + "msg" : ["A brood of shadow vipers exists somewhere down the well of Santo Dominion. We've got only one well here in town, so you can't miss it. Anyways, be careful down there!"] + }, { + "match" : ["*"], + "pre" : [["quest", "santo_dominion/Gordon", "=10"]], + "post" : [], + "msg" : ["Did you find the ingredients?"], + "replies" : [["yes", "Yes.", "1"], ["no", "No, not yet.", "1"]] + }, { + "match" : ["ok"], + "pre" : [], + "post" : [["quest", "santo_dominion/Gordon", "10"]], + "msg" : ["Thank you very much!"], + "replies" : [["viper", "Where can I find shadow vipers?", "2"]] + }, { + "match" : ["no"], + "pre" : [], + "post" : [], + "msg" : ["Poor Gordon, I hope he'll survive till I can find the ingredients!"] + }, { + "match" : ["how"], + "pre" : [], + "post" : [], + "msg" : ["I need the following ingredients to complete the cure:\n- a beholder's tongue\n- a scorpion's stinger\n- a skin of the shadow viper\n"], + "replies" : [["ok", "Ok, I'll find them.", "0"], ["no", "Sorry, I'm busy for now.", "0"]] + }, { + "match" : ["*"], + "pre" : [], + "post" : [], + "msg" : ["Do you see my friend Gorgon in the other room? He got poisoned. We need some help!"], + "replies" : [["how", "How can I help?", "2"]] + } +]}