summaryrefslogtreecommitdiff
path: root/npc/020-7-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-20 14:34:44 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-20 14:34:44 -0300
commit866cc1479a61c9e049fcce7af7d48e1bf9380590 (patch)
treebc4762f00a52f187270118488bab14db85acbbe4 /npc/020-7-1
parentb58a300bfe8708f55a56b383440248fb77b1e151 (diff)
downloadserverdata-866cc1479a61c9e049fcce7af7d48e1bf9380590.tar.gz
serverdata-866cc1479a61c9e049fcce7af7d48e1bf9380590.tar.bz2
serverdata-866cc1479a61c9e049fcce7af7d48e1bf9380590.tar.xz
serverdata-866cc1479a61c9e049fcce7af7d48e1bf9380590.zip
With this, every random NPC from the Blue Sage was added. From the critical ones,
only Elias got in, but Oskari didn't even got a body.
Diffstat (limited to 'npc/020-7-1')
-rw-r--r--npc/020-7-1/pagefinders.txt157
-rw-r--r--npc/020-7-1/pagemakers.txt2
2 files changed, 152 insertions, 7 deletions
diff --git a/npc/020-7-1/pagefinders.txt b/npc/020-7-1/pagefinders.txt
index 49d534f90..f3b19e787 100644
--- a/npc/020-7-1/pagefinders.txt
+++ b/npc/020-7-1/pagefinders.txt
@@ -5,6 +5,15 @@
// Description:
// Responsible for recovering the lost pages
// helperBookpages*
+//
+// NivalisQuest_BlueSage STRUCTURE
+// FIELD 1:
+// INVESTIGATION
+// FIELD 2:
+// BOOK MAKING QUEST
+// FIELD 3:
+// PAGE HUNTING QUEST
+// nÂș of pages found (0~31)
020-7-1,36,39,4 script Ensio NPC_BLUESAGEWORKER_MB,{
npctalk3 l("Collects book pages");
@@ -20,10 +29,84 @@ OnInit:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
020-7-1,33,39,4 script Henriikka NPC_BLUESAGEWORKER_FA,{
- npctalk3 l("Currently helping Ensio, not useful");
- goodbye;
- end;
+ function askQuestion;
+ mesc l("You see a helper looking through some papers that have a strange smell.");
+ askQuestion();
+ close;
+
+function askQuestion {
+ do {
+ .@qs=getq(NivalisQuest_BlueSage);
+| .@qt=getq3(NivalisQuest_BlueSage);
+ next;
+ if (.@qt >= 255) {
+ mesn;
+ mesq l("I'm so glad we didn't have to go out to hunt the slimes! Thank you!");
+ } else if (.@qt) {
+ mesn;
+ mesq l("If you get any bookpages from the slimes, bring them to Ensio. Thanks for your help!");
+ } else {
+ mesn;
+ mesc l("*sighs*");
+ mesq l("Oh, hey. Welcome to the library, or what's left of it.");
+ }
+ mes "";
+ select
+ rif(.@qt < 255, "What are you doing?"),
+ 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."));
+ mes "";
+ switch (@menu) {
+ case 1:
+ mesn;
+ mesq l("We're trying to repair the books by collecting the ripped out bookpages and sorting them and copying them for new books. It's a lot to do, and after being eaten by a slime they stink!");
+ next;
+ mesn;
+ mesq l("And a lot of pages are missing, since most of the slimes escaped. I suppose we'll have to go out and hunt them once we're done here. Unless someone else hunt them for us.");
+ if (!.@qt) {
+ next;
+ mesn;
+ mesq l("Well, these slimes are dangerous, but if you find some pages, be sure to bring them to Ensio. This will help us a lot. Eh, if you're interested in helping, that is. %%1");
+ }
+ break;
+ case 2:
+ mesn;
+ mesq l("With a mask? I don't really remember... We have so many visitors. Though I suppose someone wearing a mask would be noticeable... But I'm so worn out from the past few days that I'm just glad I can even recall my own name! Sorry.");
+ break;
+ case 3:
+ mesn;
+ mesq l("Oh, I never really thought about that. He was the one who failed the sealing, right? But I heard it's a quite difficult spell, so I suppose this could've happened to any mage. I don't know. Why are you asking such difficult questions?");
+ next;
+ mesn;
+ mesq l("I need to go on with sorting the bookpages now.");
+ break;
+ }
+ } while (@menu != 4);
+ close;
+}
OnInit:
.sex=G_FEMALE;
@@ -37,10 +120,72 @@ OnInit:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
020-7-1,45,39,0 script Teuvo NPC_BLUESAGEWORKER_MA,{
- npctalk3 l("Angry generic NPC, hates mages :o");
- goodbye;
- end;
+ function askQuestion;
+ mesn;
+ mesc l("@@ seems to be upset.", .name$);
+ mesq l("I always thought it was a bad idea to play around with the slimes. And as if holding them in here isn't bad enough, no, they also had to mess around with magic.");
+ askQuestion();
+ close;
+
+function askQuestion {
+ do {
+ .@qs=getq(NivalisQuest_BlueSage);
+| .@qt=getq3(NivalisQuest_BlueSage);
+ next;
+ if (.@qt >= 255) {
+ mesn;
+ mesq l("Thanks for helping out here. Do you need anything else?");
+ } else if (.@qt) {
+ mesn;
+ mesq l("Did you find some bookpages? Ensio will take them.");
+ }
+ mes "";
+ select
+ rif(.@qt == 255, ""),
+ 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."));
+ mes "";
+ switch (@menu) {
+ case 2:
+ mesn;
+ mesq l("With a mask? Hm. I don't remember.");
+ break;
+ case 3:
+ mesn;
+ mesq l("Peetu? He's one of those magic wielders who think they can do anything. Heh, you see the result here.");
+ next;
+ mesn;
+ mesq l("But to be fair, from what I've seen Peetu was always very attentive and dutiful.");
+ if (is_between(4, 7, .@q))
+ setq1 NivalisQuest_BlueSage, .@q + 3;
+ break;
+ }
+ } while (@menu != 4);
+ close;
+}
OnInit:
.sex=G_MALE;
diff --git a/npc/020-7-1/pagemakers.txt b/npc/020-7-1/pagemakers.txt
index 7d1aa1a65..8cf8724fe 100644
--- a/npc/020-7-1/pagemakers.txt
+++ b/npc/020-7-1/pagemakers.txt
@@ -17,7 +17,7 @@
// 8 - Glue delivered (BS_PMGLUE)
// =15: All items delivered
// FIELD 3:
-// SLIME HUNTING QUEST
+// PAGE HUNTING QUEST
020-7-1,34,56,0 script Eevert NPC_BLUESAGEWORKER_MA,{
function askQuestion;