viewing paste Unknown #6818 | C

Posted on the
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 34 35 36 37 38 39 40 41 42 43 44 45
                set .@instance, instance_create(.@md_name$, .@party_id);
                if (.@instance < 0) {
                    mes "Party Name:"+.@p_name$+"";
                    mes "Party Leader:"+.@p_reader$+"";
                    mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!";
                } else {
                    mes "^0000ff"+.@md_name$+"^000000 - Try to reserve";
                    mes "After making a reservation, you have to talk to NPC behind and select the menu 'Enter the Dungeon' to enter the dungeon.";
                    // 1,2,3,4,5,6
                    for( set .@i, 1; .@i <= 6; set .@i, .@i + 1 ) {
                        if( instance_attachmap(.@i + "@tower", .@instance) == "" ) {
                            mes "^0000ff"+.@md_name$+" ^000000- Reservation Failed!";
                            instance_destroy(.@instance);
                            close;
                        }
                    }
                    instance_attach(.@instance);
                    instance_set_timeout 14400,300,.@instance;
                    instance_init(.@instance);
                    // Spawn the first floor of each map, which will then spawn the rest when cleared.
                    donpcevent instance_npcname("#1F Controller", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("Immortal Furnace#1", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("Immortal Furnace#2", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("Immortal Furnace#3", instance_id())+"::OnInstanceInit";
                    // Disable the warps on all floor. (enable as floors are cleared)
                    for( set .@i, 1; .@i <= 99; set .@i, .@i + 1 )
                        donpcevent instance_npcname(.@i+"FGate102tower", instance_id())+"::OnInstanceInit";
                    // Warps activate on timer, so players can't get unlimited Ashes.
                    donpcevent instance_npcname("25FGate102tower-2", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("50FGate102tower-2", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("75FGate102tower-2", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("99FGate102tower-2", instance_id())+"::OnInstanceInit";
                    // Disable and ready NPCs for the 100th and 101st floors.
                    donpcevent instance_npcname("Lucid Crystal#102", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("#102Effect1", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("#102Effect2", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("#102FShadowDust1", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("#102FShadowDust", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("Life Spring#1", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("Tyrant's Throne#", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("Lost Soul#102", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("#Effect30", instance_id())+"::OnInstanceInit";
                    donpcevent instance_npcname("#Effect31", instance_id())+"::OnInstanceInit";
                }
 
Viewed 755 times, submitted by Guest.