From 4fc5195b7e3f73b099a5d113463425b2dad10550 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 25 May 2021 19:11:27 -0300 Subject: Make Cindy's Quest repeatable. However, reward can only be acquired once. --- npc/031-4/cindyCave.txt | 25 +++++++++++++++++++------ 1 file 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: -- cgit v1.2.3-60-g2f50