summaryrefslogtreecommitdiff
path: root/npc/020-7-1/mirjami.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/020-7-1/mirjami.txt')
-rw-r--r--npc/020-7-1/mirjami.txt120
1 files changed, 120 insertions, 0 deletions
diff --git a/npc/020-7-1/mirjami.txt b/npc/020-7-1/mirjami.txt
new file mode 100644
index 000000000..721aac041
--- /dev/null
+++ b/npc/020-7-1/mirjami.txt
@@ -0,0 +1,120 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// TMW Org.
+// Description:
+// In charge to clear the mess
+// helperCleaning* + helperJanitor
+
+// Quest: NivalisQuest_BlueSageSlimes
+// 1: Acception state (0 - Not accepted, 1 - Accepted, 2 - Complete)
+// 2: Killed Slimes Control
+// 3: Killed Nests Control
+
+020-7-1,40,78,0 script Mirjami NPC_BLUESAGEWORKER_FA,{
+ function askQuestion;
+ mesn;
+ mesq l("Where is it? Everything's upside down. These terrible slimes.");
+ askQuestion();
+ close;
+
+function askQuestion {
+ next;
+ .@qt=getq3(NivalisQuest_BlueSageSlimes);
+ if (.@qt >= BS_SNESTALL) {
+ mesn;
+ mesq l("I heard you fought the slimes that were still roaming between the bookshelves. Thank you!");
+ next;
+ mesn;
+ mesq l("I was a bit worried that they might ruin our efforts by messing everything up again after we just cleaned.");
+ } else {
+ mesn;
+ mesq l("I'm just searching for some cleaning supplies. They must be somewhere around here, but everything went upside down when the slimes escaped.");
+ next;
+ mesn;
+ mesq l("Maybe they're in the library, but it is too dangerous there right now...");
+ }
+
+ // Mainframe Loop
+ do {
+ .@q=getq(NivalisQuest_BlueSageSlimes);
+ .@q2=getq2(NivalisQuest_BlueSage);
+ .@q3=getq3(NivalisQuest_BlueSage);
+ .@qs=BSQuestion(getq(NivalisQuest_BlueSage));
+ .@qt=getq3(NivalisQuest_BlueSageSlimes);
+ next;
+ mes "";
+ select
+ rif(.@qt == BS_SNESTALL && .@q == 1, "Did you found the supplies yet?"),
+ 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:
+ //mesq l("Not yet, blame Jesusalva, your reward was with them");
+ inventoryplace AlchemyBlueprintA, 1, RecipeBook, 1;
+ mesn;
+ mesq l("Yeah... I also found a @@. We don't need this crap, you can put it on your @@.", getitemlink(AlchemyBlueprintA), getitemlink(RecipeBook));
+ next;
+ select
+ l("Erm... I don't have a recipe book."),
+ l("That's nice, but... I don't have a recipe book."),
+ l("Pardon me, what is a recipe book?");
+ mes "";
+ mesn;
+ mesq l("WHAT? Have you not gained one at birth? That's absurd!");
+ next;
+ select
+ l("Erm... I don't know my parents."),
+ l("Maybe, but... I don't know my parents."),
+ l("Pardon me, I don't remember my parents.");
+ mes "";
+ mesn;
+ mesq l("WHAT? That's twice absurd! Now you'll say that you were found stranded on a desert island without equipment and can't remember anything but your own name!");
+ next;
+ select
+ l("Erm... You're right."),
+ l("Well... You're right."),
+ l("How did you guess that?");
+ mes "";
+ mesn;
+ mesq l("... ... ...");
+ next;
+ mesn;
+ mesq l("...Okay, this is not fun anymore.");
+ next;
+ mesn;
+ mesq l("Here, you can take mine. I don't mind. Just be sure to don't lose it, you will NEVER get another copy EVER again, was I clear?!");
+ getitem AlchemyBlueprintA, 1;
+ getitem RecipeBook, 1;
+ setq1 NivalisQuest_BlueSageSlimes, 2;
+ next;
+ mesn;
+ mesq l("You can be thankful later. Aren't you excited to see what exactly was on that blueprint? Go on, enjoy it! %%G");
+ break;
+ case 2:
+ mesn;
+ mesq l("Ohh, I think I know who you mean. That was a strange guy. He always came over here in the workshop, said he's very interested in the research. I suppose that's ok, but he didn't keep his hands to himself, and touched some experiments and I caught him near some storage racks.");
+ next;
+ mesn;
+ mesq l("Visitors should keep away from those!");
+ if (!(.@q2 & .bsId))
+ setq2 NivalisQuest_BlueSage, .@q2 | .bsId;
+ break;
+ case 3:
+ mesn;
+ mesq l("Oh, eh, why are you asking me? I've only been here a short while and don't really know all of the people well enough yet.");
+ break;
+ }
+ } while (@menu != 4);
+ close;
+}
+
+OnInit:
+ .bsId=BS_NPC06;
+ .sex=G_FEMALE;
+ .distance=5;
+ end;
+}
+