From 2c0a718d6940d4e515e427eb30a916778e34505f Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sun, 28 Feb 2021 14:25:24 -0300 Subject: Reset 026-1 state every 15 minutes --- npc/025-3/_mobs.txt | 2 +- npc/026-1/_config.txt | 17 +++++++++++++---- npc/026-1/ctrl.c | 14 ++++++++++++++ 3 files changed, 28 insertions(+), 5 deletions(-) (limited to 'npc') diff --git a/npc/025-3/_mobs.txt b/npc/025-3/_mobs.txt index 3e2dd8c36..a7e8cf9d3 100644 --- a/npc/025-3/_mobs.txt +++ b/npc/025-3/_mobs.txt @@ -1,6 +1,6 @@ // This file is generated automatically. All manually added changes will be removed when running the Converter. // Map 025-3: The Impregnable Fortress (Outside) mobs -025-3,99,157,75,17 monster Moubi 1038,16,90000,30000 +025-3,99,157,75,17 monster Moubi 1038,16,120000,30000 025-3,105,117,10,21 monster Angry Bat 1194,24,500,500,Impregnable#0F::OnMoubiKill 025-3,98,141,71,16 monster Bloody Mouboo 1119,6,500,500 025-3,99,117,75,18 monster Crafty 1018,1,500,500,Impregnable#0F::OnMoubiKill diff --git a/npc/026-1/_config.txt b/npc/026-1/_config.txt index 937f8ea49..bad3748a4 100644 --- a/npc/026-1/_config.txt +++ b/npc/026-1/_config.txt @@ -38,21 +38,30 @@ OnInit: .distance=2; } -026-1,30,28,0 script #026-1_30_28 NPC_SWITCH_ONLINE,{ +026-1,62,28,0 script #026-1_62_28 NPC_SWITCH_ONLINE,{ if (getnpcclass() == NPC_SWITCH_OFFLINE) end; doevent "#026-1_25_32::OnDisable"; - setnpcdisplay "#026-1_30_28", NPC_SWITCH_OFFLINE; + setnpcdisplay "#026-1_62_28", NPC_SWITCH_OFFLINE; end; OnInit: .distance=2; } -026-1,62,28,0 script #026-1_62_28 NPC_SWITCH_ONLINE,{ +026-1,30,28,0 script #026-1_30_28 NPC_CHEST,{ + TreasureBox(); + specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing + close; +OnInit: + .distance=2; + end; +} + +026-1,26,28,0 script #026-1_26_28 NPC_SWITCH_ONLINE,{ if (getnpcclass() == NPC_SWITCH_OFFLINE) end; doevent "#026-1_58_76::OnDisable"; - setnpcdisplay "#026-1_62_28", NPC_SWITCH_OFFLINE; + setnpcdisplay "#026-1_26_28", NPC_SWITCH_OFFLINE; end; OnInit: .distance=2; diff --git a/npc/026-1/ctrl.c b/npc/026-1/ctrl.c index b02293665..6137441f7 100644 --- a/npc/026-1/ctrl.c +++ b/npc/026-1/ctrl.c @@ -30,5 +30,19 @@ L_Warp: dispbottom l("Coming Soon, in Moubootaur Legends!"); end; +// Disarm & reset everything +OnMinute15: +OnMinute30: +OnMinute45: +OnMinute00: + 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"; + setnpcdisplay "#026-1_24_28", NPC_SWITCH_ONLINE; + setnpcdisplay "#026-1_26_28", NPC_SWITCH_ONLINE; + setnpcdisplay "#026-1_62_28", NPC_SWITCH_ONLINE; + end; } +// Other misc controllers + -- cgit v1.2.3-60-g2f50