diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-01-14 15:07:23 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-01-14 15:07:23 -0300 |
commit | bc49ff8f5e7bbae522250d012b8e531a7bc4203c (patch) | |
tree | 6ac2fd5820461b3feb2d6fab6d313faed752dc48 | |
parent | e5dddc8482df79f9cca7fcfb94b67e6c62e01f86 (diff) | |
download | serverdata-bc49ff8f5e7bbae522250d012b8e531a7bc4203c.tar.gz serverdata-bc49ff8f5e7bbae522250d012b8e531a7bc4203c.tar.bz2 serverdata-bc49ff8f5e7bbae522250d012b8e531a7bc4203c.tar.xz serverdata-bc49ff8f5e7bbae522250d012b8e531a7bc4203c.zip |
Allied Forces
-rw-r--r-- | npc/025-1/ctrl.c | 21 |
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; |