summaryrefslogtreecommitdiff
path: root/world/map/npc/048-2/helperMInk.txt
diff options
context:
space:
mode:
Diffstat (limited to 'world/map/npc/048-2/helperMInk.txt')
-rw-r--r--world/map/npc/048-2/helperMInk.txt106
1 files changed, 106 insertions, 0 deletions
diff --git a/world/map/npc/048-2/helperMInk.txt b/world/map/npc/048-2/helperMInk.txt
new file mode 100644
index 00000000..36baa76c
--- /dev/null
+++ b/world/map/npc/048-2/helperMInk.txt
@@ -0,0 +1,106 @@
+// Part of Blue Sage quests
+// author: Jenalya
+// see bluesageConfig for detailed quest description
+// Eevert asks for material to create inks for the illustrations in the new books
+// can give second hint about Peetu in investigation subquest
+
+048-2.gat,95,103,0|script|Eevert|365,{
+
+ set @investigate, ((QUEST_BlueSage & $@Q_BlueSageInvestigate_MASK) >> $@Q_BlueSageInvestigate_SHIFT);
+ set @water_amount, 5;
+ set @spectre_amount, 3;
+ set @poltergeist_amount, 3;
+ set @wisp_amount, 3;
+ set @ironpowder_amount, 4;
+ set @ink_exp, 7000;
+
+ if (QUEST_BlueSage & $@Q_BlueSageMaterialInk) goto L_Done;
+
+ mes "[Eevert]";
+ mes "\"Mh. I wonder how I'm expected to do my task with this meager equipment. The new books will look pathetic.\"";
+ mes "He sighs.";
+ if (BaseLevel < $@Q_BlueSageMinimumLevel)
+ goto L_Close;
+ menu
+ "What do you need?",-,
+ "Not my problem.",L_Investigate;
+ mes "[Eevert]";
+ mes "\"I'm doing the covers and illustrations for the new books we create from the pieces of the old ones. But due to all the chaos when the slimes escaped, most of the phials with colored ink were broken. How am I supposed to do the illustrations without color?\"";
+ next;
+ mes "\"I think I'll need at least " + @water_amount + " Bottles of Water, " + @spectre_amount + " Spectre Powders, " + @poltergeist_amount + " Poltergeist Powders, " + @wisp_amount + " Wisp Powders and " + @ironpowder_amount + " Iron Powders to create new ink.\"";
+ menu
+ "I have those with me!",-,
+ "I'll try to get those.",L_Close,
+ "Too bad.",L_Investigate;
+
+ if ((countitem("BottleOfWater") < @water_amount) || (countitem("SpectrePowder") < @spectre_amount) || (countitem("PoltergeistPowder") < @poltergeist_amount) || (countitem("WispPowder") < @wisp_amount) || (countitem("IronPowder") < @ironpowder_amount))
+ goto L_NoItem;
+ delitem "BottleOfWater", @water_amount;
+ delitem "SpectrePowder", @spectre_amount;
+ delitem "PoltergeistPowder", @poltergeist_amount;
+ delitem "WispPowder", @wisp_amount;
+ delitem "IronPowder", @ironpowder_amount;
+ getexp @ink_exp, 0;
+ set QUEST_BlueSage, (QUEST_BlueSage | $@Q_BlueSageMaterialInk);
+ mes "[Eevert]";
+ mes "\"Wonderful! Now I can prepare the ink for magnificent illustrations! You're very generous.\"";
+ goto L_Investigate;
+
+L_Done:
+ mes "[Eevert]";
+ mes "\"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.\"";
+ goto L_Investigate;
+
+L_NoItem:
+ mes "[Eevert]";
+ mes "\"What does this mean? You don't have it!\"";
+ goto L_Close;
+
+L_Investigate:
+ if ((@investigate == 3) || (@investigate == 4)) goto L_Ask_Visitor;
+ if ((@investigate == 5) || (@investigate == 8)) goto L_Ask_Helper;
+ if ((@investigate == 6) || (@investigate == 7) || (@investigate == 9) || (@investigate == 10)) goto L_Ask_Both;
+ goto L_Close;
+
+L_Ask_Visitor:
+ menu
+ "Can you tell me something about the visitor with the mask?",L_Visitor,
+ "I need to leave.",L_Close;
+
+L_Ask_Helper:
+ menu
+ "What's your impression about Peetu and how he does his work?",L_Helper,
+ "See you later.",L_Close;
+
+L_Ask_Both:
+ menu
+ "Can you tell me something about the visitor with the mask?",L_Visitor,
+ "What's your impression about Peetu and how does he do his work?",L_Helper,
+ "Bye.",L_Close;
+
+L_Visitor:
+ mes "[Eevert]";
+ mes "\"A visitor? I don't really pay attention to visitors, except it's someone notably.\"";
+ goto L_Close;
+
+L_Helper:
+ mes "[Eevert]";
+ mes "\"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;
+ mes "\"That's why I'm really confused about this situation, since he was performing the sealing of the slimes. I wonder what went wrong.\"";
+ if ((@investigate != 5) && (@investigate != 6) && (@investigate != 7))
+ goto L_Close;
+ set @investigate, @investigate + 3;
+ callfunc "updateBlueSageInvestigate";
+ goto L_Close;
+
+L_Close:
+ set @investigate, 0;
+ set @water_amount, 0;
+ set @spectre_amount, 0;
+ set @poltergeist_amount, 0;
+ set @wisp_amount, 0;
+ set @ironpowder_amount, 0;
+ set @ink_exp, 0;
+ close;
+}