summaryrefslogtreecommitdiff
path: root/npc/025-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
committerJesusaves <cpntb1@ymail.com>2022-10-23 21:44:22 -0300
commita7c45a192268da2601cef47a4cdba987ae2327ca (patch)
treec5fb5b97db109fe7106496dd96498c475881046b /npc/025-3
downloadserverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.gz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.bz2
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.xz
serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.zip
Initial commit (Moubootaur Legends fork)
Diffstat (limited to 'npc/025-3')
-rw-r--r--npc/025-3/_import.txt5
-rw-r--r--npc/025-3/_mobs.txt6
-rw-r--r--npc/025-3/_warps.txt3
-rw-r--r--npc/025-3/ctrl.c61
4 files changed, 75 insertions, 0 deletions
diff --git a/npc/025-3/_import.txt b/npc/025-3/_import.txt
new file mode 100644
index 0000000..9079e5e
--- /dev/null
+++ b/npc/025-3/_import.txt
@@ -0,0 +1,5 @@
+// Map 025-3: The Impregnable Fortress (Outside)
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+"npc/025-3/_mobs.txt",
+"npc/025-3/_warps.txt",
+"npc/025-3/ctrl.c",
diff --git a/npc/025-3/_mobs.txt b/npc/025-3/_mobs.txt
new file mode 100644
index 0000000..a7e8cf9
--- /dev/null
+++ b/npc/025-3/_mobs.txt
@@ -0,0 +1,6 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 025-3: The Impregnable Fortress (Outside) mobs
+025-3,99,157,75,17 monster Moubi 1038,16,120000,30000
+025-3,105,117,10,21 monster Angry Bat 1194,24,500,500,Impregnable#0F::OnMoubiKill
+025-3,98,141,71,16 monster Bloody Mouboo 1119,6,500,500
+025-3,99,117,75,18 monster Crafty 1018,1,500,500,Impregnable#0F::OnMoubiKill
diff --git a/npc/025-3/_warps.txt b/npc/025-3/_warps.txt
new file mode 100644
index 0000000..7bfc117
--- /dev/null
+++ b/npc/025-3/_warps.txt
@@ -0,0 +1,3 @@
+// This file is generated automatically. All manually added changes will be removed when running the Converter.
+// Map 025-3: The Impregnable Fortress (Outside) warps
+025-3,100,179,0 warp #025-3_100_179 5,0,025-1,100,22
diff --git a/npc/025-3/ctrl.c b/npc/025-3/ctrl.c
new file mode 100644
index 0000000..1cfcf75
--- /dev/null
+++ b/npc/025-3/ctrl.c
@@ -0,0 +1,61 @@
+// TMW2 scripts.
+// Author:
+// Jesusalva
+// Description:
+// The Impregnable Fortress Control Files
+// Quest: General_Fortress
+// (MaxFloor+1, internal, internal)
+
+025-3,105,83,0 script Impregnable#0F NPC_HIDDEN,2,0,{
+ end;
+
+OnTouch:
+ if (getq(General_Fortress)) goto L_Warp;
+ mes l(".:: The Impregnable Fortress ::.");
+ mes "";
+ mes l("The fortress goes below until the Monster King Throne is established.");
+ mes l("To descend you must finish the task on the floor. Sometimes it'll be outspoken, other times, it'll not.");
+ mes l("The tasks may vary from collecting certain items, walking in a specific order, lighting candles, killing a specific monster or all monsters in the floor, et cetera.");
+ next;
+ mes l("The tasks are individual, but help from other players is acceptable in most cases.");
+ mesc l("(Do note that there may be filters to decide when the player helped you and when the player did the quest for you. In some cases, you'll need to redo the stage.)");
+ next;
+ mes l("After finishing the task, the floor below will be liberated for your access only. Other players will need to complete their tasks.");
+ mes l("Due to the sheer amount of monsters in the army, most floors are not immediately available! The Monster Army must be weakened before accessing the deeper floors by repeatedly defeating them at Fortress Town Siege.");
+ next;
+ mesc l(".:: Impregnable Fortress, %sF ::.", "0"), 3;
+ msObjective(getq(General_Fortress) == 1, l("* Obtain the Fortress Key"));
+ msObjective($MK_TEMPVAR < MKIF_LV_B0F, l("Minimum wins: %d/%d", $MK_TEMPVAR, MKIF_LV_B0F));
+ mes "";
+ mesc l("Hint: Eek! Eek! Eek!");
+ tutmes l("Explore all map elements (including monsters) with the hint in mind to fulfill the mission objectives. They'll never demand something outside the mission map!");
+ end;
+
+L_Warp:
+ // Not unlocked
+ if ($GAME_STORYLINE >= 3 && $MK_TEMPVAR < MKIF_LV_B0F) {
+ mesc l("The gate is sealed shut."), 1;
+ mesc l("The monster army is still strong on this floor!"), 1;
+ mesc l("Minimum wins: %d/%d", $MK_TEMPVAR, MKIF_LV_B0F), 1;
+ close;
+ }
+ warp "026-0", 64, 98;
+ end;
+
+OnMoubiKill:
+ .@q=getq(General_Fortress);
+ .@q2=getq2(General_Fortress);
+ .@q3=getq3(General_Fortress);
+ if (.@q != 0) end;
+
+ setq2 General_Fortress, .@q2+1;
+ if (rand2(10000) <= .@q2) {
+ dispbottom b(l("You have found the Impregnable Fortress Key. Access to B0F granted."));
+ setq General_Fortress, 1, 0, 0;
+ getexp 0, 50000;
+ }
+ fix_mobkill(AngryBat);
+ end;
+}
+
+