From b58a300bfe8708f55a56b383440248fb77b1e151 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 20 May 2019 14:16:35 -0300 Subject: Warn in newspaper about events (when appliable) --- npc/functions/news.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/npc/functions/news.txt b/npc/functions/news.txt index 912edd111..94c5e552a 100644 --- a/npc/functions/news.txt +++ b/npc/functions/news.txt @@ -347,8 +347,34 @@ function script Journalman { l("All hail @@ and Andrei Sakar, heroes of the world!", $MOST_HEROIC$)); mesn getarg(0); mesq l("Bonjour! I am @@, and I am from the Press! Read the latest news with me!", getarg(0)); + mes ""; + // Report any ongoing event + if ($EVENT$ != "") + mesc l("It's @@ (day)!", $EVENT$); + mesc l("Try talking to Soul Menhir or with any NPC on Tulimshar Centre (near Soul Menhir)."); + if ($@GM_EVENT) + mesc l("An event is happening at Aeros! Hurry up!"); + else if ($@MK_SCENE) + mesc l("The Monster King is on the move!"); + switch (season()) { + case SPRING: + mesc l("It's spring! Two lovely NPCs at woodlands can be found..."); + break; + case WINTER: + mesc l("It's winter! An NPC in Nivalis Town is freezing..."); + break; + case SUMMER: + mesc l("It's summer! Ched is having his usual contest, but Luffyx in Hurnscald is up to no good!"); + break; + case AUTUMN: + mesc l("It's autumn! There is no special event during autumn, only special drops."); + break; + default: + Exception(l("Invalid season: @@", season()), RB_DEFAULT|RB_SPEECH); break; + } do { + mes ""; menuint l("Thanks for your help!"), 1, l("Release 9 (Current)"), 20190504, -- cgit v1.2.3-70-g09d2