summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/019-2/guards.txt2
-rw-r--r--npc/019-3/_import.txt1
-rw-r--r--npc/019-3/guards.txt49
3 files changed, 52 insertions, 0 deletions
diff --git a/npc/019-2/guards.txt b/npc/019-2/guards.txt
index 810632851..127686cb4 100644
--- a/npc/019-2/guards.txt
+++ b/npc/019-2/guards.txt
@@ -3,6 +3,8 @@
// Jesusalva
// Description:
// Protect Nivalis
+// Q_NivalisLibday
+// Day, Score, Temporary Time;
019-2,44,54,0 script Guard#019-2.1 NPC_GUARD1,{
.@q=getq(Q_NivalisLibday);
diff --git a/npc/019-3/_import.txt b/npc/019-3/_import.txt
index ad92da952..498f4b86c 100644
--- a/npc/019-3/_import.txt
+++ b/npc/019-3/_import.txt
@@ -2,3 +2,4 @@
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/019-3/_mobs.txt",
"npc/019-3/_warps.txt",
+"npc/019-3/guards.txt",
diff --git a/npc/019-3/guards.txt b/npc/019-3/guards.txt
new file mode 100644
index 000000000..7dbd0f9ee
--- /dev/null
+++ b/npc/019-3/guards.txt
@@ -0,0 +1,49 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// Description:
+// Nivalis Liberation Day NPC
+
+019-3,128,2,0 script Guard#019-3.1 NPC_GUARD1,{
+ mesn;
+ mesq l("Are you done yet?");
+ select
+ rif(0, l("Yes")),
+ l("No");
+ if (@menu == 2)
+ close;
+
+ // Load quest env
+ // Day, Score, Temporary Time;
+ .@q1=getq(Q_NivalisLibday);
+ .@q2=getq2(Q_NivalisLibday);
+ .@q3=getq3(Q_NivalisLibday);
+
+ // TODO: Calculate score
+ .@score=0;
+
+ // Update Total Score
+ setq2 Q_NivalisLibday, .@q2+.@score;
+ .@q2=getq2(Q_NivalisLibday);
+ // Update Highscores if needed
+ if (.@q2 > $NLIB_HIGHTIME) {
+ $NLIB_HIGHTIME=.@q2;
+ $NLIB_HIGHNAME$=strcharinfo(0);
+ }
+ // Close quest
+ setq1 Q_NivalisLibday, $NLIB_DAY;
+ // Warp you back
+ warp "019-2", 43, 55;
+ closedialog;
+ close;
+
+OnInit:
+ .sex = G_MALE;
+ .distance = 5;
+
+ if (!$NLIB_DAY)
+ disablenpc .name$;
+ end;
+
+}
+