diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-05-02 14:17:43 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-05-02 14:17:43 -0300 |
commit | 5ed4fdbead138a784fe7c33b071b27c033921ab8 (patch) | |
tree | f0cfda3680e244a5cba6d3f723a830fd5dcf99c9 /npc/014-2-2/valia.txt | |
parent | dce0c6dfcfc83a36e41b1ab24e13e1f7cc1216e2 (diff) | |
download | serverdata-5ed4fdbead138a784fe7c33b071b27c033921ab8.tar.gz serverdata-5ed4fdbead138a784fe7c33b071b27c033921ab8.tar.bz2 serverdata-5ed4fdbead138a784fe7c33b071b27c033921ab8.tar.xz serverdata-5ed4fdbead138a784fe7c33b071b27c033921ab8.zip |
Add Gemini and Celestia seasons (reduce Kamelot and Candor seasons).
Luvia's door can now be broken.
Diffstat (limited to 'npc/014-2-2/valia.txt')
-rw-r--r-- | npc/014-2-2/valia.txt | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/npc/014-2-2/valia.txt b/npc/014-2-2/valia.txt index e29aaad9b..8a161558f 100644 --- a/npc/014-2-2/valia.txt +++ b/npc/014-2-2/valia.txt @@ -112,7 +112,8 @@ function script GeminiFail { // ...But the party is too large getpartymember(getcharid(1)); .@count = $@partymembercount; - if (.@count > 4) { + // The amount varies based on the season + if (.@count > ($EVENT$ == "Gemini" ? 6 : 4)) { mesq l("Your party is too big. Discretion is a key if we want to succeed."); close; } @@ -120,21 +121,31 @@ function script GeminiFail { mesq l("Good. I hope you have stocked everything. The time limit is 4 hours."); // Only first attempt is free - all others are charged - if (getq(HurnscaldQuest_Gemini) && !is_gm()) { - next; - mesn; - mesq l("Actually, I need help with reagents this time. Bring me a %s and a %s and I'll gladly warp you... again.", getitemlink(GemPowder), getitemlink(EverburnPowder)); - if (!countitem(GemPowder) || !countitem(EverburnPowder)) close; - next; + if ($EVENT$ != "Gemini" || + ($EVENT$ == "Gemini" && GEMINI_DAY == gettime(5))) + { + if (getq(HurnscaldQuest_Gemini) && !is_gm()) { + next; + mesn; + mesq l("Actually, I need help with reagents this time. Bring me a %s and a %s and I'll gladly warp you... again.", getitemlink(GemPowder), getitemlink(EverburnPowder)); + if (!countitem(GemPowder) || !countitem(EverburnPowder)) close; + next; + } } mesc l("Are you and your party ready?"), 1; if (askyesno() != ASK_YES) close; // Not eligible for free lunch - if (getq(HurnscaldQuest_Gemini)) { - delitem GemPowder, 1; - delitem EverburnPowder, 1; + if ($EVENT$ != "Gemini" || + ($EVENT$ == "Gemini" && GEMINI_DAY == gettime(5))) + { + if (getq(HurnscaldQuest_Gemini)) { + delitem GemPowder, 1; + delitem EverburnPowder, 1; + } + } else if ($EVENT$ == "Gemini") { + GEMINI_DAY = gettime(5); } // Handle first attempt |