summaryrefslogblamecommitdiff
path: root/npc/026-1/_config.txt
blob: f583eb2c7a6a7e86a2e8e46121cc3de9761725c7 (plain) (tree)
































                                                                                                               
                               






                                                         
                                                           

                                                
                               
                                          
                                                         




                    









                                                                                           

                                                
                                   
                                          
                                                         



                    
// This file is generated automatically. All manually added changes will be removed when running the Converter.
// Map 026-1: The Impregnable Fortress (B1F) conf

026-1,58,76,0	script	#026-1_58_76	NPC_HIDDEN,{
	end;
OnDisable:
	delcells "026-1_58_76"; end;
OnEnable:
OnInit:
	setcells "026-1", 58, 76, 62, 76, 1, "026-1_58_76";
}

026-1,25,32,0	script	#026-1_25_32	NPC_HIDDEN,{
	end;
OnDisable:
	delcells "026-1_25_32"; end;
OnEnable:
OnInit:
	setcells "026-1", 25, 32, 25, 32, 1, "026-1_25_32";
}

026-1,30,32,0	script	#026-1_30_32	NPC_HIDDEN,{
	end;
OnDisable:
	delcells "026-1_30_32"; end;
OnEnable:
OnInit:
	setcells "026-1", 30, 32, 30, 32, 1, "026-1_30_32";
}

026-1,24,28,0	script	#026-1_24_28	NPC_SWITCH_ONLINE,{
	if (getnpcclass() == NPC_SWITCH_OFFLINE)
		end;
	callfunc "0261_Flip30";
	doevent "#026-1_30_32::OnDisable";
	setnpcdisplay "#026-1_24_28", NPC_SWITCH_OFFLINE;
	end;
OnInit:
	.distance=2;
}

026-1,62,28,0	script	#026-1_62_28	NPC_SWITCH_ONLINE,{
	if (getnpcclass() == NPC_SWITCH_OFFLINE)
		end;
	callfunc "0261_Flip25";
	doevent "#026-1_25_32::OnDisable";
	setnpcdisplay "#026-1_62_28", NPC_SWITCH_OFFLINE;
	end;
OnInit:
	.distance=2;
}

026-1,30,28,0	script	#026-1_30_28	NPC_CHEST,{
	TreasureBox();
	specialeffect(.dir == 0 ? 24 : 25, AREA, getnpcid()); // closed ? opening : closing
	close;
OnInit:
	.distance=2;
	end;
}

026-1,26,28,0	script	#026-1_26_28	NPC_SWITCH_ONLINE,{
	if (getnpcclass() == NPC_SWITCH_OFFLINE)
		end;
	callfunc "0261_GateChange";
	doevent "#026-1_58_76::OnDisable";
	setnpcdisplay "#026-1_26_28", NPC_SWITCH_OFFLINE;
	end;
OnInit:
	.distance=2;
}