summaryrefslogtreecommitdiff
path: root/npc/026-5/ctrl.c
blob: d0a9fbd7e940e747fffc3fa3b152dca4d3044e75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// TMW2 scripts.
// Author:
//    Jesusalva
// Description:
//   The Impregnable Fortress Control Files
// Quest: General_Fortress
//  (MaxFloor+2, internal, internal)

// This script must set 026-5 up on init, and refresh it when needed
// This one also contains a blackbox
-	script	Impregnable#B5F	NPC_HIDDEN,{
    end;

// On Tuesday, the map changes
//OnTue0000:
OnMon2358:
    // TODO: Reload .InstId
    killmonsterall("026-5");
    MazeMobs(145, false, 7, "026-5"); // 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, 7, "026-5"); // Initiate Lv 145 mobs
    // TODO: Add the utilities
    end;
}