summaryrefslogtreecommitdiff
path: root/npc/020-7-1/eevert.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-21 23:00:31 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-21 23:00:31 -0300
commit74d10aea68108b3f45a780c7dc74ef6135df2cda (patch)
tree6bd3d158848915aacf44b7b0adc14a590209bf29 /npc/020-7-1/eevert.txt
parent40c145c7fd6b1f15bf8da40a3c7fe84fe7f1ca40 (diff)
downloadserverdata-74d10aea68108b3f45a780c7dc74ef6135df2cda.tar.gz
serverdata-74d10aea68108b3f45a780c7dc74ef6135df2cda.tar.bz2
serverdata-74d10aea68108b3f45a780c7dc74ef6135df2cda.tar.xz
serverdata-74d10aea68108b3f45a780c7dc74ef6135df2cda.zip
Split pagemakers.txt in four files.
Diffstat (limited to 'npc/020-7-1/eevert.txt')
-rw-r--r--npc/020-7-1/eevert.txt137
1 files changed, 137 insertions, 0 deletions
diff --git a/npc/020-7-1/eevert.txt b/npc/020-7-1/eevert.txt
new file mode 100644
index 000000000..5e3f3f193
--- /dev/null
+++ b/npc/020-7-1/eevert.txt
@@ -0,0 +1,137 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// TMW Org.
+// Description:
+// Workers which produces pages
+// helperM*
+
+// NivalisQuest_BlueSagePagemaker STRUCTURE
+// FIELD 1:
+// MAIN STATE
+// FIELD 2:
+// BOOK MAKING QUEST
+// 1 - Illustrations delivered (BS_PMINK)
+// 2 - Bindings delivered (BS_PMBINDING)
+// 4 - Pages delivered (BS_PMPAGE)
+// 8 - Glue delivered (BS_PMGLUE)
+// =15: All items delivered
+
+020-7-1,34,56,0 script Eevert NPC_BLUESAGEWORKER_MA,{
+ function askQuestion;
+ .@qt=getq2(NivalisQuest_BlueSagePagemaker);
+ mesn;
+ if (.@qt & BS_PMINK)
+ mesq l("Thanks for your help with the inks! Now I'll be able to fulfill my tasks adequately. Some of these books were really valuable, and it's important to recreate them as good as possible.");
+ else
+ mesq l("Mh. I wonder how I'm expected to perform my task with this meager equipment. The new books will look pathetic.");
+
+ // Begin here
+ askQuestion();
+ .@qt=getq2(NivalisQuest_BlueSagePagemaker);
+ mes "";
+ mesn;
+ mesq l("I'm doing the covers and illustrations for the new books we create from the pieces of the old ones.");
+ next;
+ mesn;
+ mesq l("But due to all of the chaos from when the slimes escaped, most of the phials of colored ink were broken. How am I supposed to do the illustrations without color?");
+ next;
+ mesn;
+ mesq l("I could make ink myself, but I am lacking some material...");
+ next;
+ mes l("@@/@@ @@", countitem(CobaltHerb), 50, getitemlink(CobaltHerb));
+ mes l("@@/@@ @@", countitem(GambogeHerb), 50, getitemlink(GambogeHerb));
+ mes l("@@/@@ @@", countitem(AlizarinHerb), 50, getitemlink(AlizarinHerb));
+ mes l("@@/@@ @@", countitem(ArtichokeHerb), 50, getitemlink(ArtichokeHerb));
+ mes l("@@/@@ @@", countitem(MauveHerb), 50, getitemlink(MauveHerb));
+ mes l("@@/@@ @@", countitem(MaggotSlime), 10, getitemlink(MaggotSlime));
+ mes l("@@/@@ @@", countitem(DuckFeather), 1, getitemlink(DuckFeather));
+ next;
+ mesn;
+ mesq l("Hehe... Some material... %%5");
+ next;
+ select
+ l("Uh... Yeah, that's not funny."),
+ l("Worry not, I have them with me.");
+ mes "";
+ if (@menu == 1) {
+ mesn;
+ mesq l("I agree with you. Most of these materials can't even be found on Nivalis.");
+ next;
+ mesn;
+ mesq l("I guess I'll need to try to work with whatever ink is left until the supplies arrive next month...");
+ close;
+ }
+ if (countitem(CobaltHerb) < 50 ||
+ countitem(GambogeHerb) < 50 ||
+ countitem(AlizarinHerb) < 50 ||
+ countitem(ArtichokeHerb) < 50 ||
+ countitem(MauveHerb) < 50 ||
+ countitem(MaggotSlime) < 10 ||
+ countitem(DuckFeather) < 1) {
+ mesn;
+ mesq l("Do you know how to count, maggot? %%5");
+ next;
+ mesn;
+ mesq l("You should be ASHAMED of yourself, you liar.");
+ close;
+ }
+ delitem CobaltHerb, 50;
+ delitem GambogeHerb, 50;
+ delitem AlizarinHerb, 50;
+ delitem ArtichokeHerb, 50;
+ delitem MauveHerb, 50;
+ delitem MaggotSlime, 10;
+ delitem DuckFeather, 1;
+ setq2 NivalisQuest_BlueSagePagemaker, .@qt|BS_PMINK;
+ getexp 3535, 215; // 20% from references, rounded up. It's part of main story.
+ // is present. REMEMBER THIS IS A LEVEL 36/16 QUEST, REGARDLESS IF EVERYONE DECIDES
+ // TO DO IT AT LEVEL 40. Exp reward will not change. It's main story, too.
+ // Besides, it gives Job Experience, which is not common.
+ mesn;
+ mesq l("Wonderful! Now I can prepare the ink for magnificent illustrations! You're very generous.");
+ close;
+
+function askQuestion {
+ .@qs=BSQuestion(getq(NivalisQuest_BlueSage));
+ do {
+ .@q=getq(NivalisQuest_BlueSage);
+ .@q2=getq2(NivalisQuest_BlueSage);
+ .@q3=getq3(NivalisQuest_BlueSage);
+ .@qt=getq2(NivalisQuest_BlueSagePagemaker);
+ next;
+ select
+ rif(!(.@qt & BS_PMINK), l("What is your problem?")),
+ rif(.@qs & BS_QVISITOR, l("Do you know anything about the strange visitor?")),
+ rif(.@qs & BS_QHELPER, l("What's your opinion of Peetu and his work?")),
+ any(l("I need to leave."), l("See you."), l("Bye."), l("Not my problem."));
+ mes "";
+ switch (@menu) {
+ case 2:
+ mesn;
+ mesq l("A visitor? I don't really pay attention to visitors, unless it's someone notable.");
+ break;
+ case 3:
+ mesn;
+ mesq l("Ah, Peetu. I really appreciate his sense for high quality work. The requirements to become a helper of a sage are already high, but Peetu is outstanding. He has a talent for magic and combined with his diligence, it's quite remarkable.");
+ next;
+ mesn;
+ mesq l("That's why I'm really confused about this situation, since he was the one performing the sealing of the slimes. I wonder what went wrong.");
+ if (!(.@q3 & .bsId))
+ setq3 NivalisQuest_BlueSage, .@q3 | .bsId;
+ break;
+ case 4:
+ close;
+ }
+ } while (@menu != 1);
+ return;
+}
+
+OnInit:
+ .bsId=BS_NPC02;
+ .sex=G_MALE;
+ .distance=5;
+ npcsit;
+ end;
+}
+