summaryrefslogtreecommitdiff
path: root/npc/014-2-2/valia.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/014-2-2/valia.txt')
-rw-r--r--npc/014-2-2/valia.txt31
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