summaryrefslogtreecommitdiff
path: root/npc/012-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-04 17:11:24 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-04 17:11:24 -0300
commit61c62e93f3e0cda8018641034cd1e85634dc3bcb (patch)
tree1127fe4907312515aa4e8ba11004aedf2aa3e710 /npc/012-1
parentebb97ea62433baf0fbfc9b4b5d9889cff0393ab4 (diff)
downloadserverdata-61c62e93f3e0cda8018641034cd1e85634dc3bcb.tar.gz
serverdata-61c62e93f3e0cda8018641034cd1e85634dc3bcb.tar.bz2
serverdata-61c62e93f3e0cda8018641034cd1e85634dc3bcb.tar.xz
serverdata-61c62e93f3e0cda8018641034cd1e85634dc3bcb.zip
Nivalis Liberation Day will now begin "exact" two weeks after Hurnscald Liberation
Advised level: 30+ Event will happen on the Saturday after the two weeks, actually, so up to 20 days.
Diffstat (limited to 'npc/012-1')
-rw-r--r--npc/012-1/guards.txt10
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/012-1/guards.txt b/npc/012-1/guards.txt
index 26994e822..a0eb38b4a 100644
--- a/npc/012-1/guards.txt
+++ b/npc/012-1/guards.txt
@@ -496,8 +496,14 @@ OnVictory:
$MOST_HEROIC$=strcharinfo(0);
bg_destroy(1);
bg_destroy(2);
- // TODO: Auto-schedule Liberation Day
- // two weeks from now, to happen on a saturday (FIXME)
+ // Auto-schedule Liberation Day
+ // two weeks from now, to happen on a saturday
+ .@offset = gettime(GETTIME_WEEKDAY); // How long since sunday?
+ .@offset += 1; // Move it to Saturday
+ .@offset += 14; // Add a couple weeks
+ .@offset += gettimeparam(GETTIME_DAYOFMONTH); // Apply offset to the all days
+ $NLIB_SEQDAY = .@offset; // Schedule the event
+
end;
OnReward: