summaryrefslogtreecommitdiff
path: root/npc/guild/prtg/prtg_treas.txt
blob: 442636f106d8547f9044c3ab26ad20b7a393ff13 (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
//===== eAthena Script =======================================
//= War of Emperium Treasure Rooms for Prontera 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 ----------------------------------------------------------
prtg_cas01,1,1,0	script	Treasure_Pt01	-1,{
OnRecvCastlePt01:
	end;
OnInit:
	if($boxNumPt01 == 0) end;
	set $@bxPt01, $boxNumPt01;
	callfunc "F_GldTreas","prtg_cas01","Pt01",$boxNumPt01,$@bxPt01,$@boxIdPt01,1354,6,204,15,213,1;
	end;

OnDied:
	mapannounce "prtg_cas01","Treasure Chest Broken Open",17;
	set $boxNumPt01, $boxNumPt01 -1;
	if($boxNumPt01 == 0) mapannounce "prtg_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 ----------------------------------------------------
prtg_cas01,15,209,0	script	Switch#TresPt01	111,{
	callfunc "F_GldTreasSw", "prtg_cas01",109,179;
	end;
}

// Treasure Room Protection ------------------------------------------------
prtg_cas01,11,208,0	script	ban_warp#1	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "prtg_cas01", "prontera",109,179;
	end;
}

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

// Treasure Spawn ----------------------------------------------------------
prtg_cas02,1,1,0	script	Treasure_Pt02	-1,{
OnRecvCastlePt02:
	end;
OnInit:
	if($boxNumPt02 == 0) end;
	set $@bxPt02, $boxNumPt02;
	callfunc "F_GldTreas","prtg_cas02","Pt02",$boxNumPt02,$@bxPt02,$@boxIdPt02,1356,198,224,207,233,1;
	end;

OnDied:
	mapannounce "prtg_cas02","Treasure Chest Broken Open",17;
	set $boxNumPt02, $boxNumPt02 -1;
	if($boxNumPt02 == 0) mapannounce "prtg_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 ----------------------------------------------------
prtg_cas02,207,228,0	script	Switch#TresPt02	111,{
	callfunc "F_GldTreasSw", "prtg_cas02",94,62;
	end;
}

// Treasure Room Protection ------------------------------------------------
prtg_cas02,202,228,0	script	ban_warp#2	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "prtg_cas02", "prontera",109,179;
	end;
}

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

// Treasure Spawn ----------------------------------------------------------
prtg_cas03,1,1,0	script	Treasure_Pt03	-1,{
OnRecvCastlePt03:
	end;
OnInit:
	if($boxNumPt03 == 0) end;
	set $@bxPt03, $boxNumPt03;
	callfunc "F_GldTreas","prtg_cas03","Pt03",$boxNumPt03,$@bxPt03,$@boxIdPt03,1358,184,128,193,135,1;
	end;

OnDied:
	mapannounce "prtg_cas03","Treasure Chest Broken Open",17;
	set $boxNumPt03, $boxNumPt03 -1;
	if($boxNumPt03 == 0) mapannounce "prtg_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 ----------------------------------------------------
prtg_cas03,193,130,0	script	Switch#TresPt03	111,{
	callfunc "F_GldTreasSw", "prtg_cas03",45,99;
	end;
}

// Treasure Room Protection ------------------------------------------------
prtg_cas03,189,132,0	script	ban_warp#3	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "prtg_cas03", "prontera",109,179;
	end;
}

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

// Treasure Spawn ----------------------------------------------------------
prtg_cas04,1,1,0	script	Treasure_Pt04	-1,{
OnRecvCastlePt04:
	end;
OnInit:
	if($boxNumPt04 == 0) end;
	set $@bxPt04, $boxNumPt04;
	callfunc "F_GldTreas","prtg_cas04","Pt04",$boxNumPt04,$@bxPt04,$@boxIdPt04,1360,266,158,275,167,1;
	end;

OnDied:
	mapannounce "prtg_cas04","Treasure Chest Broken Open",17;
	set $boxNumPt04, $boxNumPt04 -1;
	if($boxNumPt04 == 0) mapannounce "prtg_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 ----------------------------------------------------
prtg_cas04,275,160,0	script	Switch#TresPt04	111,{
	callfunc "F_GldTreasSw", "prtg_cas04",259,265;
	end;
}

// Treasure Room Protection ------------------------------------------------
prtg_cas04,271,162,0	script	ban_warp#4	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "prtg_cas04", "prontera",109,179;
	end;
}

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

// Treasure Spawn ----------------------------------------------------------
prtg_cas05,1,1,0	script	Treasure_Pt05	-1,{
OnRecvCastlePt05:
	end;
OnInit:
	if($boxNumPt05 == 0) end;
	set $@bxPt05, $boxNumPt05;
	callfunc "F_GldTreas","prtg_cas05","Pt05",$boxNumPt05,$@bxPt05,$@boxIdPt05,1362,272,174,279,181,1;
	end;

OnDied:
	mapannounce "prtg_cas05","Treasure Chest Broken Open",17;
	set $boxNumPt05, $boxNumPt05 -1;
	if($boxNumPt05 == 0) mapannounce "prtg_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 ----------------------------------------------------
prtg_cas05,281,176,0	script	Switch#TresPt05	111,{
	callfunc "F_GldTreasSw", "prtg_cas05",34,30;
	end;
}

// Treasure Room Protection ------------------------------------------------
prtg_cas05,276,178,0	script	ban_warp#5	-1,6,6,{
OnTouch:
	callfunc "F_TreasProtect", "prtg_cas05", "prontera",109,179;
	end;
}