summaryrefslogtreecommitdiff
path: root/npc/026-1/_config.txt
blob: f583eb2c7a6a7e86a2e8e46121cc3de9761725c7 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
// 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;
}