summaryrefslogtreecommitdiff
path: root/npc/026-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-28 14:25:24 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-28 14:25:24 -0300
commit2c0a718d6940d4e515e427eb30a916778e34505f (patch)
treee25a87cc97c460b55a4aab546aa7aad5942a15c7 /npc/026-1
parent888748a84d7b7a8f7ed9410ebaa7ced667e0e46a (diff)
downloadserverdata-2c0a718d6940d4e515e427eb30a916778e34505f.tar.gz
serverdata-2c0a718d6940d4e515e427eb30a916778e34505f.tar.bz2
serverdata-2c0a718d6940d4e515e427eb30a916778e34505f.tar.xz
serverdata-2c0a718d6940d4e515e427eb30a916778e34505f.zip
Reset 026-1 state every 15 minutes
Diffstat (limited to 'npc/026-1')
-rw-r--r--npc/026-1/_config.txt17
-rw-r--r--npc/026-1/ctrl.c14
2 files changed, 27 insertions, 4 deletions
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
+