summaryrefslogtreecommitdiff
path: root/npc/guild/aldeg/aldeg_treas.txt
blob: 06e5e70ffeea626897f4c8a09f66487086be0aaf (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
//===== eAthena Script =======================================
//= War of Emperium Treasure Rooms for Al De Baran Guild Castles
//===== By: ==================================================
//= jAthena - kalen (1.0)
//= 1.1 by Akaru, ho|yAnge|X, and Valaris
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= eAthena 0.1+; RO Episode 4+
//===== Description: =========================================
//=
//===== Additional Comments: =================================
//= v1.2 Optimized with functions.[kobra_k88]
//============================================================


//<=============================== Castle 1 =================================>\\

// Treasure Spawn -----------------------
aldeg_cas01,1,1,1	script	Treasure_A01	-1,{

OnRecvCastleA01:
	end;
OnInit:
	if($boxNumA01 == 0) end;
	set $@bxA01, $boxNumA01;
	callfunc "F_GldTreas","aldeg_cas01","A01",$boxNumA01,$@bxA01,$@boxIdA01,1324,114,218,123,227,1;
	end;

OnDied:
	mapannounce "aldeg_cas01","Treasure Chest Broken Open",17;
	set $boxNumA01, $boxNumA01 -1;
	if($boxNumA01 == 0) mapannounce "aldeg_cas01", "All of the treasure boxes have been opened.  You must wait untill the next day for them to appear again.",0;
	end;
}

// Treasure Room Switch --------------------
aldeg_cas01,123,223,0	script	Switch#TresA01	111,{
	callfunc "F_GldTreasSw", "aldeg_cas01",218,176;
	end;
}

// Treasure Room Protection ------------------------------------------------
aldeg_cas01,118,223,0	script	ban_warp#11	-1,8,8,{
OnTouch:
	callfunc "F_TreasProtect", "aldeg_cas01", "aldebaran",143,112;
	end;
}

//<================================ Castle 2 ================================>\\

// Treasure Spawn ----------------------------
aldeg_cas02,1,1,1	script	Treasure_A02	-1,{

OnRecvCastleA02:
	end;
OnInit:
	if($boxNumA02 == 0) end;
	set $@bxA02, $boxNumA02;
	callfunc "F_GldTreas","aldeg_cas02","A02",$boxNumA02,$@bxA02,$@boxIdA02,1326,130,226,138,235,1;
	end;

OnDied:
	mapannounce "aldeg_cas02","Treasure Chest Broken Open",17;
	set $boxNumA02, $boxNumA02 -1;
	if($boxNumA02 == 0) mapannounce "aldeg_cas02", "All of the treasure boxes have been opened.  You must wait untill the next day for them to appear again.",0;
	end;
}

// Treasure Room Switch ----------------------
aldeg_cas02,139,235,0	script	Switch#TresA02	111,{
	callfunc "F_GldTreasSw", "aldeg_cas02",78,75;
	end;
}


// Treasure Room Protection ------------------------------------------------
aldeg_cas02,135,230,0	script	ban_warp#12	-1,8,8,{
OnTouch:
	callfunc "F_TreasProtect", "aldeg_cas02", "aldebaran",143,112;
	end;
}

//<================================ Castle 3 ================================>\\

// Treasure Spawn ---------------------------
aldeg_cas03,1,1,1	script	Treasure_A03	-1,{

OnRecvCastleA03:
	end;
OnInit:
	if($boxNumA03 == 0) end;
	set $@bxA03, $boxNumA03;
	callfunc "F_GldTreas","aldeg_cas03","A03",$boxNumA03,$@bxA03,$@boxIdA03,1328,220,264,229,273,1;
	end;

OnDied:
	mapannounce "aldeg_cas03","Treasure Chest Broken Open",17;
	set $boxNumA03, $boxNumA03 -1;
	if($boxNumA03 == 0) mapannounce "aldeg_cas03", "All of the treasure boxes have been opened.  You must wait untill the next day for them to appear again.",0;
	end;
}

// Treasure Room Switch -----------------------
aldeg_cas03,229,267,0	script	Switch#TresA03	111,{
	callfunc "F_GldTreasSw", "aldeg_cas03",110,119;
	end;
}

// Treasure Room Protection ------------------------------------------------
aldeg_cas03,225,269,0	script	ban_warp#13	-1,8,8,{
OnTouch:
	callfunc "F_TreasProtect", "aldeg_cas03", "aldebaran",143,112;
	end;
}

//<================================ Castle 4 ================================>\\

// Treasure Spawn -------------------------------
aldeg_cas04,1,1,1	script	Treasure_A04	-1,{

OnRecvCastleA04:
	end;
OnInit:
	if($boxNumA04 == 0) end;
	set $@bxA04, $boxNumA04;
	callfunc "F_GldTreas","aldeg_cas04","A04",$boxNumA04,$@bxA04,$@boxIdA04,1330,80,8,89,17,1;
	end;

OnDied:
	mapannounce "aldeg_cas04","Treasure Chest Broken Open",17;
	set $boxNumA04, $boxNumA04 -1;
	if($boxNumA04 == 0) mapannounce "aldeg_cas04", "All of the treasure boxes have been opened.  You must wait untill the next day for them to appear again.",0;
	end;

}
// Treasure Room Switch -------------------------
aldeg_cas04,83,17,0	script	Switch#TresA04	111,{
	callfunc "F_GldTreasSw", "aldeg_cas04",67,117;
	end;
}

// Treasure Room Protection ------------------------------------------------
aldeg_cas04,84,13,0	script	ban_warp#14	-1,8,8,{
OnTouch:
	callfunc "F_TreasProtect", "aldeg_cas04", "aldebaran",143,112;
	end;
}

//<================================ Castle 5 ================================>\\

// Treasure Spawn ------------------------------------
aldeg_cas05,1,1,1	script	Treasure_A05	-1,{

OnRecvCastleA05:
	end;
OnInit:
	if($boxNumA05 == 0) end;
	set $@bxA05, $boxNumA05;
	callfunc "F_GldTreas","aldeg_cas05","A05",$boxNumA05,$@bxA05,$@boxIdA05,1332,58,8,65,15,1;
	end;

OnDied:
	mapannounce "aldeg_cas05","Treasure Chest Broken Open",17;
	set $boxNumA05, $boxNumA05 -1;
	if($boxNumA05 == 0) mapannounce "aldeg_cas05", "All of the treasure boxes have been opened.  You must wait untill the next day for them to appear again.",0;
	end;
}

// Treasure Room Switch ---------------------------------
aldeg_cas05,64,8,0	script	Switch#TresA05	111,{
	callfunc "F_GldTreasSw", "aldeg_cas05",51,179;
	end;
}


// Treasure Room Protection ------------------------------------------------
aldeg_cas05,62,12,0	script	ban_warp#15	-1,8,8,{
OnTouch:
	callfunc "F_TreasProtect", "aldeg_cas05", "aldebaran",143,112;
	end;
}