summaryrefslogtreecommitdiff
path: root/npc/guild/gefg/gefg_treas.txt
blob: 833c7406cd8535bf25d536b536b4133cfec22267 (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
//===== eAthena Script =======================================
//= War of Emperium Treasure Rooms for Geffen 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]
//= 1.3 Removed announces when you open chests. [L0ne_W0lf]
//============================================================


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

// Treasure Spawn ---------------------------------------------------------
gefg_cas01,1,1,1	script	Treasure_G01	-1,{

OnRecvCastleG01:
	end;
OnInit:
	if($boxNumG01 == 0) end;
	set $@bxG01, $boxNumG01;
	callfunc "F_GldTreas","gefg_cas01","G01",$boxNumG01,$@bxG01,$@boxIdG01,1334,150,108,158,114,1;
	end;

OnDied:
	set $boxNumG01, $boxNumG01 -1;
	end;
}

// Room Switch ---------------------------------------------------------
gefg_cas01,152,117,0	script	Switch#TresG01	111,{
	callfunc "F_GldTreasSw","gefg_cas01",40,49;
	end;
}

// Treasure Room Protection ------------------------------------------------
gefg_cas01,154,112,0	script	ban_warp#16	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "gefg_cas01", "geffen",120,38;
	end;
}

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

// Treasure Spawn ---------------------------------------------------------
gefg_cas02,1,1,1	script	Treasure_G02	-1,{

OnRecvCastleG02:
	end;
OnInit:
	if($boxNumG02 == 0) end;
	set $@bxG02, $boxNumG02;
	callfunc "F_GldTreas","gefg_cas02","G02",$boxNumG02,$@bxG02,$@boxIdG02,1336,136,112,145,118,1;
	end;

OnDied:
	set $boxNumG02, $boxNumG02 -1;
	end;
}

// Room Switch ---------------------------------------------------------
gefg_cas02,145,115,0	script	Switch#TresG02	111,{
	callfunc "F_GldTreasSw", "gefg_cas02",12,67;
}

// Treasure Room Protection ------------------------------------------------
gefg_cas02,140,116,0	script	ban_warp#17	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "gefg_cas02", "geffen",120,38;
	end;
}

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

// Treasure Spawn ---------------------------------------------------------
gefg_cas03,1,1,1	script	Treasure_G03	-1,{

OnRecvCastleG03:
	end;
OnInit:
	if($boxNumG03 == 0) end;
	set $@bxG03, $boxNumG03;
	callfunc "F_GldTreas","gefg_cas03","G03",$boxNumG03,$@bxG03,$@boxIdG03,1338,266,286,275,293,1;
	end;

OnDied:
	set $boxNumG03, $boxNumG03 -1;
	end;
}

// Room Switch ---------------------------------------------------------
gefg_cas03,275,289,0	script	Switch#TresG03	111,{
	callfunc "F_GldTreasSw", "gefg_cas03",106,24;
	end;
}

// Treasure Room Protection ------------------------------------------------
gefg_cas03,271,290,0	script	ban_warp#18	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "gefg_cas03", "geffen",120,38;
	end;
}

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

// Treasure Spawn ---------------------------------------------------------
gefg_cas04,1,1,1	script	Treasure_G04	-1,{

OnRecvCastleG04:
	end;
OnInit:
	if($boxNumG04 == 0) end;
	set $@bxG04, $boxNumG04;
	callfunc "F_GldTreas","gefg_cas04","G04",$boxNumG04,$@bxG04,$@boxIdG04,1340,112,114,119,123,1;
	end;

OnDied:
	set $boxNumG04, $boxNumG04 -1;
	end;
}

// Room Switch ---------------------------------------------------------
gefg_cas04,117,123,0	script	Switch#TresG04	111,{
	callfunc "F_GldTreasSw", "gefg_cas04",73,47;
	end;
}

// Treasure Room Protection ------------------------------------------------
gefg_cas04,116,119,0	script	ban_warp#19	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "gefg_cas04", "geffen",120,38;
	end;
}

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

// Treasure Spawn ---------------------------------------------------------
gefg_cas05,1,1,1	script	Treasure_G05	-1,{

OnRecvCastleG05:
	end;
OnInit:
	if($boxNumG05 == 0) end;
	set $@bxG05, $boxNumG05;
	callfunc "F_GldTreas","gefg_cas05","G05",$boxNumG05,$@bxG05,$@boxIdG05,1342,140,106,147,113,1;
	end;

OnDied:
	set $boxNumG05, $boxNumG05 -1;
	end;
}

// Room Switch ---------------------------------------------------------
gefg_cas05,149,107,0	script	Switch#TresG05	111,{
	callfunc "F_GldTreasSw", "gefg_cas05",70,53;
	close;
}

// Treasure Room Protection ------------------------------------------------
gefg_cas05,144,110,0	script	ban_warp#20	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "gefg_cas05", "geffen",120,38;
	end;
}