diff options
author | Jessica Tölke <jtoelke@mail.upb.de> | 2011-05-02 11:10:09 +0200 |
---|---|---|
committer | Jessica Tölke <jtoelke@mail.upb.de> | 2011-05-02 11:10:09 +0200 |
commit | edb5b25833627df8e3def9e77c4163e8938f4cf9 (patch) | |
tree | f10fd3f731527e8f117728991192f4d673bf1048 | |
parent | 609a14e0a4b1dee14bd1ff6c6da0bd8fa87c0824 (diff) | |
download | serverdata-edb5b25833627df8e3def9e77c4163e8938f4cf9.tar.gz serverdata-edb5b25833627df8e3def9e77c4163e8938f4cf9.tar.bz2 serverdata-edb5b25833627df8e3def9e77c4163e8938f4cf9.tar.xz serverdata-edb5b25833627df8e3def9e77c4163e8938f4cf9.zip |
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.
-rw-r--r-- | npc/027-2_Caretakers_House/lover.txt | 21 |
1 files changed, 20 insertions, 1 deletions
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; |