From e525db0ebdfbafc38fc7b9fded00d66c41c9a8f9 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sun, 15 Jul 2012 13:11:11 +0000 Subject: [PATCH] Quest: The Treasure Island. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18365 282e977c-c81d-0410-88c4-b93c2d0d6712 --- wolfsburg/black_beard.msg | 30 +++++++++++++++++++++++ wolfsburg/etern_rew | 42 +++++++++++++++++--------------- wolfsburg/long_john_silver.msg | 31 ++++++++++++++++++++++++ wolfsburg/wolfsburg.quests | 44 ++++++++++++++++++++++++++++++++++ world/world_128_107 | 8 ++++++- world/world_128_109 | 9 +++++-- world/world_129_107 | 12 +++++++++- world/world_129_109 | 44 +++++++++++++++------------------- 8 files changed, 172 insertions(+), 48 deletions(-) create mode 100644 wolfsburg/black_beard.msg create mode 100644 wolfsburg/long_john_silver.msg diff --git a/wolfsburg/black_beard.msg b/wolfsburg/black_beard.msg new file mode 100644 index 000000000..45a39edd9 --- /dev/null +++ b/wolfsburg/black_beard.msg @@ -0,0 +1,30 @@ +{ + "rules": [ + { + "match" : ["treasure"], + "pre" : [["quest", "wolfsburg/treasure-island", "=10"]], + "post" : [["quest", "wolfsburg/treasure-island", "20"]], + "msg" : ["Yarh, I do happen.\n\nYou need a magic shovel.\n\nTalk to my friend Long John Silver in this tavern, he knows more than I do."] + }, { + "match" : ["pirate", "job"], + "pre" : [["quest", "wolfsburg/treasure-island", "=10"]], + "post" : [], + "msg" : ["I search the seven seas looking for treasure."], + "replies" : [["treasure", "Talking of treasure, you don't happen to know anything about the so-called treasure island?", "2"]] + }, { + "match" : ["hi", "hello"], + "pre" : [], + "post" : [], + "msg" : ["ARRRRRRR MATEY!!!!!"] + }, { + "match" : ["name"], + "pre" : [], + "post" : [], + "msg" : ["I am Black Beard the pirate."] + }, { + "match" : ["pirate", "job"], + "pre" : [], + "post" : [], + "msg" : ["I search the seven seas looking for treasure."] + } +]} diff --git a/wolfsburg/etern_rew b/wolfsburg/etern_rew index 3df72ed18..14c218232 100644 --- a/wolfsburg/etern_rew +++ b/wolfsburg/etern_rew @@ -7,7 +7,7 @@ height 28 enter_x 9 enter_y 24 msg -Modified: 2012-05-15 Rick Tanner +Modified: 2012-07-15 Nicolas Weeger endmsg end arch dungeon_floor @@ -652,12 +652,6 @@ arch woodfloor x 4 y 12 end -arch key2 -name An old rusty key -slaying rustyrusty -x 4 -y 12 -end arch pirate name Long John Silver msg @@ -668,6 +662,25 @@ hp 100 x 4 y 12 unaggressive 1 +arch npc_dialog +name /wolfsburg/long_john_silver.msg +end +arch NPCGift +name key_box +arch key2 +name An old rusty key +slaying rustyrusty +end +end +arch NPCGift +name map_box +arch scroll_2 +name map to the magic shovel +msg +This is a hand-drawn map by John Long Silver, but you can't make any sense of it. +endmsg +end +end end arch woodfloor x 4 @@ -2312,14 +2325,6 @@ arch woodfloor x 15 y 6 end -arch letter -name Instructions for Magic Shovel -msg -Us the shovel to break through the mountains and then stand where you think the treasure is and push 'A'. -endmsg -x 15 -y 6 -end arch pirate name Black Beard msg @@ -2329,14 +2334,13 @@ ARRRRRRR MATEY!!!!! I am Bluebeard the pirate. @match pirate|job I search the seven seas looking for treasure. -@match treasure -Long John and I hid some treasure on an island and we buried it. He locked the map in his den and I have the instructions to use the magic shovel. -@match shovel|magic|magic shovel -We had a magic shovel. But we lost it on a distant island. endmsg x 15 y 6 unaggressive 1 +arch npc_dialog +name /wolfsburg/black_beard.msg +end end arch woodfloor x 15 diff --git a/wolfsburg/long_john_silver.msg b/wolfsburg/long_john_silver.msg new file mode 100644 index 000000000..6bf53d0a1 --- /dev/null +++ b/wolfsburg/long_john_silver.msg @@ -0,0 +1,31 @@ +{ + "rules": [ + { + "match" : ["yes"], + "pre" : [["quest", "wolfsburg/treasure-island", "30-40"], ["item", "Long John Silver's treasure map"]], + "post" : [["quest", "wolfsburg/treasure-island", "50"], ["takeitem", "Long John Silver's treasure map"], ["givecontents", "map_box"]], + "msg" : ["Yarrr, here is the map to the magic shovel.\n\nTry talking to the cap'tains of gallions here, one should be able to take you there."] + }, { + "match" : ["yes"], + "pre" : [["quest", "wolfsburg/treasure-island", "30-40"]], + "post" : [], + "msg" : ["Where is it?"] + }, { + "match" : ["*"], + "pre" : [["quest", "wolfsburg/treasure-island", "30-40"]], + "post" : [], + "msg" : ["Yar mate, got my map already?"], + "replies" : [["yes", "Yes, I do.", "1"]] + }, { + "match" : ["treasure"], + "pre" : [["quest", "wolfsburg/treasure-island", "=20"]], + "post" : [["quest", "wolfsburg/treasure-island", "30"], ["givecontents", "key_box"]], + "msg" : ["Yaeahhh!\n\nYou need the magic shovel which is on a remote island.\n\nHere is the key to my den, reachable from Wolfsburg by boat, it contains a map, please bring it to me."] + }, { + "match" : ["*"], + "pre" : [["quest", "wolfsburg/treasure-island", "=20"]], + "post" : [], + "msg" : ["ARRRRRRR!!!!!"], + "replies" : [["treasure", "Black Beard says you know things about the so-called treasure island?", "0"]] + } +]} diff --git a/wolfsburg/wolfsburg.quests b/wolfsburg/wolfsburg.quests index 35d51e74f..b965d17c1 100644 --- a/wolfsburg/wolfsburg.quests +++ b/wolfsburg/wolfsburg.quests @@ -66,3 +66,47 @@ end_description end_step end_quest +quest wolfsburg/treasure-island +title The Treasure Island +face biggalleon.x11 +description +Find the key to a hidden treasure on an island. +end_description +step 10 +description +I found what claims to be a treasure island, but I don't know how to claim that treasure. I should investigate in Wolfsburg. +end_description +end_step +step 20 +description +I should talk to Long John Silver, in the Eternal reward taven. +end_description +end_step +step 30 +description +Long John Silver gave me the key to his den, which contains a map he needs. The den is located on some island I can reach in boat from Wolfsburg. +end_description +end_step +step 40 +description +I have Long John Silver's map, I should go talk to him. +end_description +end_step +step 50 +description +I must go find the magic shovel. Long John Silver made me a map, and a gallion from Wolfsburg should be able to transport me to that island. +end_description +end_step +step 60 +description +I have the magic shovel, I can now go claim the treasure on the island. +end_description +end_step +step 70 +finishes_quest +description +I claimed the treasure. +end_description +end_step +end_quest + diff --git a/world/world_128_107 b/world/world_128_107 index f5a10616c..77ce5eed0 100644 --- a/world/world_128_107 +++ b/world/world_128_107 @@ -4,7 +4,7 @@ region wolfsburg width 50 height 50 msg -Modified: 2007-12-24 tchize +Modified: 2012-07-15 Nicolas Weeger endmsg outdoor 1 tile_path_1 world_128_106 @@ -4313,6 +4313,12 @@ slaying shovel face shovel_1.111 x 17 y 22 +arch quest_advance_pickup +name wolfsburg/treasure-island 50>60 +end +arch quest_prevent_drop +name wolfsburg/treasure-island 70 +end end arch desert x 17 diff --git a/world/world_128_109 b/world/world_128_109 index 8362471db..ac1b6b726 100644 --- a/world/world_128_109 +++ b/world/world_128_109 @@ -5,7 +5,7 @@ region wolfsburg width 50 height 50 msg -Modified: 2012-07-05 Rick Tanner +Modified: 2012-07-15 Nicolas Weeger endmsg outdoor 1 tile_path_1 world_128_108 @@ -8359,12 +8359,17 @@ x 33 y 23 end arch big_galleon -name Island Tours slaying /world/world_128_107 hp 19 sp 23 x 33 y 23 +arch quest_apply_if +name wolfsburg/treasure-island 50-70 +msg +The captain looks at Long John Silver's map, and agrees to take you there. +endmsg +end end arch sea1 x 33 diff --git a/world/world_129_107 b/world/world_129_107 index 772396ac8..5a31770af 100644 --- a/world/world_129_107 +++ b/world/world_129_107 @@ -3,6 +3,9 @@ name world_129_107 region wolfsburg width 50 height 50 +msg +Modified: 2012-07-15 Nicolas Weeger +endmsg outdoor 1 tile_path_1 world_129_106 tile_path_3 world_129_108 @@ -1311,7 +1314,7 @@ x 5 y 20 end arch scroll -name Treasure Map +name Long John Silver's treasure map msg WWWWWWWWWWWWWWWWWWW WWWWW WWWWWWWWW @@ -1328,6 +1331,13 @@ WWWWWWWWWWWWWWWWWWW endmsg x 5 y 20 +identified 1 +arch quest_advance_pickup +name wolfsburg/treasure-island 30>40 +end +arch quest_prevent_drop +name wolfsburg/treasure-island 70 +end end arch woodfloor x 5 diff --git a/world/world_129_109 b/world/world_129_109 index cb1205a7c..93e51a1fc 100644 --- a/world/world_129_109 +++ b/world/world_129_109 @@ -4,7 +4,7 @@ region wolfsburg width 50 height 50 msg -Modified: 2009-10-23 Andreas Kirschbaum +Modified: 2012-07-15 Nicolas Weeger endmsg outdoor 1 tile_path_1 world_129_108 @@ -4862,8 +4862,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 19 @@ -4878,8 +4877,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 19 @@ -4894,8 +4892,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 19 @@ -5141,8 +5138,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 20 @@ -5157,8 +5153,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 20 @@ -5176,13 +5171,15 @@ hp 3 sp 2 x 20 y 42 +arch quest_advance_trigger +name wolfsburg/treasure-island 60>70 +end end arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 20 @@ -5197,8 +5194,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 20 @@ -5440,8 +5436,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 21 @@ -5456,8 +5451,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 21 @@ -5476,8 +5470,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 21 @@ -5722,8 +5715,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 22 @@ -5738,8 +5730,7 @@ arch locked_door1 name rocks slaying shovel msg -You need a special tool to get past -these rocks. +You need a special tool to get past these rocks. endmsg face mountain3.111 x 22 @@ -6240,6 +6231,9 @@ hp 12 sp 14 x 24 y 40 +arch quest_advance_apply +name wolfsburg/treasure-island 0>10 +end end arch pstone_1 x 24