summaryrefslogtreecommitdiff
path: root/npc/guild/old/ev_agit_aldeg.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild/old/ev_agit_aldeg.txt')
-rw-r--r--npc/guild/old/ev_agit_aldeg.txt952
1 files changed, 476 insertions, 476 deletions
diff --git a/npc/guild/old/ev_agit_aldeg.txt b/npc/guild/old/ev_agit_aldeg.txt
index 617836cc6..dde9e82cf 100644
--- a/npc/guild/old/ev_agit_aldeg.txt
+++ b/npc/guild/old/ev_agit_aldeg.txt
@@ -1,476 +1,476 @@
-//===== eAthena Script =======================================
-//= War of Emperium - Al de Baran Guild Wars Events
-//===== By: ==================================================
-//= jAthena (1.0)
-//===== Current Version: =====================================
-//= 1.2
-//===== Compatible With: =====================================
-//= eAthena 0.1+; RO Episode 4+
-//===== Description: =========================================
-//= Event Triggers of Al de Baran Guild Wars
-//===== Additional Comments: =================================
-//= 1.1 by Akaru and ho|yAnge|
-//= 1.2 by Akaru (Castle spawn/conquering fix)
-//============================================================
-
-
-aldeg_cas01.gat,216,24,0 script Agit_A01 -1,{
-OnAgitInit:
- GetCastleData "aldeg_cas01.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "aldeg_cas01.gat",0,"::OnRecvCastleA01";
- Break;
-OnRecvCastleA01:
- RequestGuildInfo GetCastleData("aldeg_cas01.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("aldeg_cas01.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),2;
- Monster "aldeg_cas01.gat",216,24,"EMPERIUM",1288,1,"Agit_A01::OnAgitBreak";
- GvgOn "aldeg_cas01.gat";
- Break;
-OnAgitBreak:
- set @GIDa1,getcharid(2);
- if (@GIDa1 <= 0) Break;
- set @Economy,GetCastleData("aldeg_cas01.gat",2);
- SetCastleData "aldeg_cas01.gat",2,@Economy-5;
- if (GetCastleData("aldeg_cas01.gat",2) < 0) SetCastleData "aldeg_cas01.gat",2,0;
- set @Defence,GetCastleData("aldeg_cas01.gat",3);
- SetCastleData "aldeg_cas01.gat",3,@Defence-5;
- if (GetCastleData("aldeg_cas01.gat",3) < 0) SetCastleData "aldeg_cas01.gat",3,0;
- SetCastleData "aldeg_cas01.gat",1,@GIDa1;
- Announce "Guild Base [" + GetCastleName("aldeg_cas01.gat") + "] has been taken by the [" + GetGuildName(@GIDa1) + "] guild.",0;
- MapAnnounce "aldeg_cas01.gat","The emperium has been destroyed.",17;
- GetCastleData "aldeg_cas01.gat",0,"::OnRecvCastleA01";
- SetCastleData "aldeg_cas01.gat",2,0;
- SetCastleData "aldeg_cas01.gat",3,0;
- SetCastleData "aldeg_cas01.gat",4,0;
- SetCastleData "aldeg_cas01.gat",5,0;
- SetCastleData "aldeg_cas01.gat",6,0;
- SetCastleData "aldeg_cas01.gat",7,0;
- SetCastleData "aldeg_cas01.gat",8,0;
- SetCastleData "aldeg_cas01.gat",9,0;
- SetCastleData "aldeg_cas01.gat",10,0;
- SetCastleData "aldeg_cas01.gat",11,0;
- SetCastleData "aldeg_cas01.gat",12,0;
- SetCastleData "aldeg_cas01.gat",13,0;
- SetCastleData "aldeg_cas01.gat",14,0;
- SetCastleData "aldeg_cas01.gat",15,0;
- SetCastleData "aldeg_cas01.gat",16,0;
- SetCastleData "aldeg_cas01.gat",17,0;
- SetCastleData "aldeg_cas01.gat",18,0;
- SetCastleData "aldeg_cas01.gat",19,0;
- SetCastleData "aldeg_cas01.gat",20,0;
- SetCastleData "aldeg_cas01.gat",21,0;
- SetCastleData "aldeg_cas01.gat",22,0;
- SetCastleData "aldeg_cas01.gat",23,0;
- SetCastleData "aldeg_cas01.gat",24,0;
- SetCastleData "aldeg_cas01.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),6;
- Monster "aldeg_cas01.gat",216,24,"EMPERIUM",1288,1,"Agit_A01::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("aldeg_cas01.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),4;
- KillMonster "aldeg_cas01.gat","Agit_A01::OnAgitBreak";
- GvgOff "aldeg_cas01.gat";
- Break;
-OnInit:
-initnpctimer "Agit_A01_Timer";
-}
-
-aldeg_cas01.gat,1,1,1 script Agit_A01_Timer -1,{
-OnTimer500:
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1132,4;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1219,2;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1205,1;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1216,10;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1193,17;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1269,9;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1276,7;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1208,3;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1268,1;
- areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1272,1;
- monster "aldeg_cas01.gat",216,23,"--ja--",1272,1;
- monster "aldeg_cas01.gat",216,23,"--ja--",1270,4;
- monster "aldeg_cas01.gat",216,23,"--ja--",1268,1;
- monster "aldeg_cas01.gat",216,23,"--ja--",1219,1;
- monster "aldeg_cas01.gat",216,23,"--ja--",1276,5;
- Monster "aldeg_cas01.gat",216,24,"EMPERIUM",1288,1,"Agit_A01::OnAgitBreak";
- stopnpctimer "Agit_A01_Timer";
- Break;
- }
-//--------------------------------------------------------------------------------------------------------------------------
-aldeg_cas02.gat,214,24,0 script Agit_A02 -1,{
-OnAgitInit:
- GetCastleData "aldeg_cas02.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "aldeg_cas02.gat",0,"::OnRecvCastleA02";
- Break;
-OnRecvCastleA02:
- RequestGuildInfo GetCastleData("aldeg_cas02.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("aldeg_cas02.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas02.gat",GetCastleData("aldeg_cas02.gat",1),2;
- Monster "aldeg_cas02.gat",214,24,"EMPERIUM",1288,1,"Agit_A02::OnAgitBreak";
- GvgOn "aldeg_cas02.gat";
- Break;
-OnAgitBreak:
- set @GIDa2,getcharid(2);
- if (@GIDa2 <= 0) Break;
- set @Economy,GetCastleData("aldeg_cas02.gat",2);
- SetCastleData "aldeg_cas02.gat",2,@Economy-5;
- if (GetCastleData("aldeg_cas02.gat",2) < 0) SetCastleData "aldeg_cas02.gat",2,0;
- set @Defence,GetCastleData("aldeg_cas02.gat",3);
- SetCastleData "aldeg_cas02.gat",3,@Defence-5;
- if (GetCastleData("aldeg_cas02.gat",3) < 0) SetCastleData "aldeg_cas02.gat",3,0;
- SetCastleData "aldeg_cas02.gat",1,@GIDa2;
- Announce "Guild Base [" + GetCastleName("aldeg_cas02.gat") + "] has been taken by the [" + GetGuildName(@GIDa2) + "] guild.",0;
- MapAnnounce "aldeg_cas02.gat","The emperium has been destroyed.",17;
- GetCastleData "aldeg_cas02.gat",0,"::OnRecvCastleA02";
- SetCastleData "aldeg_cas02.gat",2,0;
- SetCastleData "aldeg_cas02.gat",3,0;
- SetCastleData "aldeg_cas02.gat",4,0;
- SetCastleData "aldeg_cas02.gat",5,0;
- SetCastleData "aldeg_cas02.gat",6,0;
- SetCastleData "aldeg_cas02.gat",7,0;
- SetCastleData "aldeg_cas02.gat",8,0;
- SetCastleData "aldeg_cas02.gat",9,0;
- SetCastleData "aldeg_cas02.gat",10,0;
- SetCastleData "aldeg_cas02.gat",11,0;
- SetCastleData "aldeg_cas02.gat",12,0;
- SetCastleData "aldeg_cas02.gat",13,0;
- SetCastleData "aldeg_cas02.gat",14,0;
- SetCastleData "aldeg_cas02.gat",15,0;
- SetCastleData "aldeg_cas02.gat",16,0;
- SetCastleData "aldeg_cas02.gat",17,0;
- SetCastleData "aldeg_cas02.gat",18,0;
- SetCastleData "aldeg_cas02.gat",19,0;
- SetCastleData "aldeg_cas02.gat",20,0;
- SetCastleData "aldeg_cas02.gat",21,0;
- SetCastleData "aldeg_cas02.gat",22,0;
- SetCastleData "aldeg_cas02.gat",23,0;
- SetCastleData "aldeg_cas02.gat",24,0;
- SetCastleData "aldeg_cas02.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "aldeg_cas02.gat",GetCastleData("aldeg_cas02.gat",1),6;
- Monster "aldeg_cas02.gat",214,24,"EMPERIUM",1288,1,"Agit_A02::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("aldeg_cas02.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas02.gat",GetCastleData("aldeg_cas02.gat",1),4;
- KillMonster "aldeg_cas02.gat","Agit_A02::OnAgitBreak";
- GvgOff "aldeg_cas02.gat";
- Break;
-OnInit:
-initnpctimer "Agit_A02_Timer";
-}
-
-aldeg_cas02.gat,1,1,1 script Agit_A02_Timer -1,{
-OnTimer500:
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1132,4;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1219,2;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1205,1;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1216,10;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1193,18;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1269,9;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1276,7;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1208,3;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1268,1;
- areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1272,1;
- monster "aldeg_cas02.gat",213,23,"--ja--",1272,1;
- monster "aldeg_cas02.gat",213,23,"--ja--",1270,4;
- monster "aldeg_cas02.gat",213,23,"--ja--",1268,1;
- monster "aldeg_cas02.gat",213,23,"--ja--",1219,1;
- monster "aldeg_cas02.gat",213,23,"--ja--",1276,5;
- Monster "aldeg_cas02.gat",214,24,"EMPERIUM",1288,1,"Agit_A02::OnAgitBreak";
- stopnpctimer "Agit_A02_Timer";
- Break;
- }
-//--------------------------------------------------------------------------------------------------------------------------
-aldeg_cas03.gat,206,32,0 script Agit_A03 -1,{
-OnAgitInit:
- GetCastleData "aldeg_cas03.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "aldeg_cas03.gat",0,"::OnRecvCastleA03";
- Break;
-OnRecvCastleA03:
- RequestGuildInfo GetCastleData("aldeg_cas03.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("aldeg_cas03.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas03.gat",GetCastleData("aldeg_cas03.gat",1),2;
- Monster "aldeg_cas03.gat",206,32,"EMPERIUM",1288,1,"Agit_A03::OnAgitBreak";
- GvgOn "aldeg_cas03.gat";
- Break;
-OnAgitBreak:
- set @GIDa3,getcharid(2);
- if (@GIDa3 <= 0) Break;
- set @Economy,GetCastleData("aldeg_cas03.gat",2);
- SetCastleData "aldeg_cas03.gat",2,@Economy-5;
- if (GetCastleData("aldeg_cas03.gat",2) < 0) SetCastleData "aldeg_cas03.gat",2,0;
- set @Defence,GetCastleData("aldeg_cas03.gat",3);
- SetCastleData "aldeg_cas03.gat",3,@Defence-5;
- if (GetCastleData("aldeg_cas01.gat",3) < 0) SetCastleData "aldeg_cas03.gat",3,0;
- SetCastleData "aldeg_cas03.gat",1,@GIDa3;
- Announce "Guild Base [" + GetCastleName("aldeg_cas03.gat") + "] has been taken by the [" + GetGuildName(@GIDa3) + "] guild.",0;
- MapAnnounce "aldeg_cas03.gat","The emperium has been destroyed.",17;
- GetCastleData "aldeg_cas03.gat",0,"::OnRecvCastleA03";
- SetCastleData "aldeg_cas03.gat",2,0;
- SetCastleData "aldeg_cas03.gat",3,0;
- SetCastleData "aldeg_cas03.gat",4,0;
- SetCastleData "aldeg_cas03.gat",5,0;
- SetCastleData "aldeg_cas03.gat",6,0;
- SetCastleData "aldeg_cas03.gat",7,0;
- SetCastleData "aldeg_cas03.gat",8,0;
- SetCastleData "aldeg_cas03.gat",9,0;
- SetCastleData "aldeg_cas03.gat",10,0;
- SetCastleData "aldeg_cas03.gat",11,0;
- SetCastleData "aldeg_cas03.gat",12,0;
- SetCastleData "aldeg_cas03.gat",13,0;
- SetCastleData "aldeg_cas03.gat",14,0;
- SetCastleData "aldeg_cas03.gat",15,0;
- SetCastleData "aldeg_cas03.gat",16,0;
- SetCastleData "aldeg_cas03.gat",17,0;
- SetCastleData "aldeg_cas03.gat",18,0;
- SetCastleData "aldeg_cas03.gat",19,0;
- SetCastleData "aldeg_cas03.gat",20,0;
- SetCastleData "aldeg_cas03.gat",21,0;
- SetCastleData "aldeg_cas03.gat",22,0;
- SetCastleData "aldeg_cas03.gat",23,0;
- SetCastleData "aldeg_cas03.gat",24,0;
- SetCastleData "aldeg_cas03.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "aldeg_cas03.gat",GetCastleData("aldeg_cas03.gat",1),6;
- Monster "aldeg_cas03.gat",206,32,"EMPERIUM",1288,1,"Agit_A03::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("aldeg_cas03.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas03.gat",GetCastleData("aldeg_cas03.gat",1),4;
- KillMonster "aldeg_cas03.gat","Agit_A03::OnAgitBreak";
- GvgOff "aldeg_cas03.gat";
- Break;
-OnInit:
-initnpctimer "Agit_A03_Timer";
-}
-
-aldeg_cas03.gat,1,1,1 script Agit_A03_Timer -1,{
-OnTimer500:
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1132,4;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1219,2;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1205,1;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1216,10;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1193,18;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1269,9;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1276,7;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1208,3;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1268,1;
- areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1272,1;
- monster "aldeg_cas03.gat",205,31,"--ja--",1272,1;
- monster "aldeg_cas03.gat",205,31,"--ja--",1270,4;
- monster "aldeg_cas03.gat",205,31,"--ja--",1268,1;
- monster "aldeg_cas03.gat",205,31,"--ja--",1219,1;
- monster "aldeg_cas03.gat",205,31,"--ja--",1276,5;
- Monster "aldeg_cas03.gat",206,32,"EMPERIUM",1288,1,"Agit_A03::OnAgitBreak";
- stopnpctimer "Agit_A03_Timer";
- Break;
- }
-//--------------------------------------------------------------------------------------------------------------------------
-aldeg_cas04.gat,36,218,0 script Agit_A04 -1,{
-OnAgitInit:
- GetCastleData "aldeg_cas04.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "aldeg_cas04.gat",0,"::OnRecvCastleA04";
- Break;
-OnRecvCastleA04:
- RequestGuildInfo GetCastleData("aldeg_cas04.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("aldeg_cas04.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas04.gat",GetCastleData("aldeg_cas04.gat",1),2;
- Monster "aldeg_cas04.gat",36,218,"EMPERIUM",1288,1,"Agit_A04::OnAgitBreak";
- GvgOn "aldeg_cas04.gat";
- Break;
-OnAgitBreak:
- set @GIDa4,getcharid(2);
- if (@GIDa4 <= 0) Break;
- set @Economy,GetCastleData("aldeg_cas04.gat",2);
- SetCastleData "aldeg_cas04.gat",2,@Economy-5;
- if (GetCastleData("aldeg_cas04.gat",2) < 0) SetCastleData "aldeg_cas04.gat",2,0;
- set @Defence,GetCastleData("aldeg_cas04.gat",3);
- SetCastleData "aldeg_cas04.gat",3,@Defence-5;
- if (GetCastleData("aldeg_cas04.gat",3) < 0) SetCastleData "aldeg_cas04.gat",3,0;
- SetCastleData "aldeg_cas04.gat",1,@GIDa4;
- Announce "Guild Base [" + GetCastleName("aldeg_cas04.gat") + "] has been taken by the [" + GetGuildName(@GIDa4) + "] guild.",0;
- MapAnnounce "aldeg_cas04.gat","The emperium has been destroyed.",17;
- GetCastleData "aldeg_cas04.gat",0,"::OnRecvCastleA04";
- SetCastleData "aldeg_cas04.gat",2,0;
- SetCastleData "aldeg_cas04.gat",3,0;
- SetCastleData "aldeg_cas04.gat",4,0;
- SetCastleData "aldeg_cas04.gat",5,0;
- SetCastleData "aldeg_cas04.gat",6,0;
- SetCastleData "aldeg_cas04.gat",7,0;
- SetCastleData "aldeg_cas04.gat",8,0;
- SetCastleData "aldeg_cas04.gat",9,0;
- SetCastleData "aldeg_cas04.gat",10,0;
- SetCastleData "aldeg_cas04.gat",11,0;
- SetCastleData "aldeg_cas04.gat",12,0;
- SetCastleData "aldeg_cas04.gat",13,0;
- SetCastleData "aldeg_cas04.gat",14,0;
- SetCastleData "aldeg_cas04.gat",15,0;
- SetCastleData "aldeg_cas04.gat",16,0;
- SetCastleData "aldeg_cas04.gat",17,0;
- SetCastleData "aldeg_cas04.gat",18,0;
- SetCastleData "aldeg_cas04.gat",19,0;
- SetCastleData "aldeg_cas04.gat",20,0;
- SetCastleData "aldeg_cas04.gat",21,0;
- SetCastleData "aldeg_cas04.gat",22,0;
- SetCastleData "aldeg_cas04.gat",23,0;
- SetCastleData "aldeg_cas04.gat",24,0;
- SetCastleData "aldeg_cas04.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "aldeg_cas04.gat",GetCastleData("aldeg_cas04.gat",1),6;
- Monster "aldeg_cas04.gat",36,218,"EMPERIUM",1288,1,"Agit_A04::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("aldeg_cas04.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas04.gat",GetCastleData("aldeg_cas04.gat",1),4;
- KillMonster "aldeg_cas04.gat","Agit_A04::OnAgitBreak";
- GvgOff "aldeg_cas04.gat";
- Break;
-OnInit:
-initnpctimer "Agit_A04_Timer";
-}
-
-aldeg_cas04.gat,1,1,1 script Agit_A04_Timer -1,{
-OnTimer500:
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1132,4;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1219,2;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1205,1;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1216,10;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1193,18;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1269,9;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1276,7;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1208,3;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1268,1;
- areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1272,1;
- monster "aldeg_cas04.gat",36,217,"--ja--",1272,1;
- monster "aldeg_cas04.gat",36,217,"--ja--",1270,4;
- monster "aldeg_cas04.gat",36,217,"--ja--",1268,1;
- monster "aldeg_cas04.gat",36,217,"--ja--",1219,1;
- monster "aldeg_cas04.gat",36,217,"--ja--",1276,5;
- Monster "aldeg_cas04.gat",36,218,"EMPERIUM",1288,1,"Agit_A04::OnAgitBreak";
- stopnpctimer "Agit_A04_Timer";
- Break;
- }
-//--------------------------------------------------------------------------------------------------------------------------
-aldeg_cas05.gat,28,102,0 script Agit_A05 -1,{
-OnAgitInit:
- GetCastleData "aldeg_cas05.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "aldeg_cas05.gat",0,"::OnRecvCastleA05";
- Break;
-OnRecvCastleA05:
- RequestGuildInfo GetCastleData("aldeg_cas05.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("aldeg_cas05.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas05.gat",1),2;
- Monster "aldeg_cas05.gat",28,102,"EMPERIUM",1288,1,"Agit_A05::OnAgitBreak";
- GvgOn "aldeg_cas05.gat";
- Break;
-OnAgitBreak:
- set @GIDa5,getcharid(2);
- if (@GIDa5 <= 0) Break;
- set @Economy,GetCastleData("aldeg_cas05.gat",2);
- SetCastleData "aldeg_cas05.gat",2,@Economy-5;
- if (GetCastleData("aldeg_cas05.gat",2) < 0) SetCastleData "aldeg_cas05.gat",2,0;
- set @Defence,GetCastleData("aldeg_cas05.gat",3);
- SetCastleData "aldeg_cas05.gat",3,@Defence-5;
- if (GetCastleData("aldeg_cas05.gat",3) < 0) SetCastleData "aldeg_cas05.gat",3,0;
- SetCastleData "aldeg_cas05.gat",1,@GIDa5;
- Announce "Guild Base [" + GetCastleName("aldeg_cas05.gat") + "] has been taken by [" + GetGuildName(@GIDa5) + "] guild.",0;
- MapAnnounce "aldeg_cas05.gat","The emperium has been destroyed.",17;
- GetCastleData "aldeg_cas05.gat",0,"::OnRecvCastleA05";
- SetCastleData "aldeg_cas05.gat",2,0;
- SetCastleData "aldeg_cas05.gat",3,0;
- SetCastleData "aldeg_cas05.gat",4,0;
- SetCastleData "aldeg_cas05.gat",5,0;
- SetCastleData "aldeg_cas05.gat",6,0;
- SetCastleData "aldeg_cas05.gat",7,0;
- SetCastleData "aldeg_cas05.gat",8,0;
- SetCastleData "aldeg_cas05.gat",9,0;
- SetCastleData "aldeg_cas05.gat",10,0;
- SetCastleData "aldeg_cas05.gat",11,0;
- SetCastleData "aldeg_cas05.gat",12,0;
- SetCastleData "aldeg_cas05.gat",13,0;
- SetCastleData "aldeg_cas05.gat",14,0;
- SetCastleData "aldeg_cas05.gat",15,0;
- SetCastleData "aldeg_cas05.gat",16,0;
- SetCastleData "aldeg_cas05.gat",17,0;
- SetCastleData "aldeg_cas05.gat",18,0;
- SetCastleData "aldeg_cas05.gat",19,0;
- SetCastleData "aldeg_cas05.gat",20,0;
- SetCastleData "aldeg_cas05.gat",21,0;
- SetCastleData "aldeg_cas05.gat",22,0;
- SetCastleData "aldeg_cas05.gat",23,0;
- SetCastleData "aldeg_cas05.gat",24,0;
- SetCastleData "aldeg_cas05.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas05.gat",1),6;
- Monster "aldeg_cas05.gat",28,102,"EMPERIUM",1288,1,"Agit_A05::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("aldeg_cas05.gat",1) == 0) break;
- MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas05.gat",1),4;
- KillMonster "aldeg_cas05.gat","Agit_A05::OnAgitBreak";
- GvgOff "aldeg_cas05.gat";
- Break;
-OnInit:
-initnpctimer "Agit_A05_Timer";
-}
-
-aldeg_cas05.gat,1,1,1 script Agit_A05_Timer -1,{
-OnTimer500:
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1132,4;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1219,2;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1205,1;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1216,10;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1193,18;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1269,9;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1276,7;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1208,3;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1268,1;
- areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1272,1;
- monster "aldeg_cas05.gat",27,101,"--ja--",1272,1;
- monster "aldeg_cas05.gat",27,101,"--ja--",1270,4;
- monster "aldeg_cas05.gat",27,101,"--ja--",1268,1;
- monster "aldeg_cas05.gat",27,101,"--ja--",1219,1;
- monster "aldeg_cas05.gat",27,101,"--ja--",1276,5;
- Monster "aldeg_cas05.gat",28,102,"EMPERIUM",1288,1,"Agit_A05::OnAgitBreak";
- stopnpctimer "Agit_A05_Timer";
- Break;
- }
-//--------------------------------------------------------------------------------------------------------------------------
+//===== eAthena Script =======================================
+//= War of Emperium - Al de Baran Guild Wars Events
+//===== By: ==================================================
+//= jAthena (1.0)
+//===== Current Version: =====================================
+//= 1.2
+//===== Compatible With: =====================================
+//= eAthena 0.1+; RO Episode 4+
+//===== Description: =========================================
+//= Event Triggers of Al de Baran Guild Wars
+//===== Additional Comments: =================================
+//= 1.1 by Akaru and ho|yAnge|
+//= 1.2 by Akaru (Castle spawn/conquering fix)
+//============================================================
+
+
+aldeg_cas01.gat,216,24,0 script Agit_A01 -1,{
+OnAgitInit:
+ GetCastleData "aldeg_cas01.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "aldeg_cas01.gat",0,"::OnRecvCastleA01";
+ Break;
+OnRecvCastleA01:
+ RequestGuildInfo GetCastleData("aldeg_cas01.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("aldeg_cas01.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),2;
+ Monster "aldeg_cas01.gat",216,24,"EMPERIUM",1288,1,"Agit_A01::OnAgitBreak";
+ GvgOn "aldeg_cas01.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa1,getcharid(2);
+ if (@GIDa1 <= 0) Break;
+ set @Economy,GetCastleData("aldeg_cas01.gat",2);
+ SetCastleData "aldeg_cas01.gat",2,@Economy-5;
+ if (GetCastleData("aldeg_cas01.gat",2) < 0) SetCastleData "aldeg_cas01.gat",2,0;
+ set @Defence,GetCastleData("aldeg_cas01.gat",3);
+ SetCastleData "aldeg_cas01.gat",3,@Defence-5;
+ if (GetCastleData("aldeg_cas01.gat",3) < 0) SetCastleData "aldeg_cas01.gat",3,0;
+ SetCastleData "aldeg_cas01.gat",1,@GIDa1;
+ Announce "Guild Base [" + GetCastleName("aldeg_cas01.gat") + "] has been taken by the [" + GetGuildName(@GIDa1) + "] guild.",0;
+ MapAnnounce "aldeg_cas01.gat","The emperium has been destroyed.",17;
+ GetCastleData "aldeg_cas01.gat",0,"::OnRecvCastleA01";
+ SetCastleData "aldeg_cas01.gat",2,0;
+ SetCastleData "aldeg_cas01.gat",3,0;
+ SetCastleData "aldeg_cas01.gat",4,0;
+ SetCastleData "aldeg_cas01.gat",5,0;
+ SetCastleData "aldeg_cas01.gat",6,0;
+ SetCastleData "aldeg_cas01.gat",7,0;
+ SetCastleData "aldeg_cas01.gat",8,0;
+ SetCastleData "aldeg_cas01.gat",9,0;
+ SetCastleData "aldeg_cas01.gat",10,0;
+ SetCastleData "aldeg_cas01.gat",11,0;
+ SetCastleData "aldeg_cas01.gat",12,0;
+ SetCastleData "aldeg_cas01.gat",13,0;
+ SetCastleData "aldeg_cas01.gat",14,0;
+ SetCastleData "aldeg_cas01.gat",15,0;
+ SetCastleData "aldeg_cas01.gat",16,0;
+ SetCastleData "aldeg_cas01.gat",17,0;
+ SetCastleData "aldeg_cas01.gat",18,0;
+ SetCastleData "aldeg_cas01.gat",19,0;
+ SetCastleData "aldeg_cas01.gat",20,0;
+ SetCastleData "aldeg_cas01.gat",21,0;
+ SetCastleData "aldeg_cas01.gat",22,0;
+ SetCastleData "aldeg_cas01.gat",23,0;
+ SetCastleData "aldeg_cas01.gat",24,0;
+ SetCastleData "aldeg_cas01.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),6;
+ Monster "aldeg_cas01.gat",216,24,"EMPERIUM",1288,1,"Agit_A01::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("aldeg_cas01.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas01.gat",GetCastleData("aldeg_cas01.gat",1),4;
+ KillMonster "aldeg_cas01.gat","Agit_A01::OnAgitBreak";
+ GvgOff "aldeg_cas01.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_A01_Timer";
+}
+
+aldeg_cas01.gat,1,1,1 script Agit_A01_Timer -1,{
+OnTimer500:
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1132,4;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1219,2;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1205,1;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1216,10;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1193,17;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1269,9;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1276,7;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1208,3;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1268,1;
+ areamonster "aldeg_cas01.gat",0,0,300,300,"--ja--",1272,1;
+ monster "aldeg_cas01.gat",216,23,"--ja--",1272,1;
+ monster "aldeg_cas01.gat",216,23,"--ja--",1270,4;
+ monster "aldeg_cas01.gat",216,23,"--ja--",1268,1;
+ monster "aldeg_cas01.gat",216,23,"--ja--",1219,1;
+ monster "aldeg_cas01.gat",216,23,"--ja--",1276,5;
+ Monster "aldeg_cas01.gat",216,24,"EMPERIUM",1288,1,"Agit_A01::OnAgitBreak";
+ stopnpctimer "Agit_A01_Timer";
+ Break;
+ }
+//--------------------------------------------------------------------------------------------------------------------------
+aldeg_cas02.gat,214,24,0 script Agit_A02 -1,{
+OnAgitInit:
+ GetCastleData "aldeg_cas02.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "aldeg_cas02.gat",0,"::OnRecvCastleA02";
+ Break;
+OnRecvCastleA02:
+ RequestGuildInfo GetCastleData("aldeg_cas02.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("aldeg_cas02.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas02.gat",GetCastleData("aldeg_cas02.gat",1),2;
+ Monster "aldeg_cas02.gat",214,24,"EMPERIUM",1288,1,"Agit_A02::OnAgitBreak";
+ GvgOn "aldeg_cas02.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa2,getcharid(2);
+ if (@GIDa2 <= 0) Break;
+ set @Economy,GetCastleData("aldeg_cas02.gat",2);
+ SetCastleData "aldeg_cas02.gat",2,@Economy-5;
+ if (GetCastleData("aldeg_cas02.gat",2) < 0) SetCastleData "aldeg_cas02.gat",2,0;
+ set @Defence,GetCastleData("aldeg_cas02.gat",3);
+ SetCastleData "aldeg_cas02.gat",3,@Defence-5;
+ if (GetCastleData("aldeg_cas02.gat",3) < 0) SetCastleData "aldeg_cas02.gat",3,0;
+ SetCastleData "aldeg_cas02.gat",1,@GIDa2;
+ Announce "Guild Base [" + GetCastleName("aldeg_cas02.gat") + "] has been taken by the [" + GetGuildName(@GIDa2) + "] guild.",0;
+ MapAnnounce "aldeg_cas02.gat","The emperium has been destroyed.",17;
+ GetCastleData "aldeg_cas02.gat",0,"::OnRecvCastleA02";
+ SetCastleData "aldeg_cas02.gat",2,0;
+ SetCastleData "aldeg_cas02.gat",3,0;
+ SetCastleData "aldeg_cas02.gat",4,0;
+ SetCastleData "aldeg_cas02.gat",5,0;
+ SetCastleData "aldeg_cas02.gat",6,0;
+ SetCastleData "aldeg_cas02.gat",7,0;
+ SetCastleData "aldeg_cas02.gat",8,0;
+ SetCastleData "aldeg_cas02.gat",9,0;
+ SetCastleData "aldeg_cas02.gat",10,0;
+ SetCastleData "aldeg_cas02.gat",11,0;
+ SetCastleData "aldeg_cas02.gat",12,0;
+ SetCastleData "aldeg_cas02.gat",13,0;
+ SetCastleData "aldeg_cas02.gat",14,0;
+ SetCastleData "aldeg_cas02.gat",15,0;
+ SetCastleData "aldeg_cas02.gat",16,0;
+ SetCastleData "aldeg_cas02.gat",17,0;
+ SetCastleData "aldeg_cas02.gat",18,0;
+ SetCastleData "aldeg_cas02.gat",19,0;
+ SetCastleData "aldeg_cas02.gat",20,0;
+ SetCastleData "aldeg_cas02.gat",21,0;
+ SetCastleData "aldeg_cas02.gat",22,0;
+ SetCastleData "aldeg_cas02.gat",23,0;
+ SetCastleData "aldeg_cas02.gat",24,0;
+ SetCastleData "aldeg_cas02.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "aldeg_cas02.gat",GetCastleData("aldeg_cas02.gat",1),6;
+ Monster "aldeg_cas02.gat",214,24,"EMPERIUM",1288,1,"Agit_A02::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("aldeg_cas02.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas02.gat",GetCastleData("aldeg_cas02.gat",1),4;
+ KillMonster "aldeg_cas02.gat","Agit_A02::OnAgitBreak";
+ GvgOff "aldeg_cas02.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_A02_Timer";
+}
+
+aldeg_cas02.gat,1,1,1 script Agit_A02_Timer -1,{
+OnTimer500:
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1132,4;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1219,2;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1205,1;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1216,10;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1193,18;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1269,9;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1276,7;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1208,3;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1268,1;
+ areamonster "aldeg_cas02.gat",0,0,300,300,"--ja--",1272,1;
+ monster "aldeg_cas02.gat",213,23,"--ja--",1272,1;
+ monster "aldeg_cas02.gat",213,23,"--ja--",1270,4;
+ monster "aldeg_cas02.gat",213,23,"--ja--",1268,1;
+ monster "aldeg_cas02.gat",213,23,"--ja--",1219,1;
+ monster "aldeg_cas02.gat",213,23,"--ja--",1276,5;
+ Monster "aldeg_cas02.gat",214,24,"EMPERIUM",1288,1,"Agit_A02::OnAgitBreak";
+ stopnpctimer "Agit_A02_Timer";
+ Break;
+ }
+//--------------------------------------------------------------------------------------------------------------------------
+aldeg_cas03.gat,206,32,0 script Agit_A03 -1,{
+OnAgitInit:
+ GetCastleData "aldeg_cas03.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "aldeg_cas03.gat",0,"::OnRecvCastleA03";
+ Break;
+OnRecvCastleA03:
+ RequestGuildInfo GetCastleData("aldeg_cas03.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("aldeg_cas03.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas03.gat",GetCastleData("aldeg_cas03.gat",1),2;
+ Monster "aldeg_cas03.gat",206,32,"EMPERIUM",1288,1,"Agit_A03::OnAgitBreak";
+ GvgOn "aldeg_cas03.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa3,getcharid(2);
+ if (@GIDa3 <= 0) Break;
+ set @Economy,GetCastleData("aldeg_cas03.gat",2);
+ SetCastleData "aldeg_cas03.gat",2,@Economy-5;
+ if (GetCastleData("aldeg_cas03.gat",2) < 0) SetCastleData "aldeg_cas03.gat",2,0;
+ set @Defence,GetCastleData("aldeg_cas03.gat",3);
+ SetCastleData "aldeg_cas03.gat",3,@Defence-5;
+ if (GetCastleData("aldeg_cas01.gat",3) < 0) SetCastleData "aldeg_cas03.gat",3,0;
+ SetCastleData "aldeg_cas03.gat",1,@GIDa3;
+ Announce "Guild Base [" + GetCastleName("aldeg_cas03.gat") + "] has been taken by the [" + GetGuildName(@GIDa3) + "] guild.",0;
+ MapAnnounce "aldeg_cas03.gat","The emperium has been destroyed.",17;
+ GetCastleData "aldeg_cas03.gat",0,"::OnRecvCastleA03";
+ SetCastleData "aldeg_cas03.gat",2,0;
+ SetCastleData "aldeg_cas03.gat",3,0;
+ SetCastleData "aldeg_cas03.gat",4,0;
+ SetCastleData "aldeg_cas03.gat",5,0;
+ SetCastleData "aldeg_cas03.gat",6,0;
+ SetCastleData "aldeg_cas03.gat",7,0;
+ SetCastleData "aldeg_cas03.gat",8,0;
+ SetCastleData "aldeg_cas03.gat",9,0;
+ SetCastleData "aldeg_cas03.gat",10,0;
+ SetCastleData "aldeg_cas03.gat",11,0;
+ SetCastleData "aldeg_cas03.gat",12,0;
+ SetCastleData "aldeg_cas03.gat",13,0;
+ SetCastleData "aldeg_cas03.gat",14,0;
+ SetCastleData "aldeg_cas03.gat",15,0;
+ SetCastleData "aldeg_cas03.gat",16,0;
+ SetCastleData "aldeg_cas03.gat",17,0;
+ SetCastleData "aldeg_cas03.gat",18,0;
+ SetCastleData "aldeg_cas03.gat",19,0;
+ SetCastleData "aldeg_cas03.gat",20,0;
+ SetCastleData "aldeg_cas03.gat",21,0;
+ SetCastleData "aldeg_cas03.gat",22,0;
+ SetCastleData "aldeg_cas03.gat",23,0;
+ SetCastleData "aldeg_cas03.gat",24,0;
+ SetCastleData "aldeg_cas03.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "aldeg_cas03.gat",GetCastleData("aldeg_cas03.gat",1),6;
+ Monster "aldeg_cas03.gat",206,32,"EMPERIUM",1288,1,"Agit_A03::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("aldeg_cas03.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas03.gat",GetCastleData("aldeg_cas03.gat",1),4;
+ KillMonster "aldeg_cas03.gat","Agit_A03::OnAgitBreak";
+ GvgOff "aldeg_cas03.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_A03_Timer";
+}
+
+aldeg_cas03.gat,1,1,1 script Agit_A03_Timer -1,{
+OnTimer500:
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1132,4;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1219,2;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1205,1;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1216,10;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1193,18;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1269,9;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1276,7;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1208,3;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1268,1;
+ areamonster "aldeg_cas03.gat",0,0,300,300,"--ja--",1272,1;
+ monster "aldeg_cas03.gat",205,31,"--ja--",1272,1;
+ monster "aldeg_cas03.gat",205,31,"--ja--",1270,4;
+ monster "aldeg_cas03.gat",205,31,"--ja--",1268,1;
+ monster "aldeg_cas03.gat",205,31,"--ja--",1219,1;
+ monster "aldeg_cas03.gat",205,31,"--ja--",1276,5;
+ Monster "aldeg_cas03.gat",206,32,"EMPERIUM",1288,1,"Agit_A03::OnAgitBreak";
+ stopnpctimer "Agit_A03_Timer";
+ Break;
+ }
+//--------------------------------------------------------------------------------------------------------------------------
+aldeg_cas04.gat,36,218,0 script Agit_A04 -1,{
+OnAgitInit:
+ GetCastleData "aldeg_cas04.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "aldeg_cas04.gat",0,"::OnRecvCastleA04";
+ Break;
+OnRecvCastleA04:
+ RequestGuildInfo GetCastleData("aldeg_cas04.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("aldeg_cas04.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas04.gat",GetCastleData("aldeg_cas04.gat",1),2;
+ Monster "aldeg_cas04.gat",36,218,"EMPERIUM",1288,1,"Agit_A04::OnAgitBreak";
+ GvgOn "aldeg_cas04.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa4,getcharid(2);
+ if (@GIDa4 <= 0) Break;
+ set @Economy,GetCastleData("aldeg_cas04.gat",2);
+ SetCastleData "aldeg_cas04.gat",2,@Economy-5;
+ if (GetCastleData("aldeg_cas04.gat",2) < 0) SetCastleData "aldeg_cas04.gat",2,0;
+ set @Defence,GetCastleData("aldeg_cas04.gat",3);
+ SetCastleData "aldeg_cas04.gat",3,@Defence-5;
+ if (GetCastleData("aldeg_cas04.gat",3) < 0) SetCastleData "aldeg_cas04.gat",3,0;
+ SetCastleData "aldeg_cas04.gat",1,@GIDa4;
+ Announce "Guild Base [" + GetCastleName("aldeg_cas04.gat") + "] has been taken by the [" + GetGuildName(@GIDa4) + "] guild.",0;
+ MapAnnounce "aldeg_cas04.gat","The emperium has been destroyed.",17;
+ GetCastleData "aldeg_cas04.gat",0,"::OnRecvCastleA04";
+ SetCastleData "aldeg_cas04.gat",2,0;
+ SetCastleData "aldeg_cas04.gat",3,0;
+ SetCastleData "aldeg_cas04.gat",4,0;
+ SetCastleData "aldeg_cas04.gat",5,0;
+ SetCastleData "aldeg_cas04.gat",6,0;
+ SetCastleData "aldeg_cas04.gat",7,0;
+ SetCastleData "aldeg_cas04.gat",8,0;
+ SetCastleData "aldeg_cas04.gat",9,0;
+ SetCastleData "aldeg_cas04.gat",10,0;
+ SetCastleData "aldeg_cas04.gat",11,0;
+ SetCastleData "aldeg_cas04.gat",12,0;
+ SetCastleData "aldeg_cas04.gat",13,0;
+ SetCastleData "aldeg_cas04.gat",14,0;
+ SetCastleData "aldeg_cas04.gat",15,0;
+ SetCastleData "aldeg_cas04.gat",16,0;
+ SetCastleData "aldeg_cas04.gat",17,0;
+ SetCastleData "aldeg_cas04.gat",18,0;
+ SetCastleData "aldeg_cas04.gat",19,0;
+ SetCastleData "aldeg_cas04.gat",20,0;
+ SetCastleData "aldeg_cas04.gat",21,0;
+ SetCastleData "aldeg_cas04.gat",22,0;
+ SetCastleData "aldeg_cas04.gat",23,0;
+ SetCastleData "aldeg_cas04.gat",24,0;
+ SetCastleData "aldeg_cas04.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "aldeg_cas04.gat",GetCastleData("aldeg_cas04.gat",1),6;
+ Monster "aldeg_cas04.gat",36,218,"EMPERIUM",1288,1,"Agit_A04::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("aldeg_cas04.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas04.gat",GetCastleData("aldeg_cas04.gat",1),4;
+ KillMonster "aldeg_cas04.gat","Agit_A04::OnAgitBreak";
+ GvgOff "aldeg_cas04.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_A04_Timer";
+}
+
+aldeg_cas04.gat,1,1,1 script Agit_A04_Timer -1,{
+OnTimer500:
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1132,4;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1219,2;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1205,1;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1216,10;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1193,18;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1269,9;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1276,7;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1208,3;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1268,1;
+ areamonster "aldeg_cas04.gat",0,0,300,300,"--ja--",1272,1;
+ monster "aldeg_cas04.gat",36,217,"--ja--",1272,1;
+ monster "aldeg_cas04.gat",36,217,"--ja--",1270,4;
+ monster "aldeg_cas04.gat",36,217,"--ja--",1268,1;
+ monster "aldeg_cas04.gat",36,217,"--ja--",1219,1;
+ monster "aldeg_cas04.gat",36,217,"--ja--",1276,5;
+ Monster "aldeg_cas04.gat",36,218,"EMPERIUM",1288,1,"Agit_A04::OnAgitBreak";
+ stopnpctimer "Agit_A04_Timer";
+ Break;
+ }
+//--------------------------------------------------------------------------------------------------------------------------
+aldeg_cas05.gat,28,102,0 script Agit_A05 -1,{
+OnAgitInit:
+ GetCastleData "aldeg_cas05.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "aldeg_cas05.gat",0,"::OnRecvCastleA05";
+ Break;
+OnRecvCastleA05:
+ RequestGuildInfo GetCastleData("aldeg_cas05.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("aldeg_cas05.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas05.gat",1),2;
+ Monster "aldeg_cas05.gat",28,102,"EMPERIUM",1288,1,"Agit_A05::OnAgitBreak";
+ GvgOn "aldeg_cas05.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa5,getcharid(2);
+ if (@GIDa5 <= 0) Break;
+ set @Economy,GetCastleData("aldeg_cas05.gat",2);
+ SetCastleData "aldeg_cas05.gat",2,@Economy-5;
+ if (GetCastleData("aldeg_cas05.gat",2) < 0) SetCastleData "aldeg_cas05.gat",2,0;
+ set @Defence,GetCastleData("aldeg_cas05.gat",3);
+ SetCastleData "aldeg_cas05.gat",3,@Defence-5;
+ if (GetCastleData("aldeg_cas05.gat",3) < 0) SetCastleData "aldeg_cas05.gat",3,0;
+ SetCastleData "aldeg_cas05.gat",1,@GIDa5;
+ Announce "Guild Base [" + GetCastleName("aldeg_cas05.gat") + "] has been taken by [" + GetGuildName(@GIDa5) + "] guild.",0;
+ MapAnnounce "aldeg_cas05.gat","The emperium has been destroyed.",17;
+ GetCastleData "aldeg_cas05.gat",0,"::OnRecvCastleA05";
+ SetCastleData "aldeg_cas05.gat",2,0;
+ SetCastleData "aldeg_cas05.gat",3,0;
+ SetCastleData "aldeg_cas05.gat",4,0;
+ SetCastleData "aldeg_cas05.gat",5,0;
+ SetCastleData "aldeg_cas05.gat",6,0;
+ SetCastleData "aldeg_cas05.gat",7,0;
+ SetCastleData "aldeg_cas05.gat",8,0;
+ SetCastleData "aldeg_cas05.gat",9,0;
+ SetCastleData "aldeg_cas05.gat",10,0;
+ SetCastleData "aldeg_cas05.gat",11,0;
+ SetCastleData "aldeg_cas05.gat",12,0;
+ SetCastleData "aldeg_cas05.gat",13,0;
+ SetCastleData "aldeg_cas05.gat",14,0;
+ SetCastleData "aldeg_cas05.gat",15,0;
+ SetCastleData "aldeg_cas05.gat",16,0;
+ SetCastleData "aldeg_cas05.gat",17,0;
+ SetCastleData "aldeg_cas05.gat",18,0;
+ SetCastleData "aldeg_cas05.gat",19,0;
+ SetCastleData "aldeg_cas05.gat",20,0;
+ SetCastleData "aldeg_cas05.gat",21,0;
+ SetCastleData "aldeg_cas05.gat",22,0;
+ SetCastleData "aldeg_cas05.gat",23,0;
+ SetCastleData "aldeg_cas05.gat",24,0;
+ SetCastleData "aldeg_cas05.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas05.gat",1),6;
+ Monster "aldeg_cas05.gat",28,102,"EMPERIUM",1288,1,"Agit_A05::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("aldeg_cas05.gat",1) == 0) break;
+ MapRespawnGuildID "aldeg_cas05.gat",GetCastleData("aldeg_cas05.gat",1),4;
+ KillMonster "aldeg_cas05.gat","Agit_A05::OnAgitBreak";
+ GvgOff "aldeg_cas05.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_A05_Timer";
+}
+
+aldeg_cas05.gat,1,1,1 script Agit_A05_Timer -1,{
+OnTimer500:
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1132,4;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1219,2;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1205,1;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1216,10;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1193,18;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1269,9;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1276,7;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1208,3;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1268,1;
+ areamonster "aldeg_cas05.gat",0,0,300,300,"--ja--",1272,1;
+ monster "aldeg_cas05.gat",27,101,"--ja--",1272,1;
+ monster "aldeg_cas05.gat",27,101,"--ja--",1270,4;
+ monster "aldeg_cas05.gat",27,101,"--ja--",1268,1;
+ monster "aldeg_cas05.gat",27,101,"--ja--",1219,1;
+ monster "aldeg_cas05.gat",27,101,"--ja--",1276,5;
+ Monster "aldeg_cas05.gat",28,102,"EMPERIUM",1288,1,"Agit_A05::OnAgitBreak";
+ stopnpctimer "Agit_A05_Timer";
+ Break;
+ }
+//--------------------------------------------------------------------------------------------------------------------------