summaryrefslogtreecommitdiff
path: root/npc/guild/old/ev_agit_gefg.txt
diff options
context:
space:
mode:
authoramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-14 16:18:26 +0000
committeramber <amber@54d463be-8e91-2dee-dedb-b68131a5f0ec>2004-11-14 16:18:26 +0000
commit581475bc6416790765c498aa3d611f6868ffb64a (patch)
tree347ebf88eaa76e50488f23989d67cad834f3c9b1 /npc/guild/old/ev_agit_gefg.txt
parent600362764ce348c5c9de96eababff2e08bb90d4a (diff)
downloadhercules-581475bc6416790765c498aa3d611f6868ffb64a.tar.gz
hercules-581475bc6416790765c498aa3d611f6868ffb64a.tar.bz2
hercules-581475bc6416790765c498aa3d611f6868ffb64a.tar.xz
hercules-581475bc6416790765c498aa3d611f6868ffb64a.zip
Fixed some file types
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/athena@172 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild/old/ev_agit_gefg.txt')
-rw-r--r--npc/guild/old/ev_agit_gefg.txt928
1 files changed, 464 insertions, 464 deletions
diff --git a/npc/guild/old/ev_agit_gefg.txt b/npc/guild/old/ev_agit_gefg.txt
index bcb6640ac..684491760 100644
--- a/npc/guild/old/ev_agit_gefg.txt
+++ b/npc/guild/old/ev_agit_gefg.txt
@@ -1,464 +1,464 @@
-//===== eAthena Script =======================================
-//= War of Emperium - Geffen Guild Wars Events
-//===== By: ==================================================
-//= jAthena (1.0)
-//===== Current Version: =====================================
-//= 1.2
-//===== Compatible With: =====================================
-//= eAthena 0.1+; RO Episode 4+
-//===== Description: =========================================
-//= Event Triggers of Geffen Guild Wars
-//===== Additional Comments: =================================
-//= 1.1 by Akaru and ho|yAnge|
-//= 1.2 by Akaru (Castle spawn/conquering fix)
-//============================================================
-
-
-gefg_cas01.gat,198,182,0 script Agit_B01 -1,{
-OnAgitInit:
- GetCastleData "gefg_cas01.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "gefg_cas01.gat",0,"::OnRecvCastleG01";
- Break;
-OnRecvCastleG01:
- RequestGuildInfo GetCastleData("gefg_cas01.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("gefg_cas01.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas01.gat",GetCastleData("gefg_cas01.gat",1),2;
- Monster "gefg_cas01.gat",198,182,"EMPERIUM",1288,1,"Agit_B01::OnAgitBreak";
- GvgOn "gefg_cas01.gat";
- Break;
-OnAgitBreak:
- set @GIDa1,getcharid(2);
- if (@GIDa1 <= 0) Break;
- set @Economy,GetCastleData("gefg_cas01.gat",2);
- SetCastleData "gefg_cas01.gat",2,@Economy-5;
- if (GetCastleData("gefg_cas01.gat",2) < 0) SetCastleData "gefg_cas01.gat",2,0;
- set @Defence,GetCastleData("gefg_cas01.gat",3);
- SetCastleData "gefg_cas01.gat",3,@Defence-5;
- if (GetCastleData("gefg_cas01.gat",3) < 0) SetCastleData "gefg_cas01.gat",3,0;
- SetCastleData "gefg_cas01.gat",1,@GIDa1;
- Announce "Guild Base [" + GetCastleName("gefg_cas01.gat") + "] has been taken by the [" + GetGuildName(@GIDa1) + "] guild.",0;
- MapAnnounce "gefg_cas01.gat","The emperium has been destroyed.",17;
- GetCastleData "gefg_cas01.gat",0,"::OnRecvCastleG01";
- SetCastleData "gefg_cas01.gat",2,0;
- SetCastleData "gefg_cas01.gat",3,0;
- SetCastleData "gefg_cas01.gat",4,0;
- SetCastleData "gefg_cas01.gat",5,0;
- SetCastleData "gefg_cas01.gat",6,0;
- SetCastleData "gefg_cas01.gat",7,0;
- SetCastleData "gefg_cas01.gat",8,0;
- SetCastleData "gefg_cas01.gat",9,0;
- SetCastleData "gefg_cas01.gat",10,0;
- SetCastleData "gefg_cas01.gat",11,0;
- SetCastleData "gefg_cas01.gat",12,0;
- SetCastleData "gefg_cas01.gat",13,0;
- SetCastleData "gefg_cas01.gat",14,0;
- SetCastleData "gefg_cas01.gat",15,0;
- SetCastleData "gefg_cas01.gat",16,0;
- SetCastleData "gefg_cas01.gat",17,0;
- SetCastleData "gefg_cas01.gat",18,0;
- SetCastleData "gefg_cas01.gat",19,0;
- SetCastleData "gefg_cas01.gat",20,0;
- SetCastleData "gefg_cas01.gat",21,0;
- SetCastleData "gefg_cas01.gat",22,0;
- SetCastleData "gefg_cas01.gat",23,0;
- SetCastleData "gefg_cas01.gat",24,0;
- SetCastleData "gefg_cas01.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "gefg_cas01.gat",GetCastleData("gefg_cas01.gat",1),6;
- Monster "gefg_cas01.gat",198,182,"EMPERIUM",1288,1,"Agit_B01::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("gefg_cas01.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas01.gat",GetCastleData("gefg_cas01.gat",1),4;
- KillMonster "gefg_cas01.gat","Agit_B01::OnAgitBreak";
- GvgOff "gefg_cas01.gat";
- Break;
-OnInit:
-initnpctimer "Agit_B01_Timer";
-}
-
-gefg_cas01.gat,1,1,1 script Agit_B01_Timer -1,{
-OnTimer500:
- if (GetCastleData("gefg_cas01.gat",1) != 0) break;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1263,11;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1102,10;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1130,10;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1140,20;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1163,9;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1219,1;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1150,1;
- areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1159,1;
- monster "gefg_cas01.gat",197,181,"--ja--",1203,1;
- monster "gefg_cas01.gat",197,181,"--ja--",1087,1;
- monster "gefg_cas01.gat",197,181,"--ja--",1213,10;
- monster "gefg_cas01.gat",197,181,"--ja--",1189,10;
- monster "gefg_cas01.gat",198,182,"EMPERIUM",1288,1,"Agit_B01::OnAgitBreak";
- stopnpctimer "Agit_B01_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
-gefg_cas02.gat,176,178,0 script Agit_B02 -1,{
-OnAgitInit:
- GetCastleData "gefg_cas02.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "gefg_cas02.gat",0,"::OnRecvCastleG02";
- Break;
-OnRecvCastleG02:
- RequestGuildInfo GetCastleData("gefg_cas02.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("gefg_cas02.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas02.gat",GetCastleData("gefg_cas02.gat",1),2;
- Monster "gefg_cas02.gat",176,178,"EMPERIUM",1288,1,"Agit_B02::OnAgitBreak";
- GvgOn "gefg_cas02.gat";
- Break;
-OnAgitBreak:
- set @GIDa2,getcharid(2);
- if (@GIDa2 <= 0) Break;
- set @Economy,GetCastleData("gefg_cas02.gat",2);
- SetCastleData "gefg_cas02.gat",2,@Economy-5;
- if (GetCastleData("gefg_cas02.gat",2) < 0) SetCastleData "gefg_cas02.gat",2,0;
- set @Defence,GetCastleData("gefg_cas02.gat",3);
- SetCastleData "gefg_cas02.gat",3,@Defence-5;
- if (GetCastleData("gefg_cas02.gat",3) < 0) SetCastleData "gefg_cas02.gat",3,0;
- SetCastleData "gefg_cas02.gat",1,@GIDa2;
- Announce "Guild Base [" + GetCastleName("gefg_cas02.gat") + "] has been taken by the [" + GetGuildName(@GIDa2) + "] guild.",0;
- MapAnnounce "gefg_cas02.gat","The emperium has been destroyed.",17;
- GetCastleData "gefg_cas02.gat",0,"::OnRecvCastleG02";
- SetCastleData "gefg_cas02.gat",2,0;
- SetCastleData "gefg_cas02.gat",3,0;
- SetCastleData "gefg_cas02.gat",4,0;
- SetCastleData "gefg_cas02.gat",5,0;
- SetCastleData "gefg_cas02.gat",6,0;
- SetCastleData "gefg_cas02.gat",7,0;
- SetCastleData "gefg_cas02.gat",8,0;
- SetCastleData "gefg_cas02.gat",9,0;
- SetCastleData "gefg_cas02.gat",10,0;
- SetCastleData "gefg_cas02.gat",11,0;
- SetCastleData "gefg_cas02.gat",12,0;
- SetCastleData "gefg_cas02.gat",13,0;
- SetCastleData "gefg_cas02.gat",14,0;
- SetCastleData "gefg_cas02.gat",15,0;
- SetCastleData "gefg_cas02.gat",16,0;
- SetCastleData "gefg_cas02.gat",17,0;
- SetCastleData "gefg_cas02.gat",18,0;
- SetCastleData "gefg_cas02.gat",19,0;
- SetCastleData "gefg_cas02.gat",20,0;
- SetCastleData "gefg_cas02.gat",21,0;
- SetCastleData "gefg_cas02.gat",22,0;
- SetCastleData "gefg_cas02.gat",23,0;
- SetCastleData "gefg_cas02.gat",24,0;
- SetCastleData "gefg_cas02.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "gefg_cas02.gat",GetCastleData("gefg_cas02.gat",1),6;
- Monster "gefg_cas02.gat",176,178,"EMPERIUM",1288,1,"Agit_B02::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("gefg_cas02.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas02.gat",GetCastleData("gefg_cas02.gat",1),4;
- KillMonster "gefg_cas02.gat","Agit_B02::OnAgitBreak";
- GvgOff "gefg_cas02.gat";
- Break;
-OnInit:
-initnpctimer "Agit_B02_Timer";
-}
-
-gefg_cas02.gat,1,1,1 script Agit_B02_Timer -1,{
-OnTimer500:
- if (GetCastleData("gefg_cas02.gat",1) != 0) break;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1263,11;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1102,10;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1130,10;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1140,20;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1163,9;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1219,1;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1150,1;
- areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1159,1;
- monster "gefg_cas02.gat",176,178,"--ja--",1203,1;
- monster "gefg_cas02.gat",176,178,"--ja--",1087,1;
- monster "gefg_cas02.gat",176,178,"--ja--",1213,7;
- monster "gefg_cas02.gat",176,178,"--ja--",1189,7;
- Monster "gefg_cas02.gat",176,178,"EMPERIUM",1288,1,"Agit_B02::OnAgitBreak";
- stopnpctimer "Agit_B02_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
-gefg_cas03.gat,245,167,0 script Agit_B03 -1,{
-OnAgitInit:
- GetCastleData "gefg_cas03.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "gefg_cas03.gat",0,"::OnRecvCastleG03";
- Break;
-OnRecvCastleG03:
- RequestGuildInfo GetCastleData("gefg_cas03.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("gefg_cas03.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas03.gat",GetCastleData("gefg_cas03.gat",1),2;
- Monster "gefg_cas03.gat",245,167,"EMPERIUM",1288,1,"Agit_B03::OnAgitBreak";
- GvgOn "gefg_cas03.gat";
- Break;
-OnAgitBreak:
- set @GIDa3,getcharid(2);
- if (@GIDa3 <= 0) Break;
- set @Economy,GetCastleData("gefg_cas03.gat",2);
- SetCastleData "gefg_cas03.gat",2,@Economy-5;
- if (GetCastleData("gefg_cas03.gat",2) < 0) SetCastleData "gefg_cas03.gat",2,0;
- set @Defence,GetCastleData("gefg_cas03.gat",3);
- SetCastleData "gefg_cas03.gat",3,@Defence-5;
- if (GetCastleData("gefg_cas01.gat",3) < 0) SetCastleData "gefg_cas03.gat",3,0;
- SetCastleData "gefg_cas03.gat",1,@GIDa3;
- Announce "Guild Base [" + GetCastleName("gefg_cas03.gat") + "] has been taken by the [" + GetGuildName(@GIDa3) + "] guild.",0;
- MapAnnounce "gefg_cas03.gat","The emperium has been destroyed.",17;
- GetCastleData "gefg_cas03.gat",0,"::OnRecvCastleG03";
- SetCastleData "gefg_cas03.gat",2,0;
- SetCastleData "gefg_cas03.gat",3,0;
- SetCastleData "gefg_cas03.gat",4,0;
- SetCastleData "gefg_cas03.gat",5,0;
- SetCastleData "gefg_cas03.gat",6,0;
- SetCastleData "gefg_cas03.gat",7,0;
- SetCastleData "gefg_cas03.gat",8,0;
- SetCastleData "gefg_cas03.gat",9,0;
- SetCastleData "gefg_cas03.gat",10,0;
- SetCastleData "gefg_cas03.gat",11,0;
- SetCastleData "gefg_cas03.gat",12,0;
- SetCastleData "gefg_cas03.gat",13,0;
- SetCastleData "gefg_cas03.gat",14,0;
- SetCastleData "gefg_cas03.gat",15,0;
- SetCastleData "gefg_cas03.gat",16,0;
- SetCastleData "gefg_cas03.gat",17,0;
- SetCastleData "gefg_cas03.gat",18,0;
- SetCastleData "gefg_cas03.gat",19,0;
- SetCastleData "gefg_cas03.gat",20,0;
- SetCastleData "gefg_cas03.gat",21,0;
- SetCastleData "gefg_cas03.gat",22,0;
- SetCastleData "gefg_cas03.gat",23,0;
- SetCastleData "gefg_cas03.gat",24,0;
- SetCastleData "gefg_cas03.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "gefg_cas03.gat",GetCastleData("gefg_cas03.gat",1),6;
- Monster "gefg_cas03.gat",245,167,"EMPERIUM",1288,1,"Agit_B03::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("gefg_cas03.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas03.gat",GetCastleData("gefg_cas03.gat",1),4;
- KillMonster "gefg_cas03.gat","Agit_B03::OnAgitBreak";
- GvgOff "gefg_cas03.gat";
- Break;
-OnInit:
-initnpctimer "Agit_B03_Timer";
-}
-
-gefg_cas03.gat,1,1,1 script Agit_B03_Timer -1,{
-OnTimer500:
- if (GetCastleData("gefg_cas03.gat",1) != 0) break;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1263,11;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1102,10;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1130,10;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1140,20;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1163,9;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1219,1;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1150,1;
- areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1159,1;
- monster "gefg_cas03.gat",244,166,"--ja--",1203,1;
- monster "gefg_cas03.gat",244,166,"--ja--",1087,1;
- monster "gefg_cas03.gat",244,166,"--ja--",1213,7;
- monster "gefg_cas03.gat",244,166,"--ja--",1189,7;
- Monster "gefg_cas03.gat",245,167,"EMPERIUM",1288,1,"Agit_B03::OnAgitBreak";
- stopnpctimer "Agit_B03_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
-gefg_cas04.gat,174,178,0 script Agit_B04 -1,{
-OnAgitInit:
- GetCastleData "gefg_cas04.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "gefg_cas04.gat",0,"::OnRecvCastleG04";
- Break;
-OnRecvCastleG04:
- RequestGuildInfo GetCastleData("gefg_cas04.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("gefg_cas04.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas04.gat",GetCastleData("gefg_cas04.gat",1),2;
- Monster "gefg_cas04.gat",174,178,"EMPERIUM",1288,1,"Agit_B04::OnAgitBreak";
- GvgOn "gefg_cas04.gat";
- Break;
-OnAgitBreak:
- set @GIDa4,getcharid(2);
- if (@GIDa4 <= 0) Break;
- set @Economy,GetCastleData("gefg_cas04.gat",2);
- SetCastleData "gefg_cas04.gat",2,@Economy-5;
- if (GetCastleData("gefg_cas04.gat",2) < 0) SetCastleData "gefg_cas04.gat",2,0;
- set @Defence,GetCastleData("gefg_cas04.gat",3);
- SetCastleData "gefg_cas04.gat",3,@Defence-5;
- if (GetCastleData("gefg_cas04.gat",3) < 0) SetCastleData "gefg_cas04.gat",3,0;
- SetCastleData "gefg_cas04.gat",1,@GIDa4;
- Announce "Guild Base [" + GetCastleName("gefg_cas04.gat") + "] has been taken by the [" + GetGuildName(@GIDa4) + "] guild.",0;
- MapAnnounce "gefg_cas04.gat","The emperium has been destroyed.",17;
- GetCastleData "gefg_cas04.gat",0,"::OnRecvCastleG04";
- SetCastleData "gefg_cas04.gat",2,0;
- SetCastleData "gefg_cas04.gat",3,0;
- SetCastleData "gefg_cas04.gat",4,0;
- SetCastleData "gefg_cas04.gat",5,0;
- SetCastleData "gefg_cas04.gat",6,0;
- SetCastleData "gefg_cas04.gat",7,0;
- SetCastleData "gefg_cas04.gat",8,0;
- SetCastleData "gefg_cas04.gat",9,0;
- SetCastleData "gefg_cas04.gat",10,0;
- SetCastleData "gefg_cas04.gat",11,0;
- SetCastleData "gefg_cas04.gat",12,0;
- SetCastleData "gefg_cas04.gat",13,0;
- SetCastleData "gefg_cas04.gat",14,0;
- SetCastleData "gefg_cas04.gat",15,0;
- SetCastleData "gefg_cas04.gat",16,0;
- SetCastleData "gefg_cas04.gat",17,0;
- SetCastleData "gefg_cas04.gat",18,0;
- SetCastleData "gefg_cas04.gat",19,0;
- SetCastleData "gefg_cas04.gat",20,0;
- SetCastleData "gefg_cas04.gat",21,0;
- SetCastleData "gefg_cas04.gat",22,0;
- SetCastleData "gefg_cas04.gat",23,0;
- SetCastleData "gefg_cas04.gat",24,0;
- SetCastleData "gefg_cas04.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "gefg_cas04.gat",GetCastleData("gefg_cas04.gat",1),6;
- Monster "gefg_cas04.gat",174,178,"EMPERIUM",1288,1,"Agit_B04::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("gefg_cas04.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas04.gat",GetCastleData("gefg_cas04.gat",1),4;
- KillMonster "gefg_cas04.gat","Agit_B04::OnAgitBreak";
- GvgOff "gefg_cas04.gat";
- Break;
-OnInit:
-initnpctimer "Agit_B04_Timer";
-}
-
-gefg_cas04.gat,1,1,1 script Agit_B04_Timer -1,{
-OnTimer500:
- if (GetCastleData("gefg_cas04.gat",1) != 0) break;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1263,11;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1102,10;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1130,10;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1140,20;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1163,9;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1219,1;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1150,1;
- areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1159,1;
- monster "gefg_cas04.gat",174,177,"--ja--",1203,1;
- monster "gefg_cas04.gat",174,177,"--ja--",1087,1;
- monster "gefg_cas04.gat",174,177,"--ja--",1213,7;
- monster "gefg_cas04.gat",174,177,"--ja--",1189,7;
- Monster "gefg_cas04.gat",174,178,"EMPERIUM",1288,1,"Agit_B04::OnAgitBreak";
- stopnpctimer "Agit_B04_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
-gefg_cas05.gat,194,184,0 script Agit_B05 -1,{
-OnAgitInit:
- GetCastleData "gefg_cas05.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "gefg_cas05.gat",0,"::OnRecvCastleG05";
- Break;
-OnRecvCastleG05:
- RequestGuildInfo GetCastleData("gefg_cas05.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("gefg_cas05.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas05.gat",GetCastleData("gefg_cas05.gat",1),2;
- Monster "gefg_cas05.gat",194,184,"EMPERIUM",1288,1,"Agit_B05::OnAgitBreak";
- GvgOn "gefg_cas05.gat";
- Break;
-OnAgitBreak:
- set @GIDa5,getcharid(2);
- if (@GIDa5 <= 0) Break;
- set @Economy,GetCastleData("gefg_cas05.gat",2);
- SetCastleData "gefg_cas05.gat",2,@Economy-5;
- if (GetCastleData("gefg_cas05.gat",2) < 0) SetCastleData "gefg_cas05.gat",2,0;
- set @Defence,GetCastleData("gefg_cas05.gat",3);
- SetCastleData "gefg_cas05.gat",3,@Defence-5;
- if (GetCastleData("gefg_cas05.gat",3) < 0) SetCastleData "gefg_cas05.gat",3,0;
- SetCastleData "gefg_cas05.gat",1,@GIDa5;
- Announce "Guild Base [" + GetCastleName("gefg_cas05.gat") + "] has been taken by [" + GetGuildName(@GIDa5) + "] guild.",0;
- MapAnnounce "gefg_cas05.gat","The emperium has been destroyed.",17;
- GetCastleData "gefg_cas05.gat",0,"::OnRecvCastleG05";
- SetCastleData "gefg_cas05.gat",2,0;
- SetCastleData "gefg_cas05.gat",3,0;
- SetCastleData "gefg_cas05.gat",4,0;
- SetCastleData "gefg_cas05.gat",5,0;
- SetCastleData "gefg_cas05.gat",6,0;
- SetCastleData "gefg_cas05.gat",7,0;
- SetCastleData "gefg_cas05.gat",8,0;
- SetCastleData "gefg_cas05.gat",9,0;
- SetCastleData "gefg_cas05.gat",10,0;
- SetCastleData "gefg_cas05.gat",11,0;
- SetCastleData "gefg_cas05.gat",12,0;
- SetCastleData "gefg_cas05.gat",13,0;
- SetCastleData "gefg_cas05.gat",14,0;
- SetCastleData "gefg_cas05.gat",15,0;
- SetCastleData "gefg_cas05.gat",16,0;
- SetCastleData "gefg_cas05.gat",17,0;
- SetCastleData "gefg_cas05.gat",18,0;
- SetCastleData "gefg_cas05.gat",19,0;
- SetCastleData "gefg_cas05.gat",20,0;
- SetCastleData "gefg_cas05.gat",21,0;
- SetCastleData "gefg_cas05.gat",22,0;
- SetCastleData "gefg_cas05.gat",23,0;
- SetCastleData "gefg_cas05.gat",24,0;
- SetCastleData "gefg_cas05.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "gefg_cas05.gat",GetCastleData("gefg_cas05.gat",1),6;
- Monster "gefg_cas05.gat",194,184,"EMPERIUM",1288,1,"Agit_B05::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("gefg_cas05.gat",1) == 0) break;
- MapRespawnGuildID "gefg_cas05.gat",GetCastleData("gefg_cas05.gat",1),4;
- KillMonster "gefg_cas05.gat","Agit_B05::OnAgitBreak";
- GvgOff "gefg_cas05.gat";
- Break;
-OnInit:
-initnpctimer "Agit_B05_Timer";
-}
-
-gefg_cas05.gat,1,1,1 script Agit_B05_Timer -1,{
-OnTimer500:
- if (GetCastleData("gefg_cas05.gat",1) != 0) break;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1117,10;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1263,11;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1102,10;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1130,10;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1140,20;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1163,9;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1219,1;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1150,1;
- areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1159,1;
- monster "gefg_cas05.gat",194,184,"--ja--",1203,1;
- monster "gefg_cas05.gat",194,184,"--ja--",1087,1;
- monster "gefg_cas05.gat",194,184,"--ja--",1213,7;
- monster "gefg_cas05.gat",194,184,"--ja--",1189,7;
- Monster "gefg_cas05.gat",194,184,"EMPERIUM",1288,1,"Agit_B05::OnAgitBreak";
-}
-//--------------------------------------------------------------------------------------------------------------------------
+//===== eAthena Script =======================================
+//= War of Emperium - Geffen Guild Wars Events
+//===== By: ==================================================
+//= jAthena (1.0)
+//===== Current Version: =====================================
+//= 1.2
+//===== Compatible With: =====================================
+//= eAthena 0.1+; RO Episode 4+
+//===== Description: =========================================
+//= Event Triggers of Geffen Guild Wars
+//===== Additional Comments: =================================
+//= 1.1 by Akaru and ho|yAnge|
+//= 1.2 by Akaru (Castle spawn/conquering fix)
+//============================================================
+
+
+gefg_cas01.gat,198,182,0 script Agit_B01 -1,{
+OnAgitInit:
+ GetCastleData "gefg_cas01.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "gefg_cas01.gat",0,"::OnRecvCastleG01";
+ Break;
+OnRecvCastleG01:
+ RequestGuildInfo GetCastleData("gefg_cas01.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("gefg_cas01.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas01.gat",GetCastleData("gefg_cas01.gat",1),2;
+ Monster "gefg_cas01.gat",198,182,"EMPERIUM",1288,1,"Agit_B01::OnAgitBreak";
+ GvgOn "gefg_cas01.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa1,getcharid(2);
+ if (@GIDa1 <= 0) Break;
+ set @Economy,GetCastleData("gefg_cas01.gat",2);
+ SetCastleData "gefg_cas01.gat",2,@Economy-5;
+ if (GetCastleData("gefg_cas01.gat",2) < 0) SetCastleData "gefg_cas01.gat",2,0;
+ set @Defence,GetCastleData("gefg_cas01.gat",3);
+ SetCastleData "gefg_cas01.gat",3,@Defence-5;
+ if (GetCastleData("gefg_cas01.gat",3) < 0) SetCastleData "gefg_cas01.gat",3,0;
+ SetCastleData "gefg_cas01.gat",1,@GIDa1;
+ Announce "Guild Base [" + GetCastleName("gefg_cas01.gat") + "] has been taken by the [" + GetGuildName(@GIDa1) + "] guild.",0;
+ MapAnnounce "gefg_cas01.gat","The emperium has been destroyed.",17;
+ GetCastleData "gefg_cas01.gat",0,"::OnRecvCastleG01";
+ SetCastleData "gefg_cas01.gat",2,0;
+ SetCastleData "gefg_cas01.gat",3,0;
+ SetCastleData "gefg_cas01.gat",4,0;
+ SetCastleData "gefg_cas01.gat",5,0;
+ SetCastleData "gefg_cas01.gat",6,0;
+ SetCastleData "gefg_cas01.gat",7,0;
+ SetCastleData "gefg_cas01.gat",8,0;
+ SetCastleData "gefg_cas01.gat",9,0;
+ SetCastleData "gefg_cas01.gat",10,0;
+ SetCastleData "gefg_cas01.gat",11,0;
+ SetCastleData "gefg_cas01.gat",12,0;
+ SetCastleData "gefg_cas01.gat",13,0;
+ SetCastleData "gefg_cas01.gat",14,0;
+ SetCastleData "gefg_cas01.gat",15,0;
+ SetCastleData "gefg_cas01.gat",16,0;
+ SetCastleData "gefg_cas01.gat",17,0;
+ SetCastleData "gefg_cas01.gat",18,0;
+ SetCastleData "gefg_cas01.gat",19,0;
+ SetCastleData "gefg_cas01.gat",20,0;
+ SetCastleData "gefg_cas01.gat",21,0;
+ SetCastleData "gefg_cas01.gat",22,0;
+ SetCastleData "gefg_cas01.gat",23,0;
+ SetCastleData "gefg_cas01.gat",24,0;
+ SetCastleData "gefg_cas01.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "gefg_cas01.gat",GetCastleData("gefg_cas01.gat",1),6;
+ Monster "gefg_cas01.gat",198,182,"EMPERIUM",1288,1,"Agit_B01::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("gefg_cas01.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas01.gat",GetCastleData("gefg_cas01.gat",1),4;
+ KillMonster "gefg_cas01.gat","Agit_B01::OnAgitBreak";
+ GvgOff "gefg_cas01.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_B01_Timer";
+}
+
+gefg_cas01.gat,1,1,1 script Agit_B01_Timer -1,{
+OnTimer500:
+ if (GetCastleData("gefg_cas01.gat",1) != 0) break;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1263,11;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1102,10;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1130,10;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1140,20;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1163,9;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1219,1;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1150,1;
+ areamonster "gefg_cas01.gat",0,0,300,300,"--ja--",1159,1;
+ monster "gefg_cas01.gat",197,181,"--ja--",1203,1;
+ monster "gefg_cas01.gat",197,181,"--ja--",1087,1;
+ monster "gefg_cas01.gat",197,181,"--ja--",1213,10;
+ monster "gefg_cas01.gat",197,181,"--ja--",1189,10;
+ monster "gefg_cas01.gat",198,182,"EMPERIUM",1288,1,"Agit_B01::OnAgitBreak";
+ stopnpctimer "Agit_B01_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------
+gefg_cas02.gat,176,178,0 script Agit_B02 -1,{
+OnAgitInit:
+ GetCastleData "gefg_cas02.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "gefg_cas02.gat",0,"::OnRecvCastleG02";
+ Break;
+OnRecvCastleG02:
+ RequestGuildInfo GetCastleData("gefg_cas02.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("gefg_cas02.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas02.gat",GetCastleData("gefg_cas02.gat",1),2;
+ Monster "gefg_cas02.gat",176,178,"EMPERIUM",1288,1,"Agit_B02::OnAgitBreak";
+ GvgOn "gefg_cas02.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa2,getcharid(2);
+ if (@GIDa2 <= 0) Break;
+ set @Economy,GetCastleData("gefg_cas02.gat",2);
+ SetCastleData "gefg_cas02.gat",2,@Economy-5;
+ if (GetCastleData("gefg_cas02.gat",2) < 0) SetCastleData "gefg_cas02.gat",2,0;
+ set @Defence,GetCastleData("gefg_cas02.gat",3);
+ SetCastleData "gefg_cas02.gat",3,@Defence-5;
+ if (GetCastleData("gefg_cas02.gat",3) < 0) SetCastleData "gefg_cas02.gat",3,0;
+ SetCastleData "gefg_cas02.gat",1,@GIDa2;
+ Announce "Guild Base [" + GetCastleName("gefg_cas02.gat") + "] has been taken by the [" + GetGuildName(@GIDa2) + "] guild.",0;
+ MapAnnounce "gefg_cas02.gat","The emperium has been destroyed.",17;
+ GetCastleData "gefg_cas02.gat",0,"::OnRecvCastleG02";
+ SetCastleData "gefg_cas02.gat",2,0;
+ SetCastleData "gefg_cas02.gat",3,0;
+ SetCastleData "gefg_cas02.gat",4,0;
+ SetCastleData "gefg_cas02.gat",5,0;
+ SetCastleData "gefg_cas02.gat",6,0;
+ SetCastleData "gefg_cas02.gat",7,0;
+ SetCastleData "gefg_cas02.gat",8,0;
+ SetCastleData "gefg_cas02.gat",9,0;
+ SetCastleData "gefg_cas02.gat",10,0;
+ SetCastleData "gefg_cas02.gat",11,0;
+ SetCastleData "gefg_cas02.gat",12,0;
+ SetCastleData "gefg_cas02.gat",13,0;
+ SetCastleData "gefg_cas02.gat",14,0;
+ SetCastleData "gefg_cas02.gat",15,0;
+ SetCastleData "gefg_cas02.gat",16,0;
+ SetCastleData "gefg_cas02.gat",17,0;
+ SetCastleData "gefg_cas02.gat",18,0;
+ SetCastleData "gefg_cas02.gat",19,0;
+ SetCastleData "gefg_cas02.gat",20,0;
+ SetCastleData "gefg_cas02.gat",21,0;
+ SetCastleData "gefg_cas02.gat",22,0;
+ SetCastleData "gefg_cas02.gat",23,0;
+ SetCastleData "gefg_cas02.gat",24,0;
+ SetCastleData "gefg_cas02.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "gefg_cas02.gat",GetCastleData("gefg_cas02.gat",1),6;
+ Monster "gefg_cas02.gat",176,178,"EMPERIUM",1288,1,"Agit_B02::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("gefg_cas02.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas02.gat",GetCastleData("gefg_cas02.gat",1),4;
+ KillMonster "gefg_cas02.gat","Agit_B02::OnAgitBreak";
+ GvgOff "gefg_cas02.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_B02_Timer";
+}
+
+gefg_cas02.gat,1,1,1 script Agit_B02_Timer -1,{
+OnTimer500:
+ if (GetCastleData("gefg_cas02.gat",1) != 0) break;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1263,11;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1102,10;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1130,10;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1140,20;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1163,9;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1219,1;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1150,1;
+ areamonster "gefg_cas02.gat",0,0,300,300,"--ja--",1159,1;
+ monster "gefg_cas02.gat",176,178,"--ja--",1203,1;
+ monster "gefg_cas02.gat",176,178,"--ja--",1087,1;
+ monster "gefg_cas02.gat",176,178,"--ja--",1213,7;
+ monster "gefg_cas02.gat",176,178,"--ja--",1189,7;
+ Monster "gefg_cas02.gat",176,178,"EMPERIUM",1288,1,"Agit_B02::OnAgitBreak";
+ stopnpctimer "Agit_B02_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------
+gefg_cas03.gat,245,167,0 script Agit_B03 -1,{
+OnAgitInit:
+ GetCastleData "gefg_cas03.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "gefg_cas03.gat",0,"::OnRecvCastleG03";
+ Break;
+OnRecvCastleG03:
+ RequestGuildInfo GetCastleData("gefg_cas03.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("gefg_cas03.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas03.gat",GetCastleData("gefg_cas03.gat",1),2;
+ Monster "gefg_cas03.gat",245,167,"EMPERIUM",1288,1,"Agit_B03::OnAgitBreak";
+ GvgOn "gefg_cas03.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa3,getcharid(2);
+ if (@GIDa3 <= 0) Break;
+ set @Economy,GetCastleData("gefg_cas03.gat",2);
+ SetCastleData "gefg_cas03.gat",2,@Economy-5;
+ if (GetCastleData("gefg_cas03.gat",2) < 0) SetCastleData "gefg_cas03.gat",2,0;
+ set @Defence,GetCastleData("gefg_cas03.gat",3);
+ SetCastleData "gefg_cas03.gat",3,@Defence-5;
+ if (GetCastleData("gefg_cas01.gat",3) < 0) SetCastleData "gefg_cas03.gat",3,0;
+ SetCastleData "gefg_cas03.gat",1,@GIDa3;
+ Announce "Guild Base [" + GetCastleName("gefg_cas03.gat") + "] has been taken by the [" + GetGuildName(@GIDa3) + "] guild.",0;
+ MapAnnounce "gefg_cas03.gat","The emperium has been destroyed.",17;
+ GetCastleData "gefg_cas03.gat",0,"::OnRecvCastleG03";
+ SetCastleData "gefg_cas03.gat",2,0;
+ SetCastleData "gefg_cas03.gat",3,0;
+ SetCastleData "gefg_cas03.gat",4,0;
+ SetCastleData "gefg_cas03.gat",5,0;
+ SetCastleData "gefg_cas03.gat",6,0;
+ SetCastleData "gefg_cas03.gat",7,0;
+ SetCastleData "gefg_cas03.gat",8,0;
+ SetCastleData "gefg_cas03.gat",9,0;
+ SetCastleData "gefg_cas03.gat",10,0;
+ SetCastleData "gefg_cas03.gat",11,0;
+ SetCastleData "gefg_cas03.gat",12,0;
+ SetCastleData "gefg_cas03.gat",13,0;
+ SetCastleData "gefg_cas03.gat",14,0;
+ SetCastleData "gefg_cas03.gat",15,0;
+ SetCastleData "gefg_cas03.gat",16,0;
+ SetCastleData "gefg_cas03.gat",17,0;
+ SetCastleData "gefg_cas03.gat",18,0;
+ SetCastleData "gefg_cas03.gat",19,0;
+ SetCastleData "gefg_cas03.gat",20,0;
+ SetCastleData "gefg_cas03.gat",21,0;
+ SetCastleData "gefg_cas03.gat",22,0;
+ SetCastleData "gefg_cas03.gat",23,0;
+ SetCastleData "gefg_cas03.gat",24,0;
+ SetCastleData "gefg_cas03.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "gefg_cas03.gat",GetCastleData("gefg_cas03.gat",1),6;
+ Monster "gefg_cas03.gat",245,167,"EMPERIUM",1288,1,"Agit_B03::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("gefg_cas03.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas03.gat",GetCastleData("gefg_cas03.gat",1),4;
+ KillMonster "gefg_cas03.gat","Agit_B03::OnAgitBreak";
+ GvgOff "gefg_cas03.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_B03_Timer";
+}
+
+gefg_cas03.gat,1,1,1 script Agit_B03_Timer -1,{
+OnTimer500:
+ if (GetCastleData("gefg_cas03.gat",1) != 0) break;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1263,11;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1102,10;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1130,10;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1140,20;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1163,9;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1219,1;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1150,1;
+ areamonster "gefg_cas03.gat",0,0,300,300,"--ja--",1159,1;
+ monster "gefg_cas03.gat",244,166,"--ja--",1203,1;
+ monster "gefg_cas03.gat",244,166,"--ja--",1087,1;
+ monster "gefg_cas03.gat",244,166,"--ja--",1213,7;
+ monster "gefg_cas03.gat",244,166,"--ja--",1189,7;
+ Monster "gefg_cas03.gat",245,167,"EMPERIUM",1288,1,"Agit_B03::OnAgitBreak";
+ stopnpctimer "Agit_B03_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------
+gefg_cas04.gat,174,178,0 script Agit_B04 -1,{
+OnAgitInit:
+ GetCastleData "gefg_cas04.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "gefg_cas04.gat",0,"::OnRecvCastleG04";
+ Break;
+OnRecvCastleG04:
+ RequestGuildInfo GetCastleData("gefg_cas04.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("gefg_cas04.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas04.gat",GetCastleData("gefg_cas04.gat",1),2;
+ Monster "gefg_cas04.gat",174,178,"EMPERIUM",1288,1,"Agit_B04::OnAgitBreak";
+ GvgOn "gefg_cas04.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa4,getcharid(2);
+ if (@GIDa4 <= 0) Break;
+ set @Economy,GetCastleData("gefg_cas04.gat",2);
+ SetCastleData "gefg_cas04.gat",2,@Economy-5;
+ if (GetCastleData("gefg_cas04.gat",2) < 0) SetCastleData "gefg_cas04.gat",2,0;
+ set @Defence,GetCastleData("gefg_cas04.gat",3);
+ SetCastleData "gefg_cas04.gat",3,@Defence-5;
+ if (GetCastleData("gefg_cas04.gat",3) < 0) SetCastleData "gefg_cas04.gat",3,0;
+ SetCastleData "gefg_cas04.gat",1,@GIDa4;
+ Announce "Guild Base [" + GetCastleName("gefg_cas04.gat") + "] has been taken by the [" + GetGuildName(@GIDa4) + "] guild.",0;
+ MapAnnounce "gefg_cas04.gat","The emperium has been destroyed.",17;
+ GetCastleData "gefg_cas04.gat",0,"::OnRecvCastleG04";
+ SetCastleData "gefg_cas04.gat",2,0;
+ SetCastleData "gefg_cas04.gat",3,0;
+ SetCastleData "gefg_cas04.gat",4,0;
+ SetCastleData "gefg_cas04.gat",5,0;
+ SetCastleData "gefg_cas04.gat",6,0;
+ SetCastleData "gefg_cas04.gat",7,0;
+ SetCastleData "gefg_cas04.gat",8,0;
+ SetCastleData "gefg_cas04.gat",9,0;
+ SetCastleData "gefg_cas04.gat",10,0;
+ SetCastleData "gefg_cas04.gat",11,0;
+ SetCastleData "gefg_cas04.gat",12,0;
+ SetCastleData "gefg_cas04.gat",13,0;
+ SetCastleData "gefg_cas04.gat",14,0;
+ SetCastleData "gefg_cas04.gat",15,0;
+ SetCastleData "gefg_cas04.gat",16,0;
+ SetCastleData "gefg_cas04.gat",17,0;
+ SetCastleData "gefg_cas04.gat",18,0;
+ SetCastleData "gefg_cas04.gat",19,0;
+ SetCastleData "gefg_cas04.gat",20,0;
+ SetCastleData "gefg_cas04.gat",21,0;
+ SetCastleData "gefg_cas04.gat",22,0;
+ SetCastleData "gefg_cas04.gat",23,0;
+ SetCastleData "gefg_cas04.gat",24,0;
+ SetCastleData "gefg_cas04.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "gefg_cas04.gat",GetCastleData("gefg_cas04.gat",1),6;
+ Monster "gefg_cas04.gat",174,178,"EMPERIUM",1288,1,"Agit_B04::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("gefg_cas04.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas04.gat",GetCastleData("gefg_cas04.gat",1),4;
+ KillMonster "gefg_cas04.gat","Agit_B04::OnAgitBreak";
+ GvgOff "gefg_cas04.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_B04_Timer";
+}
+
+gefg_cas04.gat,1,1,1 script Agit_B04_Timer -1,{
+OnTimer500:
+ if (GetCastleData("gefg_cas04.gat",1) != 0) break;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1263,11;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1102,10;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1130,10;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1140,20;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1163,9;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1219,1;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1150,1;
+ areamonster "gefg_cas04.gat",0,0,300,300,"--ja--",1159,1;
+ monster "gefg_cas04.gat",174,177,"--ja--",1203,1;
+ monster "gefg_cas04.gat",174,177,"--ja--",1087,1;
+ monster "gefg_cas04.gat",174,177,"--ja--",1213,7;
+ monster "gefg_cas04.gat",174,177,"--ja--",1189,7;
+ Monster "gefg_cas04.gat",174,178,"EMPERIUM",1288,1,"Agit_B04::OnAgitBreak";
+ stopnpctimer "Agit_B04_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------
+gefg_cas05.gat,194,184,0 script Agit_B05 -1,{
+OnAgitInit:
+ GetCastleData "gefg_cas05.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "gefg_cas05.gat",0,"::OnRecvCastleG05";
+ Break;
+OnRecvCastleG05:
+ RequestGuildInfo GetCastleData("gefg_cas05.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("gefg_cas05.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas05.gat",GetCastleData("gefg_cas05.gat",1),2;
+ Monster "gefg_cas05.gat",194,184,"EMPERIUM",1288,1,"Agit_B05::OnAgitBreak";
+ GvgOn "gefg_cas05.gat";
+ Break;
+OnAgitBreak:
+ set @GIDa5,getcharid(2);
+ if (@GIDa5 <= 0) Break;
+ set @Economy,GetCastleData("gefg_cas05.gat",2);
+ SetCastleData "gefg_cas05.gat",2,@Economy-5;
+ if (GetCastleData("gefg_cas05.gat",2) < 0) SetCastleData "gefg_cas05.gat",2,0;
+ set @Defence,GetCastleData("gefg_cas05.gat",3);
+ SetCastleData "gefg_cas05.gat",3,@Defence-5;
+ if (GetCastleData("gefg_cas05.gat",3) < 0) SetCastleData "gefg_cas05.gat",3,0;
+ SetCastleData "gefg_cas05.gat",1,@GIDa5;
+ Announce "Guild Base [" + GetCastleName("gefg_cas05.gat") + "] has been taken by [" + GetGuildName(@GIDa5) + "] guild.",0;
+ MapAnnounce "gefg_cas05.gat","The emperium has been destroyed.",17;
+ GetCastleData "gefg_cas05.gat",0,"::OnRecvCastleG05";
+ SetCastleData "gefg_cas05.gat",2,0;
+ SetCastleData "gefg_cas05.gat",3,0;
+ SetCastleData "gefg_cas05.gat",4,0;
+ SetCastleData "gefg_cas05.gat",5,0;
+ SetCastleData "gefg_cas05.gat",6,0;
+ SetCastleData "gefg_cas05.gat",7,0;
+ SetCastleData "gefg_cas05.gat",8,0;
+ SetCastleData "gefg_cas05.gat",9,0;
+ SetCastleData "gefg_cas05.gat",10,0;
+ SetCastleData "gefg_cas05.gat",11,0;
+ SetCastleData "gefg_cas05.gat",12,0;
+ SetCastleData "gefg_cas05.gat",13,0;
+ SetCastleData "gefg_cas05.gat",14,0;
+ SetCastleData "gefg_cas05.gat",15,0;
+ SetCastleData "gefg_cas05.gat",16,0;
+ SetCastleData "gefg_cas05.gat",17,0;
+ SetCastleData "gefg_cas05.gat",18,0;
+ SetCastleData "gefg_cas05.gat",19,0;
+ SetCastleData "gefg_cas05.gat",20,0;
+ SetCastleData "gefg_cas05.gat",21,0;
+ SetCastleData "gefg_cas05.gat",22,0;
+ SetCastleData "gefg_cas05.gat",23,0;
+ SetCastleData "gefg_cas05.gat",24,0;
+ SetCastleData "gefg_cas05.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "gefg_cas05.gat",GetCastleData("gefg_cas05.gat",1),6;
+ Monster "gefg_cas05.gat",194,184,"EMPERIUM",1288,1,"Agit_B05::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("gefg_cas05.gat",1) == 0) break;
+ MapRespawnGuildID "gefg_cas05.gat",GetCastleData("gefg_cas05.gat",1),4;
+ KillMonster "gefg_cas05.gat","Agit_B05::OnAgitBreak";
+ GvgOff "gefg_cas05.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_B05_Timer";
+}
+
+gefg_cas05.gat,1,1,1 script Agit_B05_Timer -1,{
+OnTimer500:
+ if (GetCastleData("gefg_cas05.gat",1) != 0) break;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1117,10;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1263,11;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1102,10;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1130,10;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1140,20;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1163,9;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1219,1;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1150,1;
+ areamonster "gefg_cas05.gat",0,0,300,300,"--ja--",1159,1;
+ monster "gefg_cas05.gat",194,184,"--ja--",1203,1;
+ monster "gefg_cas05.gat",194,184,"--ja--",1087,1;
+ monster "gefg_cas05.gat",194,184,"--ja--",1213,7;
+ monster "gefg_cas05.gat",194,184,"--ja--",1189,7;
+ Monster "gefg_cas05.gat",194,184,"EMPERIUM",1288,1,"Agit_B05::OnAgitBreak";
+}
+//--------------------------------------------------------------------------------------------------------------------------