From 61c62e93f3e0cda8018641034cd1e85634dc3bcb Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 4 Apr 2021 17:11:24 -0300 Subject: 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. --- npc/012-1/guards.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'npc/012-1/guards.txt') 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: -- cgit v1.2.3-60-g2f50