summaryrefslogtreecommitdiff
path: root/npc/guild/gefg/gefg_ev_agit.txt
blob: abeffa0aee6ce2422ff8d6857391daf7893d827d (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
//===== eAthena Script =======================================
//= War of Emperium - Geffen Guild Wars Events
//===== By: ==================================================
//= jAthena (1.0)
//= 1.1 by Akaru and ho|yAnge|
//===== Current Version: =====================================
//= 1.4
//===== Compatible With: =====================================
//= eAthena 0.1+; RO Episode 4+
//===== Description: =========================================
//= Event Triggers of Geffen 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]
//= 1.4 Small updated. Changed "EMPERIUM" to "Emperium". [L0ne_W0lf]
//============================================================


// Castle 1 ================================================================
gefg_cas01,198,182,0	script	Agit_G01	-1,{
OnInterIfInitOnce:
	GetCastleData "gefg_cas01",0,"::OnRecvCastleG01";
	end;
OnRecvCastleG01:
	RequestGuildInfo GetCastleData("gefg_cas01",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","gefg_cas01","G01",198,182;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","gefg_cas01","G01";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_G01::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","gefg_cas01","G01";
	end;
OnAgitEliminate:
	MapRespawnGuildID "gefg_cas01",GetCastleData("gefg_cas01",1),6;
	Monster "gefg_cas01",198,182,"Emperium",1288,1,"Agit_G01::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","gefg_cas01","G01";
	end;
}

// Castle 2 ================================================================
gefg_cas02,176,178,0	script	Agit_G02	-1,{
OnInterIfInitOnce:
	GetCastleData "gefg_cas02",0,"::OnRecvCastleG02";
	end;
OnRecvCastleG02:
	RequestGuildInfo GetCastleData("gefg_cas02",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","gefg_cas02","G02",176,178;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","gefg_cas02","G02";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_G02::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","gefg_cas02","G02";
	end;
OnAgitEliminate:
	MapRespawnGuildID "gefg_cas02",GetCastleData("gefg_cas02",1),6;
	Monster "gefg_cas02",176,178,"Emperium",1288,1,"Agit_G02::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","gefg_cas02","G02";
	end;
}

// Castle 3 ================================================================
gefg_cas03,245,167,0	script	Agit_G03	-1,{
OnInterIfInitOnce:
	GetCastleData "gefg_cas03",0,"::OnRecvCastleG03";
	end;
OnRecvCastleG03:
	RequestGuildInfo GetCastleData("gefg_cas03",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","gefg_cas03","G03",245,167;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","gefg_cas03","G03";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_G03::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","gefg_cas03","G03";
	end;
OnAgitEliminate:
	MapRespawnGuildID "gefg_cas03",GetCastleData("gefg_cas03",1),6;
	Monster "gefg_cas03",245,167,"Emperium",1288,1,"Agit_G03::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","gefg_cas03","G03";
	end;
}

// Castle 4 ================================================================
gefg_cas04,174,178,0	script	Agit_G04	-1,{
OnInterIfInitOnce:
	GetCastleData "gefg_cas04",0,"::OnRecvCastleG04";
	end;
OnRecvCastleG04:
	RequestGuildInfo GetCastleData("gefg_cas04",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","gefg_cas04","G04",174,178;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","gefg_cas04","G04";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_G04::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","gefg_cas04","G04";
	end;
OnAgitEliminate:
	MapRespawnGuildID "gefg_cas04",GetCastleData("gefg_cas04",1),6;
	Monster "gefg_cas04",174,178,"Emperium",1288,1,"Agit_G04::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","gefg_cas04","G04";
	end;
}

// Castle 5 ================================================================
gefg_cas05,194,184,0	script	Agit_G05	-1,{
OnInterIfInitOnce:
	GetCastleData "gefg_cas05",0,"::OnRecvCastleG05";
	end;
OnRecvCastleG05:
	RequestGuildInfo GetCastleData("gefg_cas05",1);
	end;
OnAgitStart:
	callfunc "F_AgitStart","gefg_cas05","G05",194,184;
	end;
OnAgitBreak:
	callfunc "F_AgitBreak","gefg_cas05","G05";
	addtimer getbattleflag("gvg_eliminate_time"), "Agit_G05::OnAgitEliminate";
	end;
OnGuildBreak:
	callfunc "F_GuildBreak","gefg_cas05","G05";
	end;
OnAgitEliminate:
	MapRespawnGuildID "gefg_cas05",GetCastleData("gefg_cas05",1),6;
	Monster "gefg_cas05",194,184,"Emperium",1288,1,"Agit_G05::OnAgitBreak";
	end;
OnAgitEnd:
	callfunc "F_AgitEnd","gefg_cas05","G05";
	end;
}