summaryrefslogblamecommitdiff
path: root/npc/026-5/ctrl.c
blob: 24a204ad1913517477a20e0a3cd217b97fdf75bb (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:
OnMon2358:
    if (!.InstId) end;
    // TODO: Reload .InstId
    killmonsterall("026-5");
    MazeMobs(145, false, 7, "026-5"); // Initiate Lv 145 mobs
    end;

// Initialize the dungeon
OnInit:
    .InstId = false;
    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
    setmapflag("026-5", mf_zone, "SuperMMO");
    // TODO: Add the utilities
    end;
}