summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-25 19:11:27 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-25 19:11:27 -0300
commit4fc5195b7e3f73b099a5d113463425b2dad10550 (patch)
treed39cdafc8d3b6736129e6083ff1efc5802d8ce95
parent3baf7c4f0d7c616bc545a29a12dcfd691e53cfc4 (diff)
downloadserverdata-4fc5195b7e3f73b099a5d113463425b2dad10550.tar.gz
serverdata-4fc5195b7e3f73b099a5d113463425b2dad10550.tar.bz2
serverdata-4fc5195b7e3f73b099a5d113463425b2dad10550.tar.xz
serverdata-4fc5195b7e3f73b099a5d113463425b2dad10550.zip
Make Cindy's Quest repeatable. However, reward can only be acquired once.
-rw-r--r--npc/031-4/cindyCave.txt25
1 files changed, 19 insertions, 6 deletions
diff --git a/npc/031-4/cindyCave.txt b/npc/031-4/cindyCave.txt
index 46886638..16f5fd8c 100644
--- a/npc/031-4/cindyCave.txt
+++ b/npc/031-4/cindyCave.txt
@@ -23,7 +23,7 @@ L_Please_Help:
L_Next:
mes "Cindy doesn't look so scared anymore.";
next;
- mes "[Cindy]";
+ mesn;
mes "\"Hello, adventurer. Did my mother send you?\"";
next;
mes "\"It's so cold in here! Can you please open the cage?\"";
@@ -36,9 +36,9 @@ L_Next:
L_Try_Cage:
if (BaseLevel < @minLevel)
goto L_To_Weak;
- if (countitem("TreasureKey") < @KEYS_AMOUNT)
+ if (countitem(TreasureKey) < @KEYS_AMOUNT)
goto L_Not_Enough_Keys;
- delitem "TreasureKey", @KEYS_AMOUNT;
+ delitem TreasureKey, @KEYS_AMOUNT;
mes "As you try to open the door of the cage, there is a loud squeaking noise.";
next;
mes "You get an uncomfortable feeling and Cindy starts to shiver.";
@@ -57,12 +57,12 @@ L_Try_Cage:
goto L_close;
L_Yeti:
- mes "[Cindy]";
+ mesn;
mes "\"Watch out, the Yetis!\"";
goto L_close;
L_Reward:
- mes "[Cindy]";
+ mesn;
mes "\"You are a hero! All these strong monsters!\"";
next;
mes "\"I've found this thing in the cave - it looks valuable. I want you to have it.\"";
@@ -92,8 +92,21 @@ L_Visit:
goto L_close;
L_Please_Visit:
- mes "[Cindy]";
+ mesn;
mes "\"Thank you, thank you! You're a hero! Please come home with me to our house at the beach!\"";
+ next;
+ mesc l("You can relive the memories for %d %s, however, the rewards cannot be obtained again.", @KEYS_AMOUNT*2, getitemlink(TreasureKey));
+ if (countitem(TreasureKey) < @KEYS_AMOUNT*2)
+ goto L_close;
+ mesc l("Do you want to?");
+ next;
+ if (askyesno() == ASK_YES &&
+ !$@FIGHT_YETI_STATUS &&
+ BaseLevel >= @minLevel)
+ {
+ delitem TreasureKey, @KEYS_AMOUNT;
+ goto L_Try_Cage;
+ }
goto L_close;
L_To_Weak: