summaryrefslogtreecommitdiff
path: root/npc/019-2/guards.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-10-30 22:38:57 -0200
committerJesusaves <cpntb1@ymail.com>2018-10-30 22:38:57 -0200
commit087ad55b3293290750fd4fc3c31e7c141d53d307 (patch)
tree8552ff1a64459e432189132c50475dde1676cc32 /npc/019-2/guards.txt
parentc2c6d03c9a39cefd093f124472e049127b1c2fd6 (diff)
downloadserverdata-087ad55b3293290750fd4fc3c31e7c141d53d307.tar.gz
serverdata-087ad55b3293290750fd4fc3c31e7c141d53d307.tar.bz2
serverdata-087ad55b3293290750fd4fc3c31e7c141d53d307.tar.xz
serverdata-087ad55b3293290750fd4fc3c31e7c141d53d307.zip
Triggers, and now is bed time. Later I code the main event, and test.
And the noobs event too...
Diffstat (limited to 'npc/019-2/guards.txt')
-rw-r--r--npc/019-2/guards.txt26
1 files changed, 24 insertions, 2 deletions
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;
}