From 6e760229a478ba8ee2aa52b9bb5a8d6820cc85a9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 21 May 2019 21:34:15 -0300 Subject: Finish pagemakers --- db/constants.conf | 1 + npc/020-7-1/sage.txt | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) 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"); -- cgit v1.2.3-70-g09d2