summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db/constants.conf1
-rw-r--r--npc/020-7-1/sage.txt20
2 files changed, 21 insertions, 0 deletions
diff --git a/db/constants.conf b/db/constants.conf
index b6fb7a00a..1f4acffcb 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -4312,6 +4312,7 @@ constants_db: {
BS_PMBINDING: 2
BS_PMPAGE: 4
BS_PMGLUE: 8
+ BS_PMALL: 15
// N - Npc
BS_NPC01: 1
BS_NPC02: 2
diff --git a/npc/020-7-1/sage.txt b/npc/020-7-1/sage.txt
index e8c8de3dc..3a4f73ebe 100644
--- a/npc/020-7-1/sage.txt
+++ b/npc/020-7-1/sage.txt
@@ -42,6 +42,26 @@
.@cindy=($@CINDY_STATE < gettimetick(2));
.@q=getq(NivalisQuest_BlueSage);
+ .@qt=getq(NivalisQuest_BlueSagePagemaker);
+
+ // If you helped the four page makers, you receive a reward
+ if (.@qt == 0) {
+ .@qt2=getq2(NivalisQuest_BlueSagePagemaker);
+ if (.@qt2 == BS_PMALL) {
+ inventoryplace TitaniumIngot, 1;
+ mesn;
+ mesq l("I've heard you helped my staff to recreate some books. For that, I am grateful.");
+ next;
+ mesn;
+ mesq l("Please accept this @@ as a gratitude for your time.", getitemlink(TitaniumIngot));
+ getitem TitaniumIngot, 1;
+ getexp 3535, 215; // The remaining 20% EXP to reach 100% =D
+ setq1 NivalisQuest_BlueSagePagemaker, 1;
+ next;
+ }
+
+ }
+
mesn l("Nikolai, the Blue Sage");
if (is_night())
.@t$=l("Good evening");