summaryrefslogtreecommitdiff
path: root/npc/guild/prtg/prtg_ev_agit.txt
blob: 22523f17cfab326d97139fa88f2b27af896fd496 (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
//===== eAthena Script =======================================
//= War of Emperium - Prontera Guild Wars Events
//===== By: ==================================================
//= jAthena (1.0)
//= 1.1 by Akaru and ho|yAnge|
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= eAthena 0.1+; RO Episode 4+
//===== Description: =========================================
//= Event Triggers of Prontera Guild Wars
//===== Additional Comments: =================================
//= v1.2 Now using functions for OnAgitStart and OnAgitBreak. [kobra_k88]
//= 1.3 Added code for abandoning captured castles on /breakguild [Lupus]
//============================================================


// Castle 1 ================================================================
prtg_cas01,197,197,0	script	Agit_Pt01	-1,{
OnInterIfInitOnce:
	GetCastleData "prtg_cas01",0,"::OnRecvCastlePt01";
	end;
OnRecvCastlePt01:
	RequestGuildInfo GetCastleData("prtg_cas01",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","prtg_cas01","Pt01",197,197;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","prtg_cas01","Pt01";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_Pt01::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","prtg_cas01","Pt01";
	end;
OnAgitEliminate:
	MapRespawnGuildID "prtg_cas01",GetCastleData("prtg_cas01",1),6;
	Monster "prtg_cas01",197,197,"EMPERIUM",1288,1,"Agit_Pt01::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","prtg_cas01","Pt01";
	end;
}

// Castle 2 ================================================================
prtg_cas02,158,174,0	script	Agit_Pt02	-1,{
OnInterIfInitOnce:
	GetCastleData "prtg_cas02",0,"::OnRecvCastlePt02";
	end;
OnRecvCastlePt02:
	RequestGuildInfo GetCastleData("prtg_cas02",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","prtg_cas02","Pt02",158,174;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","prtg_cas02","Pt02";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_Pt02::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","prtg_cas02","Pt02";
	end;
OnAgitEliminate:
	MapRespawnGuildID "prtg_cas02",GetCastleData("prtg_cas02",1),6;
	Monster "prtg_cas02",158,174,"EMPERIUM",1288,1,"Agit_Pt02::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","prtg_cas02","Pt02";
	end;
}

// Castle 3 ================================================================
prtg_cas03,17,221,0	script	Agit_Pt03	-1,{
OnInterIfInitOnce:
	GetCastleData "prtg_cas03",0,"::OnRecvCastlePt03";
	end;
OnRecvCastlePt03:
	RequestGuildInfo GetCastleData("prtg_cas03",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","prtg_cas03","Pt03",17,221;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","prtg_cas03","Pt03";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_Pt03::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","prtg_cas03","Pt03";
	end;
OnAgitEliminate:
	MapRespawnGuildID "prtg_cas03",GetCastleData("prtg_cas03",1),6;
	Monster "prtg_cas03",17,221,"EMPERIUM",1288,1,"Agit_Pt03::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","prtg_cas03","Pt03";
	end;
}

// Castle 4 ================================================================
prtg_cas04,292,14,0	script	Agit_Pt04	-1,{
OnInterIfInitOnce:
	GetCastleData "prtg_cas04",0,"::OnRecvCastlePt04";
	end;
OnRecvCastlePt04:
	RequestGuildInfo GetCastleData("prtg_cas04",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","prtg_cas04","Pt04",292,14;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","prtg_cas04","Pt04";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_Pt04::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","prtg_cas04","Pt04";
	end;
OnAgitEliminate:
	MapRespawnGuildID "prtg_cas04",GetCastleData("prtg_cas04",1),6;
	Monster "prtg_cas04",292,14,"EMPERIUM",1288,1,"Agit_Pt04::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","prtg_cas04","Pt04";
	end;
}

// Castle 5 ================================================================
prtg_cas05,266,266,0	script	Agit_Pt05	-1,{
OnInterIfInitOnce:
	GetCastleData "prtg_cas05",0,"::OnRecvCastlePt05";
	end;
OnRecvCastlePt05:
	RequestGuildInfo GetCastleData("prtg_cas05",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","prtg_cas05","Pt05",266,266;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","prtg_cas05","Pt05";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_Pt05::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","prtg_cas05","Pt05";
	end;
OnAgitEliminate:
	MapRespawnGuildID "prtg_cas05",GetCastleData("prtg_cas05",1),6;
	Monster "prtg_cas05",266,266,"EMPERIUM",1288,1,"Agit_Pt05::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","prtg_cas05","Pt05";
	end;
}