From 087ad55b3293290750fd4fc3c31e7c141d53d307 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 30 Oct 2018 22:38:57 -0200 Subject: Triggers, and now is bed time. Later I code the main event, and test. And the noobs event too... --- npc/019-2/guards.txt | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'npc/019-2') diff --git a/npc/019-2/guards.txt b/npc/019-2/guards.txt index 8a37d468d..8e0c74447 100644 --- a/npc/019-2/guards.txt +++ b/npc/019-2/guards.txt @@ -75,9 +75,25 @@ L_Veteran: close; L_MK: - mesn; - mesq l("Today at 16:30 UTC we are going to attack the Monster King by surprise. There will be no delays, so be there."); + if (gettime(3) != 18) { + mesn; + mesq l("Today at 16:30 UTC we are going to attack the Monster King by surprise. There will be no delays, so be there."); + } else { + mesn; + mesq l("Do you want to go against the Monster King now? The event will start 16:30 UTC sharply."); + if (askyesno() == ASK_YES) { + // Control if you already found the Monster King + @QNL3=0; + // Begin quest. Logout/Death will cause loss of the current day. + setq1 Q_NivalisLibday, $NLIB_DAY; + setq3 Q_NivalisLibday, gettimetick(2); + warp "019-3", any(128, 129, 130, 131, 132), any(24, 25, 26, 27); + doevent("Guard#019-3.1::OnAdvise"); + closedialog; + } + } close; + // Misc L_Delay: mesn; @@ -97,10 +113,16 @@ OnHour00: $NLIB_DAY+=1; end; +OnClock1825: + if ($NLIB_DAY == 7) + announce "All players, Nivalis Liberation Day starting in five minutes.", bc_all | bc_npc; + end; + OnClock1830: if ($NLIB_DAY != 7) end; setmapflag("023-2",mf_bexp,200); + disablenpc "The Monster King#NLib"; end; } -- cgit v1.2.3-70-g09d2