summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
Diffstat (limited to 'npc')
-rw-r--r--npc/025-1/ctrl.c21
1 files changed, 18 insertions, 3 deletions
diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c
index e96a9ea53..d3c1dc6f4 100644
--- a/npc/025-1/ctrl.c
+++ b/npc/025-1/ctrl.c
@@ -142,9 +142,9 @@ function script FTStatue {
// Spawn the gate
monster("025-1", 99, 113, "Fortress Gate", FortressGate, 1, .name$+"::OnOpenGate");
+
// TODO: Initial defending waves
// TODO: Enable the statues
- // TODO: Summon reinforcements
// Player blacklist (unable to use 025-2 warp)
maptimer2("025-1", 10, "Fortress::OnMPBlacklist");
close;
@@ -168,13 +168,27 @@ OnTimer30000:
}
// TODO: Spawn mobs
- // TODO: Map Timer
+ // Summon reinforcements
+ maptimer2("025-1", 10, "Fortress::OnMPReinforce");
+
+ // Restart timer
initnpctimer;
end;
/////////////////////////////////////////////////////////
OnMPBlacklist:
array_push($@FORT_BLACKLIST, getcharid(0));
+ goto OnMPReinforce;
+
+OnMPReinforce:
+ // Dispose dead bodies
+ if (ispcdead()) {
+ warp "025-2", 96, 25;
+ end;
+ }
+ // Summon allies
+ // Last a whole minute
+ summon("Allied Guard", any(FallenGuard1, FallenGuard2, FallenGuard3));
end;
/////////////////////////////////////////////////////////
@@ -193,7 +207,8 @@ OnConquest:
-// This exit must work even if gate is closed
+/////////////////////////////////////////////////////////
+// This exit must work even if gate is closed (bugfix)
025-1,99,111,0 script #FortressTownOut NPC_HIDDEN,1,0,{
end;