Make the Mudman a quest.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@14885 282e977c-c81d-0410-88c4-b93c2d0d6712
master
ryo_saeba 2011-07-17 13:49:51 +00:00
parent 4e293823e8
commit 2113b4efc0
6 changed files with 121 additions and 23 deletions

View File

@ -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"]]
}
]}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -36,3 +36,4 @@ include wolfsburg/wolfsburg.quests
include darcap/darcap/elemental.quests
include santo_dominion/santo_dominion.quests

View File

@ -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