From b3479d740ae5203f06cdf308cc9be5ce2edabc1a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 28 Feb 2021 15:22:25 -0300 Subject: Record the flip state of the other two switches. I do not want accidental warnings for deleting inexisting cells --- npc/026-1/ctrl.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'npc/026-1/ctrl.c') diff --git a/npc/026-1/ctrl.c b/npc/026-1/ctrl.c index d80516bfa..17b9be77c 100644 --- a/npc/026-1/ctrl.c +++ b/npc/026-1/ctrl.c @@ -35,8 +35,10 @@ OnMinute15: OnMinute45: if (!$@DATA_0261[12]) delcells "026-1_58_76"; setcells "026-1", 58, 76, 62, 76, 1, "026-1_58_76"; - delcells "026-1_25_32"; setcells "026-1", 25, 32, 25, 32, 1, "026-1_25_32"; - delcells "026-1_30_32"; setcells "026-1", 30, 32, 30, 32, 1, "026-1_30_32"; + if ($@DATA_0261[13]) + delcells "026-1_25_32"; setcells "026-1", 25, 32, 25, 32, 1, "026-1_25_32"; + if ($@DATA_0261[14]) + delcells "026-1_30_32"; setcells "026-1", 30, 32, 30, 32, 1, "026-1_30_32"; setnpcdisplay "#026-1_24_28", NPC_SWITCH_ONLINE; setnpcdisplay "#026-1_26_28", NPC_SWITCH_ONLINE; setnpcdisplay "#026-1_62_28", NPC_SWITCH_ONLINE; @@ -54,6 +56,16 @@ function script 0261_GateChange { return; } +function script 0261_Flip25 { + $@DATA_0261[13] = true; + return; +} + +function script 0261_Flip30 { + $@DATA_0261[14] = true; + return; +} + function script 0261_CheckReset { if ($@DATA_0261[0] == 1 && $@DATA_0261[1] == 1 && -- cgit v1.2.3-60-g2f50