summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-01-16 07:48:00 -0300
committerJesusaves <cpntb1@ymail.com>2021-01-16 07:48:00 -0300
commit60e768c0cbc4c0671cb2da8113ef4ca980ccd8fd (patch)
tree06203008ca415fb15bfbcfdb1b4264c7753f1586
parentb27250e237463205c96f218e782d82d5b27ebd85 (diff)
downloadserverdata-60e768c0cbc4c0671cb2da8113ef4ca980ccd8fd.tar.gz
serverdata-60e768c0cbc4c0671cb2da8113ef4ca980ccd8fd.tar.bz2
serverdata-60e768c0cbc4c0671cb2da8113ef4ca980ccd8fd.tar.xz
serverdata-60e768c0cbc4c0671cb2da8113ef4ca980ccd8fd.zip
Kill Fortress Town scripts when game storyline does not allows it.
Main use is to prevent broadcasts at tuesdays if Fortress Town is not yet known
-rw-r--r--npc/025-1/ctrl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/npc/025-1/ctrl.c b/npc/025-1/ctrl.c
index 49aae2f09..327d0cc58 100644
--- a/npc/025-1/ctrl.c
+++ b/npc/025-1/ctrl.c
@@ -29,9 +29,13 @@
// FTCleanup(status)
function script FTCleanup {
+ // Kills whatever called this function if time is wrong
+ if ($GAME_STORYLINE < 3)
+ end;
+ // Reset variables
$FORTRESS_STATE=getarg(0);
- // Enable the Magic Statues
$@FORTRESS_STATUE=0;
+ // Enable the Magic Statues
enablenpc "Magic Statue#1";
enablenpc "Magic Statue#2";
enablenpc "Magic Statue#4";