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
|
//===== eAthena Script =======================================
//= War of Emperium - Al De Baran Guild Wars Events
//===== By: ==================================================
//= jAthena (1.0)
//= 1.1 by Akaru and ho|yAnge|
//===== Current Version: =====================================
//= 1.5
//===== 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]
//= 1.5 Quick fix "emps not respawning if the emp breaker logs off".
//= (from r11630 bureport:369) [FlavioJS]
//============================================================
// Castle 1 ================================================================
aldeg_cas01,216,24,0 script Agit_A01 -1,{
OnInterIfInitOnce:
GetCastleData "aldeg_cas01",0,"::OnRecvCastleA01";
end;
OnRecvCastleA01:
RequestGuildInfo GetCastleData("aldeg_cas01",1);
end;
OnAgitStart:
callfunc "F_AgitStart","aldeg_cas01","A01",216,24;
end;
OnAgitBreak:
callfunc "F_AgitBreak","aldeg_cas01","A01";
goto OnAgitEliminate;
OnGuildBreak:
callfunc "F_GuildBreak","aldeg_cas01","A01";
end;
OnAgitEliminate:
sleep getbattleflag("gvg_eliminate_time");
MapRespawnGuildID "aldeg_cas01",GetCastleData("aldeg_cas01",1),6;
sleep 6333-getbattleflag("gvg_eliminate_time");// wait for emp animation to end
Monster "aldeg_cas01",216,24,"Emperium",1288,1,"Agit_A01::OnAgitBreak";
end;
OnAgitEnd:
callfunc "F_AgitEnd","aldeg_cas01","A01";
end;
}
// Castle 2 ================================================================
aldeg_cas02,214,24,0 script Agit_A02 -1,{
OnInterIfInitOnce:
GetCastleData "aldeg_cas02",0,"::OnRecvCastleA02";
end;
OnRecvCastleA02:
RequestGuildInfo GetCastleData("aldeg_cas02",1);
end;
OnAgitStart:
callfunc "F_AgitStart","aldeg_cas02","A02",214,24;
end;
OnAgitBreak:
callfunc "F_AgitBreak","aldeg_cas02","A02";
goto OnAgitEliminate;
OnGuildBreak:
callfunc "F_GuildBreak","aldeg_cas02","A02";
end;
OnAgitEliminate:
sleep getbattleflag("gvg_eliminate_time");
MapRespawnGuildID "aldeg_cas02",GetCastleData("aldeg_cas02",1),6;
sleep 6333-getbattleflag("gvg_eliminate_time");// wait for emp animation to end
Monster "aldeg_cas02",214,24,"Emperium",1288,1,"Agit_A02::OnAgitBreak";
end;
OnAgitEnd:
callfunc "F_AgitEnd","aldeg_cas02","A02";
end;
}
// Castle 3 ================================================================
aldeg_cas03,206,32,0 script Agit_A03 -1,{
OnInterIfInitOnce:
GetCastleData "aldeg_cas03",0,"::OnRecvCastleA03";
end;
OnRecvCastleA03:
RequestGuildInfo GetCastleData("aldeg_cas03",1);
end;
OnAgitStart:
callfunc "F_AgitStart","aldeg_cas03","A03",206,32;
end;
OnAgitBreak:
callfunc "F_AgitBreak","aldeg_cas03","A03";
goto OnAgitEliminate;
OnGuildBreak:
callfunc "F_GuildBreak","aldeg_cas03","A03";
end;
OnAgitEliminate:
sleep getbattleflag("gvg_eliminate_time");
MapRespawnGuildID "aldeg_cas03",GetCastleData("aldeg_cas03",1),6;
sleep 6333-getbattleflag("gvg_eliminate_time");// wait for emp animation to end
Monster "aldeg_cas03",206,32,"Emperium",1288,1,"Agit_A03::OnAgitBreak";
end;
OnAgitEnd:
callfunc "F_AgitEnd","aldeg_cas03","A03";
end;
}
// Castle 4 ================================================================
aldeg_cas04,36,218,0 script Agit_A04 -1,{
OnInterIfInitOnce:
GetCastleData "aldeg_cas04",0,"::OnRecvCastleA04";
end;
OnRecvCastleA04:
RequestGuildInfo GetCastleData("aldeg_cas04",1);
end;
OnAgitStart:
callfunc "F_AgitStart","aldeg_cas04","A04",36,218;
end;
OnAgitBreak:
callfunc "F_AgitBreak","aldeg_cas04","A04";
goto OnAgitEliminate;
OnGuildBreak:
callfunc "F_GuildBreak","aldeg_cas04","A04";
end;
OnAgitEliminate:
sleep getbattleflag("gvg_eliminate_time");
MapRespawnGuildID "aldeg_cas04",GetCastleData("aldeg_cas04",1),6;
sleep 6333-getbattleflag("gvg_eliminate_time");// wait for emp animation to end
Monster "aldeg_cas04",36,218,"Emperium",1288,1,"Agit_A04::OnAgitBreak";
end;
OnAgitEnd:
callfunc "F_AgitEnd","aldeg_cas04","A04";
end;
}
// Castle 5 ================================================================
aldeg_cas05,28,102,0 script Agit_A05 -1,{
OnInterIfInitOnce:
GetCastleData "aldeg_cas05",0,"::OnRecvCastleA05";
end;
OnRecvCastleA05:
RequestGuildInfo GetCastleData("aldeg_cas05",1);
end;
OnAgitStart:
callfunc "F_AgitStart","aldeg_cas05","A05",28,102;
end;
OnAgitBreak:
callfunc "F_AgitBreak","aldeg_cas05","A05";
goto OnAgitEliminate;
OnGuildBreak:
callfunc "F_GuildBreak","aldeg_cas05","A05";
end;
OnAgitEliminate:
sleep getbattleflag("gvg_eliminate_time");
MapRespawnGuildID "aldeg_cas05",GetCastleData("aldeg_cas05",1),6;
sleep 6333-getbattleflag("gvg_eliminate_time");// wait for emp animation to end
Monster "aldeg_cas05",28,102,"Emperium",1288,1,"Agit_A05::OnAgitBreak";
end;
OnAgitEnd:
callfunc "F_AgitEnd","aldeg_cas05","A05";
end;
}
|