From 6f327941bc23206dd62d5a102ac3f43e034834f5 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 14 Jan 2021 17:48:52 -0300 Subject: The Impregnable Fortress 0F --- npc/025-1/_config.txt | 7 +++++++ npc/025-1/ctrl.c | 34 ++++++++++++++++++++++++++++++++-- 2 files changed, 39 insertions(+), 2 deletions(-) (limited to 'npc/025-1') 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; +} ///////////////////////////////////////////////////////// -- cgit v1.2.3-60-g2f50