summaryrefslogtreecommitdiff
path: root/npc/026-5/ctrl.c
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-08 01:38:40 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-08 01:38:40 -0300
commite550b02b60a81b9d8b4882325e124df983ff5c2b (patch)
treebe0c0606ab0978c9e7c461c140eb3ece93201910 /npc/026-5/ctrl.c
parenta05eca80ef42342be07756416be5f6b782941cc4 (diff)
downloadserverdata-e550b02b60a81b9d8b4882325e124df983ff5c2b.tar.gz
serverdata-e550b02b60a81b9d8b4882325e124df983ff5c2b.tar.bz2
serverdata-e550b02b60a81b9d8b4882325e124df983ff5c2b.tar.xz
serverdata-e550b02b60a81b9d8b4882325e124df983ff5c2b.zip
Update Maze code to work with IOT_NONE (requires special care).
Prepare 026-4 and 026-5 (mobs do not respawn) - they're not yet usable.
Diffstat (limited to 'npc/026-5/ctrl.c')
-rw-r--r--npc/026-5/ctrl.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/026-5/ctrl.c b/npc/026-5/ctrl.c
index 9255a145c..04de1832a 100644
--- a/npc/026-5/ctrl.c
+++ b/npc/026-5/ctrl.c
@@ -11,5 +11,21 @@
- script Impregnable#B5F NPC_HIDDEN,{
end;
+// On Tuesday, the map changes
+OnTue0000:
+ // TODO: Reload .InstId
+ //MazeMobs(145, false, 10, "026-4"); // Initiate Lv 145 mobs
+ end;
+
+// Initialize the dungeon
+OnInit:
+ sleep(7000); // Delay 7s before initialization
+ .InstId = CreateMaze(IOT_NONE, MAZE_SIZE_A, "026-5");
+ instance_set_timeout(0, 0, .InstId);
+ instance_init(.InstId);
+ debugmes "Impregnable Fortress B5F (%d): Init OK", .InstId;
+ MazeMobs(145, false, 10, "026-5"); // Initiate Lv 145 mobs
+ // TODO: Add the utilities
+ end;
}