summaryrefslogtreecommitdiff
path: root/npc/025-1/ctrl.c
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-14 15:07:23 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-14 15:07:23 -0300
commitbc49ff8f5e7bbae522250d012b8e531a7bc4203c (patch)
tree6ac2fd5820461b3feb2d6fab6d313faed752dc48 /npc/025-1/ctrl.c
parente5dddc8482df79f9cca7fcfb94b67e6c62e01f86 (diff)
downloadserverdata-bc49ff8f5e7bbae522250d012b8e531a7bc4203c.tar.gz
serverdata-bc49ff8f5e7bbae522250d012b8e531a7bc4203c.tar.bz2
serverdata-bc49ff8f5e7bbae522250d012b8e531a7bc4203c.tar.xz
serverdata-bc49ff8f5e7bbae522250d012b8e531a7bc4203c.zip
Allied Forces
Diffstat (limited to 'npc/025-1/ctrl.c')
-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;