summaryrefslogtreecommitdiff
path: root/npc/020-7
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-18 17:24:29 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-18 17:24:29 -0300
commit6ff813be846f3a99ae7069b92bdb98d742c22079 (patch)
treea82211868eeef2285733ccc14445b18c2857e531 /npc/020-7
parent635096d438207113f8f30b273ea32ac99e756f24 (diff)
downloadserverdata-6ff813be846f3a99ae7069b92bdb98d742c22079.tar.gz
serverdata-6ff813be846f3a99ae7069b92bdb98d742c22079.tar.bz2
serverdata-6ff813be846f3a99ae7069b92bdb98d742c22079.tar.xz
serverdata-6ff813be846f3a99ae7069b92bdb98d742c22079.zip
Blue Sage placeholders.
Make Psi Conscience stronger - small chase, and to prevent you exploiting the energy balls to damage the Psi - it'll knockback itself 5 tiles when attacked at melee range. It'll also stun the attacker (cannot move/etc.) for 5 seconds.
Diffstat (limited to 'npc/020-7')
-rw-r--r--npc/020-7/_import.txt2
-rw-r--r--npc/020-7/elias.txt49
-rw-r--r--npc/020-7/workers.txt132
3 files changed, 183 insertions, 0 deletions
diff --git a/npc/020-7/_import.txt b/npc/020-7/_import.txt
index f049965c8..8ba944b64 100644
--- a/npc/020-7/_import.txt
+++ b/npc/020-7/_import.txt
@@ -1,3 +1,5 @@
// Map 020-7: Blue Sages' Mansion
// This file is generated automatically. All manually added changes will be removed when running the Converter.
"npc/020-7/_warps.txt",
+"npc/020-7/elias.txt",
+"npc/020-7/workers.txt",
diff --git a/npc/020-7/elias.txt b/npc/020-7/elias.txt
new file mode 100644
index 000000000..71200e6ce
--- /dev/null
+++ b/npc/020-7/elias.txt
@@ -0,0 +1,49 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// TMW Org.
+// Description:
+// Controls access to Blue Sage Residence
+// Minimum level: 36 (implicit)
+
+// NivalisQuest_BlueSage STRUCTURE
+// FIELD 1:
+// INVESTIGATION
+// 1 - ACCESS GRANTED
+// 2~10 - FOLLOW LOGIC
+// FIELD 2:
+// BOOK MAKING QUEST
+// FIELD 3:
+// SLIME HUNTING QUEST
+
+020-7,43,42,0 script #BlueSageEntry NPC_HIDDEN,1,1,{
+OnTouch:
+ .@q=getq(NivalisQuest_BlueSage);
+ if (!.@q) {
+ slide 42, 43;
+ doevent "Elias::OnAccessDenied";
+ }
+ end;
+}
+
+020-7,40,41,0 script Elias NPC_SAGRATHA,{
+ .@q=getq(General_Narrator);
+ if (.@q < 10) {
+ npctalk3 l("ERROR/TODO: Explain that library and residence is off-limits");
+ } else {
+ npctalk3 l("ERROR/TODO: Grant access to Blue Sage Library after showing Rakinorf recommendation letter.");
+ }
+ goodbye;
+ end;
+
+OnAccessDenied:
+ npctalk3 l("You can't go in there!");
+ end;
+
+OnInit:
+ .sex=G_MALE;
+ .distance=5;
+ end;
+
+}
+
diff --git a/npc/020-7/workers.txt b/npc/020-7/workers.txt
new file mode 100644
index 000000000..5c4683e95
--- /dev/null
+++ b/npc/020-7/workers.txt
@@ -0,0 +1,132 @@
+// TMW2 scripts.
+// Authors:
+// Jesusalva
+// TMW Org.
+// Description:
+// Resting workers
+
+020-7,46,30,6 script Miro NPC_BLUESAGEWORKER_MA,{
+ function askQuestion;
+ mesn;
+ mesq l("I'm so tired... Slimes everywhere... Chaos everywhere... Yawn...");
+ next;
+ mesn;
+ mesq l("After cleaning for twelve hours straight, they allowed me to rest a bit.");
+ .@q=getq(NivalisQuest_BlueSage);
+ switch (.@q) {
+ case 1:
+ case 2:
+ break;
+ case 3:
+ case 4:
+ askQuestion(.Q_VISITOR);
+ break;
+ case 5:
+ case 8:
+ askQuestion(.Q_HELPER);
+ break;
+ case 6:
+ case 7:
+ case 9:
+ case 10:
+ askQuestion(.Q_VISITOR | .Q_HELPER);
+ break;
+ default:
+ next;
+ mesn;
+ mesq l("You did a good job too. Rest a bit, too. There's still one chair.");
+ close;
+ }
+ close;
+
+function askQuestion {
+ .@qs=getarg(0);
+ do {
+ .@q=getq(NivalisQuest_BlueSage);
+ next;
+ select
+ rif(.@qs & .Q_VISITOR, l("Do you know anything about the strange visitor?")),
+ rif(.@qs & .Q_HELPER, 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("With a mask? I really don't know. I'm usually in the workshop and most of the visitors spend their time in the library. Sometimes they come to have a quick look in the workshop too, but I don't really pay attention to that, so... I can't recall a visitor with a mask, sorry.");
+ break;
+ case 2:
+ mesn;
+ mesq l("Peetu? He is very cautious. It is not like him to make mistakes. After all, he is a elf. Elves are really careful with their jobs.");
+ next;
+ mesn;
+ mesq l("If Nikolai's helpers weren't so carefully chosen, I'd think this was some kind of a bad joke from someone.");
+ if (is_between(4, 7, .@q))
+ setq1 NivalisQuest_BlueSage, .@q + 3;
+ break;
+ }
+ } while (@menu != 3);
+ close;
+}
+
+OnInit:
+ // Bitwise questions
+ .Q_VISITOR=1;
+ .Q_HELPER=2;
+
+ .sex=G_MALE;
+ .distance=5;
+ npcsit;
+ end;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+020-7,50,31,2 script Lenita NPC_BLUESAGEWORKER_FA,{
+ goodbye;
+ end;
+
+OnInit:
+ npcsit;
+ end;
+}
+
+