From 2113b4efc047b7acb0676ed84fc5d10c366fadfa Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sun, 17 Jul 2011 13:49:51 +0000 Subject: [PATCH] Make the Mudman a quest. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14885 282e977c-c81d-0410-88c4-b93c2d0d6712 --- santo_dominion/blue_wizard.msg | 63 ++++++++++++++++++++++++++++ santo_dominion/mudman/mudman.3 | 16 +++++-- santo_dominion/santo_dominion.quests | 29 +++++++++++++ santo_dominion/tavern | 30 +++++-------- world.quests | 1 + world/world_102_108 | 5 +++ 6 files changed, 121 insertions(+), 23 deletions(-) create mode 100644 santo_dominion/blue_wizard.msg create mode 100644 santo_dominion/santo_dominion.quests diff --git a/santo_dominion/blue_wizard.msg b/santo_dominion/blue_wizard.msg new file mode 100644 index 000000000..786b0372d --- /dev/null +++ b/santo_dominion/blue_wizard.msg @@ -0,0 +1,63 @@ +{ + "rules": [ + { + "match" : ["*"], + "pre" : [["npctoken", "done", "1"]], + "post" : [], + "msg" : ["Hello, adventurer.\n\nPlease come back later, then I may have something for you."] + }, { + "match" : ["yes"], + "pre" : [["quest", "santo_dominion/Mudman", "10-30"], ["npctoken", "dlg", "ask_corpse"], ["item", "Mudman's residue"]], + "post" : [["setnpctoken", "dlg", "0"], ["setnpctoken", "done", "1"], ["quest", "santo_dominion/Mudman", "40"], ["connection", "1"], ["takeitem", "Mudman's residue"]], + "msg" : ["Congratulations!\n\nYou can take the treasure."] + }, { + "match" : ["yes"], + "pre" : [["quest", "santo_dominion/Mudman", "10-30"], ["npctoken", "dlg", "ask_corpse"]], + "post" : [["setnpctoken", "dlg", "0"]], + "msg" : ["Where is the body, then?"] + }, { + "match" : ["no"], + "pre" : [["quest", "santo_dominion/Mudman", "10-30"], ["npctoken", "dlg", "ask_corpse"]], + "post" : [["setnpctoken", "dlg", "0"]], + "msg" : ["Well, please come back when you have it, then."] + }, { + "match" : ["*"], + "pre" : [["quest", "santo_dominion/Mudman", "10-30"]], + "post" : [["setnpctoken", "dlg", "ask_corpse"]], + "msg" : ["Did you kill the Mudman?"], + "replies" : [["yes", "Yes.", "1"], ["no", "No, not yet.", "1"]] + }, { + "match" : ["yes"], + "pre" : [["npctoken", "dlg", "ask_quest"]], + "post" : [["setnpctoken", "dlg", "0"], ["quest", "santo_dominion/Mudman", "10"]], + "msg" : ["Then bring me the residue."] + }, { + "match" : ["*"], + "pre" : [["npctoken", "dlg", "ask_quest"]], + "post" : [["setnpctoken", "dlg", "0"]], + "msg" : ["Ha well, come back if you want to try your strength."] + }, { + "match" : ["mudman"], + "pre" : [["npctoken", "dlg", "ask_mudman"]], + "post" : [["setnpctoken", "dlg", "ask_quest"]], + "msg" : ["The Mudman is a vile creature lurking in swamps just west of this town.\nThe inhabitants of St. Dominion are scared of the Mudman. Kill him and put his residue on my table. Then I will open the gate for you.\n\nSo are you ready for this challenge?"], + "replies" : [["yes", "Sure, I'm more powerful than I appear!", "1"], ["no", "Well, not now, I feel lazy.", "1"]] + }, { + "match" : ["yes"], + "pre" : [["npctoken", "dlg", "ask"]], + "post" : [["setnpctoken", "dlg", "ask_mudman"]], + "msg" : ["Do you see this room behind me? It's the \"hero's room\". You may enter if you prove yourself worthy by killing the Mudman."], + "replies" : [["mudman", "What is the mudman?", "2"]] + }, { + "match" : ["*"], + "pre" : [["npctoken", "dlg", "ask"]], + "post" : [["setnpctoken", "dlg", "0"]], + "msg" : ["Well, maybe another time, then."] + }, { + "match" : ["*"], + "pre" : [], + "post" : [["setnpctoken", "dlg", "ask"]], + "msg" : ["Hello adventurer.\n\nDo you want a challenge?"], + "replies" : [["yes", "Yes, of course, I'm always ready for challenges.", "1"]] + } +]} diff --git a/santo_dominion/mudman/mudman.3 b/santo_dominion/mudman/mudman.3 index d96b70ecf..0496fa0ae 100644 --- a/santo_dominion/mudman/mudman.3 +++ b/santo_dominion/mudman/mudman.3 @@ -8,7 +8,7 @@ enter_x 1 enter_y 7 msg Created: 2000-11-17 -Modified: 2008-10-31 Rick Tanner +Modified: 2011-07-17 Nicolas Weeger endmsg end arch dungeon_magic @@ -1652,6 +1652,16 @@ name Mudman's residue type 0 material 0 value 4000 +arch event_pickup +name santo_dominion/Mudman 20>30 +title Python +slaying /python/quests/QuestAdvance.py +end +arch event_drop +name santo_dominion/Mudman 40 +title Python +slaying /python/quests/QuestEssentialUntil.py +end end arch spell_mass_confusion end @@ -3058,9 +3068,7 @@ arch magic_mouth name 3 msg The Mudman says: -Ssstranger! The ssswamp iss just like -you... Ssswallowing, never getsss -enough... +Ssstranger! The ssswamp iss just like you... Ssswallowing, never getsss enough... endmsg x 21 y 1 diff --git a/santo_dominion/santo_dominion.quests b/santo_dominion/santo_dominion.quests new file mode 100644 index 000000000..626c9a6d0 --- /dev/null +++ b/santo_dominion/santo_dominion.quests @@ -0,0 +1,29 @@ +quest santo_dominion/Mudman +title The Mudman +description +To get some treasure, I need to kill the Mudman, which lives west of Santo Dominion, and bring back its residue to the Golden Lion. +end_description +restart 1 +step 10 +description +I must find where the Mudman lives, west of Santo Dominion. +end_description +end_step +step 20 +description +I found where the Mudman lives, now I must kill it and get its corpse. +end_description +end_step +step 30 +description +I have killed the Mudman and got its corpse, which I should bring back to the Golden Lion. +end_description +end_step +step 40 +finishes_quest +description +I completed the quest, and can get my treasure. +end_description +end_step +end_quest + diff --git a/santo_dominion/tavern b/santo_dominion/tavern index a5946a6db..1f8ad8a76 100644 --- a/santo_dominion/tavern +++ b/santo_dominion/tavern @@ -2667,6 +2667,13 @@ arch flowers_permanent x 18 y 5 end +arch altar +name note: here to satisfy Gridarta, the connection will be activated from the blue wizard's message file. +food 1 +x 18 +y 6 +connected 1 +end arch woodfloor x 18 y 6 @@ -2856,26 +2863,11 @@ type 0 move_type walk monster 1 friendly 1 +arch event_say +name santo_dominion/blue_wizard.msg +title Python +slaying /python/dialog/npc_dialog.py end -arch altar -name 1 -slaying Mudman's residue -food 1 -x 19 -y 9 -connected 1 -end -arch magic_mouth -name 1 -msg -The blue wizard says: -You defeated the Mudman, you are -truly a hero! Take your reward. -endmsg -x 19 -y 9 -connected 1 -move_on 0 end arch woodfloor x 19 diff --git a/world.quests b/world.quests index b2ed2239b..2d308d096 100644 --- a/world.quests +++ b/world.quests @@ -36,3 +36,4 @@ include wolfsburg/wolfsburg.quests include darcap/darcap/elemental.quests +include santo_dominion/santo_dominion.quests diff --git a/world/world_102_108 b/world/world_102_108 index 04e9c8b89..640116434 100644 --- a/world/world_102_108 +++ b/world/world_102_108 @@ -726,6 +726,11 @@ hp 28 sp 11 x 3 y 20 +arch event_apply +name santo_dominion/Mudman 10>20 +title Python +slaying /python/quests/QuestAdvance.py +end end arch shallow_sea x 3