Use Python-based scripts instead of specific plugin.
git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13334 282e977c-c81d-0410-88c4-b93c2d0d6712master
parent
54bccf406a
commit
33401e83d1
|
@ -0,0 +1,53 @@
|
||||||
|
{
|
||||||
|
"location" : "darcap/darcap/bob",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"match" : ["roots"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "=20"]],
|
||||||
|
"post" : [["quest", "darcap/Spike", "30"], ["givecontents", "pouch"]],
|
||||||
|
"msg" : ["Ha yes, the roots!\n\nI almost forgot.\n\nHere, take them, and give them to Molthir for me, please."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["day"],
|
||||||
|
"pre" : [],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Yes, every day. Now either buy something or leave. I'm busy."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["bakery", "food"],
|
||||||
|
"pre" : [],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Yep, I get fresh fish every day."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["name"],
|
||||||
|
"pre" : [],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["My name is Bob. I own this place."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["sage"],
|
||||||
|
"pre" : [],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["I don't know. Go ask them!"],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["order", "tower"],
|
||||||
|
"pre" : [],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["To open the Tower, you must uses each part in order of the sage's names. Good Luck."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["*"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "=20"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Hello. Would you like to buy some fish?"],
|
||||||
|
"replies" : [["roots", "Do you have Molthir's smaprh roots?", "2"]]
|
||||||
|
},{
|
||||||
|
"match" : ["*"],
|
||||||
|
"pre" : [],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Hello. Would you like to buy some fish?"],
|
||||||
|
"replies" : []
|
||||||
|
}
|
||||||
|
]}
|
|
@ -0,0 +1,59 @@
|
||||||
|
{
|
||||||
|
"location" : "darcap/darcap/molthir",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"match" : ["yes"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "20-30"], ["item", "smaprh roots", "5"]],
|
||||||
|
"post" : [["quest", "darcap/Spike", "40"], ["takeitem", "smaprh root", "5"], ["givecontents", "pouch"]],
|
||||||
|
"msg" : ["Great! Now I can make my potion.\n\nHere, give that to Spike, that should help him."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["yes"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "20-30"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Well, where are there, then?"],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["no"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "20-30"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Well, please go to Bob's place to get them..."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["*"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "20-30"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["So, did you get those roots?"],
|
||||||
|
"replies" : [["yes", "Yes, I got them from Bob.", "1"], ["no", "No, not yet", "1"]]
|
||||||
|
},{
|
||||||
|
"match" : ["yes"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "10"]],
|
||||||
|
"post" : [["quest", "darcap/Spike", "20"]],
|
||||||
|
"msg" : ["That is really generous of you, thank you!"],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["no"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "10"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Ha well, maybe later them..."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["potion"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "10"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Ha yes, the famous Potion to cure back aches!\n\nUnfortunately 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.\n\nWould you mind getting them for me?\n"],
|
||||||
|
"replies" : [["yes", "Ok, *sigh*, I'll go get them.", "1"], ["no", "Not now, sorry, I got things to do.", "1"]]
|
||||||
|
},{
|
||||||
|
"match" : ["*"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "10"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Hello, and welcome to Molthir's potion shop!\n\nI hope you'll find suitable things."],
|
||||||
|
"replies" : [["potion", "Spike sent me to get a potion for his hurting back, do you have one around?", "0"]]
|
||||||
|
},{
|
||||||
|
"match" : ["*"],
|
||||||
|
"pre" : [],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Hello, and welcome to Molthir's potion shop!\n\nI hope you'll find suitable things."],
|
||||||
|
"replies" : []
|
||||||
|
}
|
||||||
|
]}
|
|
@ -11,7 +11,7 @@ enter_x 13
|
||||||
enter_y 14
|
enter_y 14
|
||||||
msg
|
msg
|
||||||
Created: 1996-05-02 bt foom (thomas@astro.psu.edu)
|
Created: 1996-05-02 bt foom (thomas@astro.psu.edu)
|
||||||
Modified: 2010-01-17 Nicolas Weeger
|
Modified: 2010-05-30 Nicolas Weeger
|
||||||
endmsg
|
endmsg
|
||||||
end
|
end
|
||||||
arch woodfloor
|
arch woodfloor
|
||||||
|
@ -1153,51 +1153,23 @@ x 14
|
||||||
y 12
|
y 12
|
||||||
randomitems standard
|
randomitems standard
|
||||||
pick_up 0
|
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
|
arch event_say
|
||||||
title cf_darcap
|
name /darcap/darcap/molthir.msg
|
||||||
slaying darcap/Molthir
|
title Python
|
||||||
|
slaying /python/dialog/npc_dialog.py
|
||||||
|
end
|
||||||
|
arch NPCGift
|
||||||
|
arch pouch
|
||||||
|
arch blood
|
||||||
|
name Molthir's famous potion for the back
|
||||||
|
face vial_red.111
|
||||||
|
arch event_drop
|
||||||
|
name darcap/Spike 50
|
||||||
|
title Python
|
||||||
|
slaying /python/quests/QuestEssentialUntil.py
|
||||||
|
end
|
||||||
end
|
end
|
||||||
arch scroll_2
|
|
||||||
name dlg_wait_roots
|
|
||||||
msg
|
|
||||||
@match *
|
|
||||||
So, did you get the roots?
|
|
||||||
endmsg
|
|
||||||
end
|
end
|
||||||
arch event_user
|
|
||||||
title cf_darcap
|
|
||||||
slaying darcap/Molthir
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
arch woodfloor
|
arch woodfloor
|
||||||
|
|
|
@ -10,7 +10,7 @@ height 16
|
||||||
enter_x 2
|
enter_x 2
|
||||||
enter_y 1
|
enter_y 1
|
||||||
msg
|
msg
|
||||||
Modified: 2010-01-17 Nicolas Weeger
|
Modified: 2010-05-30 Nicolas Weeger
|
||||||
endmsg
|
endmsg
|
||||||
end
|
end
|
||||||
arch woodfloor
|
arch woodfloor
|
||||||
|
@ -329,57 +329,23 @@ y 7
|
||||||
pick_up 0
|
pick_up 0
|
||||||
monster 0
|
monster 0
|
||||||
arch event_say
|
arch event_say
|
||||||
title cf_darcap
|
name /darcap/darcap/bob.msg
|
||||||
slaying darcap/Bob
|
title Python
|
||||||
|
slaying /python/dialog/npc_dialog.py
|
||||||
|
end
|
||||||
|
arch NPCGift
|
||||||
|
arch pouch
|
||||||
|
arch blackroot
|
||||||
|
name smaprh root
|
||||||
|
name_pl smaprh roots
|
||||||
|
nrof 5
|
||||||
|
arch event_drop
|
||||||
|
name darcap/Spike 40
|
||||||
|
title Python
|
||||||
|
slaying /python/quests/QuestEssentialUntil.py
|
||||||
|
end
|
||||||
end
|
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
|
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
|
||||||
end
|
end
|
||||||
arch shop_empty
|
arch shop_empty
|
||||||
|
|
|
@ -11,7 +11,7 @@ enter_x 14
|
||||||
enter_y 14
|
enter_y 14
|
||||||
msg
|
msg
|
||||||
Created: 1994-10-11
|
Created: 1994-10-11
|
||||||
Modified: 2010-01-24 Nicolas Weeger
|
Modified: 2010-05-30 Nicolas Weeger
|
||||||
endmsg
|
endmsg
|
||||||
end
|
end
|
||||||
arch shop_empty
|
arch shop_empty
|
||||||
|
@ -1122,15 +1122,6 @@ y 12
|
||||||
end
|
end
|
||||||
arch guildmaster
|
arch guildmaster
|
||||||
name Spike
|
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
|
face paladin.151
|
||||||
hp 100
|
hp 100
|
||||||
maxhp 100
|
maxhp 100
|
||||||
|
@ -1139,54 +1130,16 @@ y 12
|
||||||
randomitems throw_stnd
|
randomitems throw_stnd
|
||||||
pick_up 0
|
pick_up 0
|
||||||
arch event_say
|
arch event_say
|
||||||
name event_say
|
name /darcap/darcap/spike.msg
|
||||||
title cf_darcap
|
title Python
|
||||||
slaying darcap/Spike
|
slaying /python/dialog/npc_dialog.py
|
||||||
end
|
end
|
||||||
arch scroll_2
|
arch NPCGift
|
||||||
name dlg_start
|
arch pouch
|
||||||
msg
|
arch platinacoin
|
||||||
@match quest_accept
|
nrof 3
|
||||||
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
|
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
|
end
|
||||||
arch scroll_2
|
|
||||||
name dlg_again
|
|
||||||
msg
|
|
||||||
@match quest_accept
|
|
||||||
Oh, many thanks!
|
|
||||||
@match *
|
|
||||||
@reply quest_accept Ok, I'll go fetch your potion, then.
|
|
||||||
Thanks to the potion you brought me, my back is better.
|
|
||||||
|
|
||||||
Unfortunately I feel the effects wearing really fast...
|
|
||||||
|
|
||||||
Would you be kind enough to go get me another potion from the potion shop?
|
|
||||||
endmsg
|
|
||||||
end
|
|
||||||
arch event_user
|
|
||||||
name event_user
|
|
||||||
title cf_darcap
|
|
||||||
slaying darcap/Spike
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
arch woodfloor
|
arch woodfloor
|
||||||
|
|
|
@ -0,0 +1,47 @@
|
||||||
|
{
|
||||||
|
"location" : "darcap/darcap/spike",
|
||||||
|
"rules": [
|
||||||
|
{
|
||||||
|
"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"]],
|
||||||
|
"msg" : ["Ohhhhh, thanks!\n\nHere, take this as a token of gratitude."],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["yes"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "10"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Where is it, then? Please give it to me!"],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["no"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "10"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Please get it, my back is hurting me a lot!"],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["*"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "10"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Please, did you get the potion from Molthir?"],
|
||||||
|
"replies" : [["yes", "Yes, I finally got it...", "1"], ["no", "No, not yet, sorry.", "1"]]
|
||||||
|
},{
|
||||||
|
"match" : ["yes"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "0"]],
|
||||||
|
"post" : [["quest", "darcap/Spike", "10"]],
|
||||||
|
"msg" : ["Oh, many thanks!"],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"match" : ["no"],
|
||||||
|
"pre" : [["quest", "darcap/Spike", "0"]],
|
||||||
|
"post" : [],
|
||||||
|
"msg" : ["Haaaaa, my poor back, if you can help, please tell me!"],
|
||||||
|
"replies" : []
|
||||||
|
},{
|
||||||
|
"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?"],
|
||||||
|
"replies" : [["yes", "Sure, I guess I can do that.", "0"], ["no", "No, sorry, I don't have time for now...", "0"]]
|
||||||
|
}
|
||||||
|
]}
|
Loading…
Reference in New Issue