From 60e768c0cbc4c0671cb2da8113ef4ca980ccd8fd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 Jan 2021 07:48:00 -0300 Subject: 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 --- npc/025-1/ctrl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'npc/025-1') 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"; -- cgit v1.2.3-60-g2f50