summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-14 17:48:52 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-14 17:48:52 -0300
commit6f327941bc23206dd62d5a102ac3f43e034834f5 (patch)
treef641514b07ffdb03c7dc9888a886cdab2ad4d95f /npc
parente6d987e68aa50e44dbc2826acb5af6f0406a1f97 (diff)
downloadserverdata-6f327941bc23206dd62d5a102ac3f43e034834f5.tar.gz
serverdata-6f327941bc23206dd62d5a102ac3f43e034834f5.tar.bz2
serverdata-6f327941bc23206dd62d5a102ac3f43e034834f5.tar.xz
serverdata-6f327941bc23206dd62d5a102ac3f43e034834f5.zip
The Impregnable Fortress 0F
Diffstat (limited to 'npc')
-rw-r--r--npc/025-1/_config.txt7
-rw-r--r--npc/025-1/ctrl.c34
-rw-r--r--npc/025-3/_warps.txt2
-rw-r--r--npc/functions/mkbot.txt2
4 files changed, 41 insertions, 4 deletions
diff --git a/npc/025-1/_config.txt b/npc/025-1/_config.txt
index 7a7a328b1..915bd5158 100644
--- a/npc/025-1/_config.txt
+++ b/npc/025-1/_config.txt
@@ -16,3 +16,10 @@ OnTouch:
doevent "#DungeonCore::OnCurse";
end;
}
+
+025-1,100,22,0 script #025-1_100_22 NPC_HIDDEN,3,0,{
+ end;
+OnTouch:
+ doevent "#DungeonCore::OnCurse";
+ end;
+}
diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c
index d163986d4..50e7c23d6 100644
--- a/npc/025-1/ctrl.c
+++ b/npc/025-1/ctrl.c
@@ -415,9 +415,39 @@ OnInit:
/////////////////////////////////////////////////////////
-// TODO: 100,20 - The Impregnable Fortress Gate
-// And don't forget the curse timer
+// The Impregnable Fortress Gate
+025-1,99,20,0 script The Impregnable Fortress NPC_NO_SPRITE,3,1,{
+ // Operation not permitted
+ if (!$FORTRESS_STATE || $@FORTRESS_STATUE)
+ end;
+ // Not unlocked
+ if ($GAME_STORYLINE >= 3 && $MK_TEMPVAR < MKIF_LV_0F) {
+ 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_0F), 1;
+ close;
+ }
+ mesc l("Visit the Impregnable Fortress, 0F?");
+ mesc l("Minimum wins: %d/%d", $MK_TEMPVAR, MKIF_LV_0F);
+ if (askyesno() == ASK_YES)
+ warp "025-3", 100, 178;
+ closeclientdialog;
+ close;
+
+OnTouch:
+ // Operation not permitted
+ if (!$FORTRESS_STATE || $@FORTRESS_STATUE)
+ end;
+ // Not unlocked
+ if ($GAME_STORYLINE >= 3 && $MK_TEMPVAR < MKIF_LV_0F)
+ end;
+ warp "025-3", 100, 178;
+ end;
+OnInit:
+ .distance=4;
+ end;
+}
/////////////////////////////////////////////////////////
diff --git a/npc/025-3/_warps.txt b/npc/025-3/_warps.txt
index 34399463e..7bfc117b7 100644
--- a/npc/025-3/_warps.txt
+++ b/npc/025-3/_warps.txt
@@ -1,3 +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,106,83,0 warp #025-3_106_83 1,0,026-0,64,98
+025-3,100,179,0 warp #025-3_100_179 5,0,025-1,100,22
diff --git a/npc/functions/mkbot.txt b/npc/functions/mkbot.txt
index 7525efac6..4030b943f 100644
--- a/npc/functions/mkbot.txt
+++ b/npc/functions/mkbot.txt
@@ -31,7 +31,7 @@
// GS 3
// Number of successful Fortress Town breaches
// GS 4
-// Stage TBD
+// Inheirs stage 3
000-0,0,0,0 script Monster King NPC_HIDDEN,{
OnSlaveDie: