summaryrefslogtreecommitdiff
path: root/npc/026-1
diff options
context:
space:
mode:
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
+