summaryrefslogtreecommitdiff
path: root/npc/guild/payg/payg_treas.txt
blob: d5ca867c9b0f88aee4de818d6ba432ec2a64988f (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
//===== eAthena Script =======================================
//= War of Emperium Treasure Rooms for Payon 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 ----------------------------------------------------------
payg_cas01.gat,1,1,0	script	Treasure_Py01	-1,{
OnRecvCastlePy01:
	end;
OnInit:
	if($boxNumPy01 == 0) end;
	set $@bxPy01, $boxNumPy01;
	callfunc "F_GldTreas","payg_cas01","Py01",$boxNumPy01,$@bxPy01,$@boxIdPy01,1344,286,4,295,13,1;
	end;

OnDied:
	mapannounce "payg_cas01.gat","Treasure Chest Broken Open",17;
	set $boxNumPy01, $boxNumPy01 -1;
	if($boxNumPy01 == 0) mapannounce "payg_cas01.gat", "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 ---------------------------------------------------
payg_cas01.gat,295,8,0	script	Switch#TresPy01	111,{
	callfunc "F_GldTreasSw", "payg_cas01",120,59;
	end;
}


//<================================ Castle 2 ================================>\\
// Treasure Spawn ----------------------------------------------------------
payg_cas02.gat,1,1,0	script	Treasure_Py02	-1,{
OnRecvCastlePy02:
	end;
OnInit:
	if($boxNumPy02 == 0) end;
	set $@bxPy02, $boxNumPy02;
	callfunc "F_GldTreas","payg_cas02","Py02",$boxNumPy02,$@bxPy02,$@boxIdPy02,1346,140,140,148,149,1;
	end;

OnDied:
	mapannounce "payg_cas02.gat","Treasure Chest Broken Open",17;
	set $boxNumPy02, $boxNumPy02 -1;
	if($boxNumPy02 == 0) mapannounce "payg_cas02.gat", "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 ----------------------------------------------------
payg_cas02.gat,149,148,0	script	Switch#TresPy02	111,{
	callfunc "F_GldTreasSw", "payg_cas02",22,261;
	end;
}


//<================================ Castle 3 ================================>\\
// Treasure Spawn ----------------------------------------------------------
payg_cas03.gat,158,168,0	script	Treasure_Py03	-1,{
OnRecvCastlePy03:
	end;
OnInit:
	if($boxNumPy03 == 0) end;
	set $@bxPy03, $boxNumPy03;
	callfunc "F_GldTreas","payg_cas03","Py03",$boxNumPy03,$@bxPy03,$@boxIdPy03,1348,154,164,162,173,1;
	end;

OnDied:
	mapannounce "payg_cas03.gat","Treasure Chest Broken Open",17;
	set $boxNumPy03, $boxNumPy03 -1;
	if($boxNumPy03 == 0) mapannounce "payg_cas03.gat", "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 ----------------------------------------------------
payg_cas03.gat,163,167,0	script	Switch#TresPy03	111,{
	callfunc "F_GldTreasSw", "payg_cas03",11,278;
	end;
}


//<================================ Castle 4 ================================>\\
// Treasure Spawn ----------------------------------------------------------
payg_cas04.gat,146,48,0	script	Treasure_Py04	-1,{
OnRecvCastlePy04:
	end;
OnInit:
	if($boxNumPy04 == 0) end;
	set $@bxPy04, $boxNumPy04;
	callfunc "F_GldTreas","payg_cas04","Py04",$boxNumPy04,$@bxPy04,$@boxIdPy04,1350,142,44,151,51,1;
	end;

OnDied:
	mapannounce "payg_cas04.gat","Treasure Chest Broken Open",17;
	set $boxNumPy04, $boxNumPy04 -1;
	if($boxNumPy04 == 0) mapannounce "payg_cas04.gat", "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 ----------------------------------------------------
payg_cas04.gat,151,47,0	script	Switch#TresPy04	111,{
	callfunc "F_GldTreasSw", "payg_cas04",38,285;
	end;
}


//<================================ Castle 5 ================================>\\
// Treasure Spawn ----------------------------------------------------------
payg_cas05.gat,156,131,0	script	Treasure_Py05	-1,{
OnRecvCastlePy05:
	end;
OnInit:
	if($boxNumPy05 == 0) end;
	set $@bxPy05, $boxNumPy05;
	callfunc "F_GldTreas","payg_cas05","Py05",$boxNumPy05,$@bxPy05,$@boxIdPy05,1352,152,128,160,135,1;
	end;

OnDied:
	mapannounce "payg_cas05.gat","Treasure Chest Broken Open",17;
	set $boxNumPy05, $boxNumPy05 -1;
	if($boxNumPy05 == 0) mapannounce "payg_cas05.gat", "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 ----------------------------------------------------
payg_cas05.gat,161,136,0	script	Switch#TresPy05	111,{
	callfunc "F_GldTreasSw", "payg_cas05",277,250;
	end;
}