From edb5b25833627df8e3def9e77c4163e8938f4cf9 Mon Sep 17 00:00:00 2001 From: Jessica Tölke Date: Mon, 2 May 2011 11:10:09 +0200 Subject: gy inn: lover. changing the mode how he takes dark crystals he takes at least 500 and the player can optionally give more to get extra exp. --- npc/027-2_Caretakers_House/lover.txt | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/027-2_Caretakers_House/lover.txt b/npc/027-2_Caretakers_House/lover.txt index 7233cb57..d88a91cd 100644 --- a/npc/027-2_Caretakers_House/lover.txt +++ b/npc/027-2_Caretakers_House/lover.txt @@ -28,6 +28,8 @@ set @CRYSTAL_AMOUNT, 500; set @CRYSTAL_EXP, 200000; + set @CRYSTAL_EXTRA_EXP, 100; + set @CRYSTAL_MAX, 2000; set @DIAMOND_AMOUNT, 20; // caution, this value needs to be the same as in the innkeepers script! if (@state >= 7) goto L_Have_Soul; @@ -56,6 +58,8 @@ mes "\"Oh, someone is holding you back with magic! I sense a really dark and mighty power. What has happened!?\""; next; mes "\"Can I ask you for a favor? Can you bring me lots of [Dark Crystal]s? You might need to ask a dark mage for it. I want to try to break the barrier.\""; + next; + mes "\"I'll need... well, at least " + @CRYSTAL_AMOUNT + ". But if you have more, I can use extras!\""; set @state, 1; callsub S_Update_Mask; close; @@ -76,7 +80,22 @@ L_Crystals: next; mes "\"Oh, I can feel them! Please lay them down on the floor.\""; next; - mes "You lay your dark crystals down on the floor and step back, nervously expecting the coming."; + mes "You lay "+ @CRYSTAL_AMOUNT + " dark crystals down on the floor and step back, nervously expecting the coming."; + next; + if (countitem("DarkCrystal") == 0) goto L_Skip; + mes "[Hanged Man]"; + mes "\"You have more of them, haven't you? It will work better if you give them to me too.\""; + menu + "Ok, here you go.",-, + "I prefer to keep them.",L_Skip; + set @crystal, countitem("DarkCrystal"); + if (@crystal > @CRYSTAL_MAX) + set @crystal, @CRYSTAL_MAX; + delitem "DarkCrystal", @crystal; + getexp @crystal*@CRYSTAL_EXTRA_EXP, 0; +L_Skip: + mes "[Hanged Man]"; + mes "\"Well, let's start now.\""; next; mes "The hanged man seems very concentrated now, which looks absurd with him hanging there."; next; -- cgit v1.2.3-70-g09d2