summaryrefslogblamecommitdiff
path: root/npc/026-5/ctrl.c
blob: 04de1832ad277d935ef1573a62234404bcbd591a (plain) (tree)
1
2
3
4
5
6
7
8





                                           
                                    
 




                                                                    















                                                                

 
// 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:
    // 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;
}