summaryrefslogtreecommitdiff
path: root/npc/guild/old/ev_agit_prtg.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/guild/old/ev_agit_prtg.txt')
-rw-r--r--npc/guild/old/ev_agit_prtg.txt952
1 files changed, 476 insertions, 476 deletions
diff --git a/npc/guild/old/ev_agit_prtg.txt b/npc/guild/old/ev_agit_prtg.txt
index 85de425fd..26cfde0ec 100644
--- a/npc/guild/old/ev_agit_prtg.txt
+++ b/npc/guild/old/ev_agit_prtg.txt
@@ -1,476 +1,476 @@
-//===== eAthena Script =======================================
-//= War of Emperium - Prontera Guild Wars Events
-//===== By: ==================================================
-//= jAthena (1.0)
-//===== Current Version: =====================================
-//= 1.2
-//===== Compatible With: =====================================
-//= eAthena 0.1+; RO Episode 4+
-//===== Description: =========================================
-//= Event Triggers of Prontera Guild Wars
-//===== Additional Comments: =================================
-//= 1.1 by Akaru and ho|yAnge|
-//= 1.2 by Akaru (Castle spawn/conquering fix)
-//============================================================
-
-
-prtg_cas01.gat,197,197,0 script Agit_D01 -1,{
-OnAgitInit:
- GetCastleData "prtg_cas01.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "prtg_cas01.gat",0,"::OnRecvCastleP01";
- Break;
-OnRecvCastleP01:
- RequestGuildInfo GetCastleData("prtg_cas01.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("prtg_cas01.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas01.gat",GetCastleData("prtg_cas01.gat",1),2;
- Monster "prtg_cas01.gat",197,197,"EMPERIUM",1288,1,"Agit_D01::OnAgitBreak";
- GvgOn "prtg_cas01.gat";
- Break;
-OnAgitBreak:
- set @GIDp1,getcharid(2);
- if (@GIDp1 <= 0) Break;
- set @Economy,GetCastleData("prtg_cas01.gat",2);
- SetCastleData "prtg_cas01.gat",2,@Economy-5;
- if (GetCastleData("prtg_cas01.gat",2) < 0) SetCastleData "prtg_cas01.gat",2,0;
- set @Defence,GetCastleData("prtg_cas01.gat",3);
- SetCastleData "prtg_cas01.gat",3,@Defence-5;
- if (GetCastleData("prtg_cas01.gat",3) < 0) SetCastleData "prtg_cas01.gat",3,0;
- SetCastleData "prtg_cas01.gat",1,@GIDp1;
- Announce "Guild Base [" + GetCastleName("prtg_cas01.gat") + "] has been taken by the [" + GetGuildName(@GIDp1) + "] guild.",0;
- MapAnnounce "prtg_cas01.gat","The emperium has been destroyed.",17;
- GetCastleData "prtg_cas01.gat",0,"::OnRecvCastleP01";
- SetCastleData "prtg_cas01.gat",2,0;
- SetCastleData "prtg_cas01.gat",3,0;
- SetCastleData "prtg_cas01.gat",4,0;
- SetCastleData "prtg_cas01.gat",5,0;
- SetCastleData "prtg_cas01.gat",6,0;
- SetCastleData "prtg_cas01.gat",7,0;
- SetCastleData "prtg_cas01.gat",8,0;
- SetCastleData "prtg_cas01.gat",9,0;
- SetCastleData "prtg_cas01.gat",10,0;
- SetCastleData "prtg_cas01.gat",11,0;
- SetCastleData "prtg_cas01.gat",12,0;
- SetCastleData "prtg_cas01.gat",13,0;
- SetCastleData "prtg_cas01.gat",14,0;
- SetCastleData "prtg_cas01.gat",15,0;
- SetCastleData "prtg_cas01.gat",16,0;
- SetCastleData "prtg_cas01.gat",17,0;
- SetCastleData "prtg_cas01.gat",18,0;
- SetCastleData "prtg_cas01.gat",19,0;
- SetCastleData "prtg_cas01.gat",20,0;
- SetCastleData "prtg_cas01.gat",21,0;
- SetCastleData "prtg_cas01.gat",22,0;
- SetCastleData "prtg_cas01.gat",23,0;
- SetCastleData "prtg_cas01.gat",24,0;
- SetCastleData "prtg_cas01.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "prtg_cas01.gat",GetCastleData("prtg_cas01.gat",1),6;
- Monster "prtg_cas01.gat",197,197,"EMPERIUM",1288,1,"Agit_D01::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("prtg_cas01.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas01.gat",GetCastleData("prtg_cas01.gat",1),4;
- KillMonster "prtg_cas01.gat","Agit_D01::OnAgitBreak";
- GvgOff "prtg_cas01.gat";
- Break;
-OnInit:
-initnpctimer "Agit_D01_Timer";
-}
-
-prtg_cas01.gat,1,1,1 script Agit_D01_Timer -1,{
-OnTimer500:
- if (GetCastleData("prtg_cas01.gat",1) != 0) break;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1163,15;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1132,10;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1219,5;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1268,5;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1251,1;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1252,1;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1276,5;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1259,1;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1283,1;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1200,1;
- monster "prtg_cas01.gat",197,197,"--ja--",1268,1;
- monster "prtg_cas01.gat",197,197,"--ja--",1251,1;
- monster "prtg_cas01.gat",197,197,"--ja--",1252,1;
- monster "prtg_cas01.gat",197,197,"--ja--",1219,2;
- monster "prtg_cas01.gat",197,197,"--ja--",1276,5;
- Monster "prtg_cas01.gat",197,197,"EMPERIUM",1288,1,"Agit_D01::OnAgitBreak";
- stopnpctimer "Agit_D01_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
-prtg_cas02.gat,158,174,0 script Agit_D02 -1,{
-OnAgitInit:
- GetCastleData "prtg_cas02.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "prtg_cas02.gat",0,"::OnRecvCastleP02";
- Break;
-OnRecvCastleP02:
- RequestGuildInfo GetCastleData("prtg_cas02.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("prtg_cas02.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas02.gat",GetCastleData("prtg_cas02.gat",1),2;
- Monster "prtg_cas02.gat",158,174,"EMPERIUM",1288,1,"Agit_D02::OnAgitBreak";
- GvgOn "prtg_cas02.gat";
- Break;
-OnAgitBreak:
- set @GIDp2,getcharid(2);
- if (@GIDp2 <= 0) Break;
- set @Economy,GetCastleData("prtg_cas02.gat",2);
- SetCastleData "prtg_cas02.gat",2,@Economy-5;
- if (GetCastleData("prtg_cas02.gat",2) < 0) SetCastleData "prtg_cas02.gat",2,0;
- set @Defence,GetCastleData("prtg_cas02.gat",3);
- SetCastleData "prtg_cas02.gat",3,@Defence-5;
- if (GetCastleData("prtg_cas02.gat",3) < 0) SetCastleData "prtg_cas02.gat",3,0;
- SetCastleData "prtg_cas02.gat",1,@GIDp2;
- Announce "Guild Base [" + GetCastleName("prtg_cas02.gat") + "] has been taken by the [" + GetGuildName(@GIDp2) + "] guild.",0;
- MapAnnounce "prtg_cas02.gat","The emperium has been destroyed.",17;
- GetCastleData "prtg_cas02.gat",0,"::OnRecvCastleP02";
- SetCastleData "prtg_cas02.gat",2,0;
- SetCastleData "prtg_cas02.gat",3,0;
- SetCastleData "prtg_cas02.gat",4,0;
- SetCastleData "prtg_cas02.gat",5,0;
- SetCastleData "prtg_cas02.gat",6,0;
- SetCastleData "prtg_cas02.gat",7,0;
- SetCastleData "prtg_cas02.gat",8,0;
- SetCastleData "prtg_cas02.gat",9,0;
- SetCastleData "prtg_cas02.gat",10,0;
- SetCastleData "prtg_cas02.gat",11,0;
- SetCastleData "prtg_cas02.gat",12,0;
- SetCastleData "prtg_cas02.gat",13,0;
- SetCastleData "prtg_cas02.gat",14,0;
- SetCastleData "prtg_cas02.gat",15,0;
- SetCastleData "prtg_cas02.gat",16,0;
- SetCastleData "prtg_cas02.gat",17,0;
- SetCastleData "prtg_cas02.gat",18,0;
- SetCastleData "prtg_cas02.gat",19,0;
- SetCastleData "prtg_cas02.gat",20,0;
- SetCastleData "prtg_cas02.gat",21,0;
- SetCastleData "prtg_cas02.gat",22,0;
- SetCastleData "prtg_cas02.gat",23,0;
- SetCastleData "prtg_cas02.gat",24,0;
- SetCastleData "prtg_cas02.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "prtg_cas02.gat",GetCastleData("prtg_cas02.gat",1),6;
- Monster "prtg_cas02.gat",158,174,"EMPERIUM",1288,1,"Agit_D02::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("prtg_cas02.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas02.gat",GetCastleData("prtg_cas02.gat",1),4;
- KillMonster "prtg_cas02.gat","Agit_D02::OnAgitBreak";
- GvgOff "prtg_cas02.gat";
- Break;
-OnInit:
-initnpctimer "Agit_D02_Timer";
-}
-
-prtg_cas02.gat,1,1,1 script Agit_D02_Timer -1,{
-OnTimer500:
- if (GetCastleData("prtg_cas02.gat",1) != 0) break;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1163,15;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1132,10;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1219,5;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1268,5;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1251,1;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1252,1;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1276,5;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1259,1;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1283,1;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1200,1;
- monster "prtg_cas02.gat",157,174,"--ja--",1268,1;
- monster "prtg_cas02.gat",157,174,"--ja--",1251,1;
- monster "prtg_cas02.gat",157,174,"--ja--",1252,1;
- monster "prtg_cas02.gat",157,174,"--ja--",1219,2;
- monster "prtg_cas02.gat",157,174,"--ja--",1276,5;
- Monster "prtg_cas02.gat",158,174,"EMPERIUM",1288,1,"Agit_D02::OnAgitBreak";
- stopnpctimer "Agit_D02_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
-prtg_cas03.gat,17,221,0 script Agit_D03 -1,{
-OnAgitInit:
- GetCastleData "prtg_cas03.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "prtg_cas03.gat",0,"::OnRecvCastleP03";
- Break;
-OnRecvCastleP03:
- RequestGuildInfo GetCastleData("prtg_cas03.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("prtg_cas03.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas03.gat",GetCastleData("prtg_cas03.gat",1),2;
- Monster "prtg_cas03.gat",17,221,"EMPERIUM",1288,1,"Agit_D03::OnAgitBreak";
- GvgOn "prtg_cas03.gat";
- Break;
-OnAgitBreak:
- set @GIDp3,getcharid(2);
- if (@GIDp3 <= 0) Break;
- set @Economy,GetCastleData("prtg_cas03.gat",2);
- SetCastleData "prtg_cas03.gat",2,@Economy-5;
- if (GetCastleData("prtg_cas03.gat",2) < 0) SetCastleData "prtg_cas03.gat",2,0;
- set @Defence,GetCastleData("prtg_cas03.gat",3);
- SetCastleData "prtg_cas03.gat",3,@Defence-5;
- if (GetCastleData("prtg_cas01.gat",3) < 0) SetCastleData "prtg_cas03.gat",3,0;
- SetCastleData "prtg_cas03.gat",1,@GIDp3;
- Announce "Guild Base [" + GetCastleName("prtg_cas03.gat") + "] has been taken by the [" + GetGuildName(@GIDp3) + "] guild.",0;
- MapAnnounce "prtg_cas03.gat","The emperium has been destroyed.",17;
- GetCastleData "prtg_cas03.gat",0,"::OnRecvCastleP03";
- SetCastleData "prtg_cas03.gat",2,0;
- SetCastleData "prtg_cas03.gat",3,0;
- SetCastleData "prtg_cas03.gat",4,0;
- SetCastleData "prtg_cas03.gat",5,0;
- SetCastleData "prtg_cas03.gat",6,0;
- SetCastleData "prtg_cas03.gat",7,0;
- SetCastleData "prtg_cas03.gat",8,0;
- SetCastleData "prtg_cas03.gat",9,0;
- SetCastleData "prtg_cas03.gat",10,0;
- SetCastleData "prtg_cas03.gat",11,0;
- SetCastleData "prtg_cas03.gat",12,0;
- SetCastleData "prtg_cas03.gat",13,0;
- SetCastleData "prtg_cas03.gat",14,0;
- SetCastleData "prtg_cas03.gat",15,0;
- SetCastleData "prtg_cas03.gat",16,0;
- SetCastleData "prtg_cas03.gat",17,0;
- SetCastleData "prtg_cas03.gat",18,0;
- SetCastleData "prtg_cas03.gat",19,0;
- SetCastleData "prtg_cas03.gat",20,0;
- SetCastleData "prtg_cas03.gat",21,0;
- SetCastleData "prtg_cas03.gat",22,0;
- SetCastleData "prtg_cas03.gat",23,0;
- SetCastleData "prtg_cas03.gat",24,0;
- SetCastleData "prtg_cas03.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "prtg_cas03.gat",GetCastleData("prtg_cas03.gat",1),6;
- Monster "prtg_cas03.gat",17,221,"EMPERIUM",1288,1,"Agit_D03::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("prtg_cas03.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas03.gat",GetCastleData("prtg_cas03.gat",1),4;
- KillMonster "prtg_cas03.gat","Agit_D03::OnAgitBreak";
- GvgOff "prtg_cas03.gat";
- Break;
-OnInit:
-initnpctimer "Agit_D03_Timer";
-}
-
-prtg_cas03.gat,1,1,1 script Agit_D03_Timer -1,{
-OnTimer500:
- if (GetCastleData("prtg_cas03.gat",1) != 0) break;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1163,15;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1132,10;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1219,5;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1268,5;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1251,1;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1252,1;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1276,5;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1259,1;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1283,1;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1200,1;
- monster "prtg_cas03.gat",16,220,"--ja--",1268,1;
- monster "prtg_cas03.gat",16,220,"--ja--",1251,1;
- monster "prtg_cas03.gat",16,220,"--ja--",1252,1;
- monster "prtg_cas03.gat",16,220,"--ja--",1219,2;
- monster "prtg_cas03.gat",16,220,"--ja--",1276,5;
- Monster "prtg_cas03.gat",17,221,"EMPERIUM",1288,1,"Agit_D03::OnAgitBreak";
- stopnpctimer "Agit_D03_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
-prtg_cas04.gat,292,14,0 script Agit_D04 -1,{
-OnAgitInit:
- GetCastleData "prtg_cas04.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "prtg_cas04.gat",0,"::OnRecvCastleP04";
- Break;
-OnRecvCastleP04:
- RequestGuildInfo GetCastleData("prtg_cas04.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("prtg_cas04.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas04.gat",GetCastleData("prtg_cas04.gat",1),2;
- Monster "prtg_cas04.gat",292,14,"EMPERIUM",1288,1,"Agit_D04::OnAgitBreak";
- GvgOn "prtg_cas04.gat";
- Break;
-OnAgitBreak:
- set @GIDp4,getcharid(2);
- if (@GIDp4 <= 0) Break;
- set @Economy,GetCastleData("prtg_cas04.gat",2);
- SetCastleData "prtg_cas04.gat",2,@Economy-5;
- if (GetCastleData("prtg_cas04.gat",2) < 0) SetCastleData "prtg_cas04.gat",2,0;
- set @Defence,GetCastleData("prtg_cas04.gat",3);
- SetCastleData "prtg_cas04.gat",3,@Defence-5;
- if (GetCastleData("prtg_cas04.gat",3) < 0) SetCastleData "prtg_cas04.gat",3,0;
- SetCastleData "prtg_cas04.gat",1,@GIDp4;
- Announce "Guild Base [" + GetCastleName("prtg_cas04.gat") + "] has been taken by the [" + GetGuildName(@GIDp4) + "] guild.",0;
- MapAnnounce "prtg_cas04.gat","The emperium has been destroyed.",17;
- GetCastleData "prtg_cas04.gat",0,"::OnRecvCastleP04";
- SetCastleData "prtg_cas04.gat",2,0;
- SetCastleData "prtg_cas04.gat",3,0;
- SetCastleData "prtg_cas04.gat",4,0;
- SetCastleData "prtg_cas04.gat",5,0;
- SetCastleData "prtg_cas04.gat",6,0;
- SetCastleData "prtg_cas04.gat",7,0;
- SetCastleData "prtg_cas04.gat",8,0;
- SetCastleData "prtg_cas04.gat",9,0;
- SetCastleData "prtg_cas04.gat",10,0;
- SetCastleData "prtg_cas04.gat",11,0;
- SetCastleData "prtg_cas04.gat",12,0;
- SetCastleData "prtg_cas04.gat",13,0;
- SetCastleData "prtg_cas04.gat",14,0;
- SetCastleData "prtg_cas04.gat",15,0;
- SetCastleData "prtg_cas04.gat",16,0;
- SetCastleData "prtg_cas04.gat",17,0;
- SetCastleData "prtg_cas04.gat",18,0;
- SetCastleData "prtg_cas04.gat",19,0;
- SetCastleData "prtg_cas04.gat",20,0;
- SetCastleData "prtg_cas04.gat",21,0;
- SetCastleData "prtg_cas04.gat",22,0;
- SetCastleData "prtg_cas04.gat",23,0;
- SetCastleData "prtg_cas04.gat",24,0;
- SetCastleData "prtg_cas04.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "prtg_cas04.gat",GetCastleData("prtg_cas04.gat",1),6;
- Monster "prtg_cas04.gat",292,14,"EMPERIUM",1288,1,"Agit_D04::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("prtg_cas04.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas04.gat",GetCastleData("prtg_cas04.gat",1),4;
- KillMonster "prtg_cas04.gat","Agit_D04::OnAgitBreak";
- GvgOff "prtg_cas04.gat";
- Break;
-OnInit:
-initnpctimer "Agit_D04_Timer";
-}
-
-prtg_cas04.gat,1,1,1 script Agit_D04_Timer -1,{
-OnTimer500:
- if (GetCastleData("prtg_cas04.gat",1) != 0) break;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1163,15;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1132,10;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1219,5;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1268,5;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1251,1;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1252,1;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1276,5;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1259,1;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1283,1;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1200,1;
- monster "prtg_cas04.gat",291,14,"--ja--",1268,1;
- monster "prtg_cas04.gat",291,14,"--ja--",1251,1;
- monster "prtg_cas04.gat",291,14,"--ja--",1252,1;
- monster "prtg_cas04.gat",291,14,"--ja--",1219,2;
- monster "prtg_cas04.gat",291,14,"--ja--",1276,5;
- Monster "prtg_cas04.gat",292,14,"EMPERIUM",1288,1,"Agit_D04::OnAgitBreak";
- stopnpctimer "Agit_D04_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
-prtg_cas05.gat,266,266,0 script Agit_D05 -1,{
-OnAgitInit:
- GetCastleData "prtg_cas05.gat",0;
- Break;
-OnInterIfInit:
- GetCastleData "prtg_cas05.gat",0,"::OnRecvCastleP05";
- Break;
-OnRecvCastleP05:
- RequestGuildInfo GetCastleData("prtg_cas05.gat",1);
- Break;
-OnAgitStart:
- if (GetCastleData("prtg_cas05.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas05.gat",GetCastleData("prtg_cas05.gat",1),2;
- Monster "prtg_cas05.gat",266,266,"EMPERIUM",1288,1,"Agit_D05::OnAgitBreak";
- GvgOn "prtg_cas05.gat";
- Break;
-OnAgitBreak:
- set @GIDp5,getcharid(2);
- if (@GIDp5 <= 0) Break;
- set @Economy,GetCastleData("prtg_cas05.gat",2);
- SetCastleData "prtg_cas05.gat",2,@Economy-5;
- if (GetCastleData("prtg_cas05.gat",2) < 0) SetCastleData "prtg_cas05.gat",2,0;
- set @Defence,GetCastleData("prtg_cas05.gat",3);
- SetCastleData "prtg_cas05.gat",3,@Defence-5;
- if (GetCastleData("prtg_cas05.gat",3) < 0) SetCastleData "prtg_cas05.gat",3,0;
- SetCastleData "prtg_cas05.gat",1,@GIDp5;
- Announce "Guild Base [" + GetCastleName("prtg_cas05.gat") + "] has been taken by [" + GetGuildName(@GIDp5) + "] guild.",0;
- MapAnnounce "prtg_cas05.gat","The emperium has been destroyed.",17;
- GetCastleData "prtg_cas05.gat",0,"::OnRecvCastleP05";
- SetCastleData "prtg_cas05.gat",2,0;
- SetCastleData "prtg_cas05.gat",3,0;
- SetCastleData "prtg_cas05.gat",4,0;
- SetCastleData "prtg_cas05.gat",5,0;
- SetCastleData "prtg_cas05.gat",6,0;
- SetCastleData "prtg_cas05.gat",7,0;
- SetCastleData "prtg_cas05.gat",8,0;
- SetCastleData "prtg_cas05.gat",9,0;
- SetCastleData "prtg_cas05.gat",10,0;
- SetCastleData "prtg_cas05.gat",11,0;
- SetCastleData "prtg_cas05.gat",12,0;
- SetCastleData "prtg_cas05.gat",13,0;
- SetCastleData "prtg_cas05.gat",14,0;
- SetCastleData "prtg_cas05.gat",15,0;
- SetCastleData "prtg_cas05.gat",16,0;
- SetCastleData "prtg_cas05.gat",17,0;
- SetCastleData "prtg_cas05.gat",18,0;
- SetCastleData "prtg_cas05.gat",19,0;
- SetCastleData "prtg_cas05.gat",20,0;
- SetCastleData "prtg_cas05.gat",21,0;
- SetCastleData "prtg_cas05.gat",22,0;
- SetCastleData "prtg_cas05.gat",23,0;
- SetCastleData "prtg_cas05.gat",24,0;
- SetCastleData "prtg_cas05.gat",25,0;
- Break;
-OnAgitEliminate:
- MapRespawnGuildID "prtg_cas05.gat",GetCastleData("prtg_cas05.gat",1),6;
- Monster "prtg_cas05.gat",266,266,"EMPERIUM",1288,1,"Agit_D05::OnAgitBreak";
- Break;
-OnAgitEnd:
- if (GetCastleData("prtg_cas05.gat",1) == 0) break;
- MapRespawnGuildID "prtg_cas05.gat",GetCastleData("prtg_cas05.gat",1),4;
- KillMonster "prtg_cas05.gat","Agit_D05::OnAgitBreak";
- GvgOff "prtg_cas05.gat";
- Break;
-OnInit:
-initnpctimer "Agit_D05_Timer";
-}
-
-prtg_cas05.gat,1,1,1 script Agit_D05_Timer -1,{
-OnTimer500:
- if (GetCastleData("prtg_cas05.gat",1) != 0) break;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1163,15;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1132,10;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1219,5;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1268,5;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1251,1;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1252,1;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1276,5;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1259,1;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1283,1;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1275,1;
- areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1200,1;
- monster "prtg_cas05.gat",266,266,"--ja--",1268,1;
- monster "prtg_cas05.gat",266,266,"--ja--",1251,1;
- monster "prtg_cas05.gat",266,266,"--ja--",1252,1;
- monster "prtg_cas05.gat",266,266,"--ja--",1219,2;
- monster "prtg_cas05.gat",266,266,"--ja--",1276,5;
- Monster "prtg_cas05.gat",266,266,"EMPERIUM",1288,1,"Agit_D05::OnAgitBreak";
- stopnpctimer "Agit_D05_Timer";
- Break;
-}
-//--------------------------------------------------------------------------------------------------------------------------
+//===== eAthena Script =======================================
+//= War of Emperium - Prontera Guild Wars Events
+//===== By: ==================================================
+//= jAthena (1.0)
+//===== Current Version: =====================================
+//= 1.2
+//===== Compatible With: =====================================
+//= eAthena 0.1+; RO Episode 4+
+//===== Description: =========================================
+//= Event Triggers of Prontera Guild Wars
+//===== Additional Comments: =================================
+//= 1.1 by Akaru and ho|yAnge|
+//= 1.2 by Akaru (Castle spawn/conquering fix)
+//============================================================
+
+
+prtg_cas01.gat,197,197,0 script Agit_D01 -1,{
+OnAgitInit:
+ GetCastleData "prtg_cas01.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "prtg_cas01.gat",0,"::OnRecvCastleP01";
+ Break;
+OnRecvCastleP01:
+ RequestGuildInfo GetCastleData("prtg_cas01.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("prtg_cas01.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas01.gat",GetCastleData("prtg_cas01.gat",1),2;
+ Monster "prtg_cas01.gat",197,197,"EMPERIUM",1288,1,"Agit_D01::OnAgitBreak";
+ GvgOn "prtg_cas01.gat";
+ Break;
+OnAgitBreak:
+ set @GIDp1,getcharid(2);
+ if (@GIDp1 <= 0) Break;
+ set @Economy,GetCastleData("prtg_cas01.gat",2);
+ SetCastleData "prtg_cas01.gat",2,@Economy-5;
+ if (GetCastleData("prtg_cas01.gat",2) < 0) SetCastleData "prtg_cas01.gat",2,0;
+ set @Defence,GetCastleData("prtg_cas01.gat",3);
+ SetCastleData "prtg_cas01.gat",3,@Defence-5;
+ if (GetCastleData("prtg_cas01.gat",3) < 0) SetCastleData "prtg_cas01.gat",3,0;
+ SetCastleData "prtg_cas01.gat",1,@GIDp1;
+ Announce "Guild Base [" + GetCastleName("prtg_cas01.gat") + "] has been taken by the [" + GetGuildName(@GIDp1) + "] guild.",0;
+ MapAnnounce "prtg_cas01.gat","The emperium has been destroyed.",17;
+ GetCastleData "prtg_cas01.gat",0,"::OnRecvCastleP01";
+ SetCastleData "prtg_cas01.gat",2,0;
+ SetCastleData "prtg_cas01.gat",3,0;
+ SetCastleData "prtg_cas01.gat",4,0;
+ SetCastleData "prtg_cas01.gat",5,0;
+ SetCastleData "prtg_cas01.gat",6,0;
+ SetCastleData "prtg_cas01.gat",7,0;
+ SetCastleData "prtg_cas01.gat",8,0;
+ SetCastleData "prtg_cas01.gat",9,0;
+ SetCastleData "prtg_cas01.gat",10,0;
+ SetCastleData "prtg_cas01.gat",11,0;
+ SetCastleData "prtg_cas01.gat",12,0;
+ SetCastleData "prtg_cas01.gat",13,0;
+ SetCastleData "prtg_cas01.gat",14,0;
+ SetCastleData "prtg_cas01.gat",15,0;
+ SetCastleData "prtg_cas01.gat",16,0;
+ SetCastleData "prtg_cas01.gat",17,0;
+ SetCastleData "prtg_cas01.gat",18,0;
+ SetCastleData "prtg_cas01.gat",19,0;
+ SetCastleData "prtg_cas01.gat",20,0;
+ SetCastleData "prtg_cas01.gat",21,0;
+ SetCastleData "prtg_cas01.gat",22,0;
+ SetCastleData "prtg_cas01.gat",23,0;
+ SetCastleData "prtg_cas01.gat",24,0;
+ SetCastleData "prtg_cas01.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "prtg_cas01.gat",GetCastleData("prtg_cas01.gat",1),6;
+ Monster "prtg_cas01.gat",197,197,"EMPERIUM",1288,1,"Agit_D01::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("prtg_cas01.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas01.gat",GetCastleData("prtg_cas01.gat",1),4;
+ KillMonster "prtg_cas01.gat","Agit_D01::OnAgitBreak";
+ GvgOff "prtg_cas01.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_D01_Timer";
+}
+
+prtg_cas01.gat,1,1,1 script Agit_D01_Timer -1,{
+OnTimer500:
+ if (GetCastleData("prtg_cas01.gat",1) != 0) break;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1163,15;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1132,10;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1219,5;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1268,5;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1251,1;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1252,1;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1276,5;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1259,1;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1283,1;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "prtg_cas01.gat",0,0,300,300,"--ja--",1200,1;
+ monster "prtg_cas01.gat",197,197,"--ja--",1268,1;
+ monster "prtg_cas01.gat",197,197,"--ja--",1251,1;
+ monster "prtg_cas01.gat",197,197,"--ja--",1252,1;
+ monster "prtg_cas01.gat",197,197,"--ja--",1219,2;
+ monster "prtg_cas01.gat",197,197,"--ja--",1276,5;
+ Monster "prtg_cas01.gat",197,197,"EMPERIUM",1288,1,"Agit_D01::OnAgitBreak";
+ stopnpctimer "Agit_D01_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------
+prtg_cas02.gat,158,174,0 script Agit_D02 -1,{
+OnAgitInit:
+ GetCastleData "prtg_cas02.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "prtg_cas02.gat",0,"::OnRecvCastleP02";
+ Break;
+OnRecvCastleP02:
+ RequestGuildInfo GetCastleData("prtg_cas02.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("prtg_cas02.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas02.gat",GetCastleData("prtg_cas02.gat",1),2;
+ Monster "prtg_cas02.gat",158,174,"EMPERIUM",1288,1,"Agit_D02::OnAgitBreak";
+ GvgOn "prtg_cas02.gat";
+ Break;
+OnAgitBreak:
+ set @GIDp2,getcharid(2);
+ if (@GIDp2 <= 0) Break;
+ set @Economy,GetCastleData("prtg_cas02.gat",2);
+ SetCastleData "prtg_cas02.gat",2,@Economy-5;
+ if (GetCastleData("prtg_cas02.gat",2) < 0) SetCastleData "prtg_cas02.gat",2,0;
+ set @Defence,GetCastleData("prtg_cas02.gat",3);
+ SetCastleData "prtg_cas02.gat",3,@Defence-5;
+ if (GetCastleData("prtg_cas02.gat",3) < 0) SetCastleData "prtg_cas02.gat",3,0;
+ SetCastleData "prtg_cas02.gat",1,@GIDp2;
+ Announce "Guild Base [" + GetCastleName("prtg_cas02.gat") + "] has been taken by the [" + GetGuildName(@GIDp2) + "] guild.",0;
+ MapAnnounce "prtg_cas02.gat","The emperium has been destroyed.",17;
+ GetCastleData "prtg_cas02.gat",0,"::OnRecvCastleP02";
+ SetCastleData "prtg_cas02.gat",2,0;
+ SetCastleData "prtg_cas02.gat",3,0;
+ SetCastleData "prtg_cas02.gat",4,0;
+ SetCastleData "prtg_cas02.gat",5,0;
+ SetCastleData "prtg_cas02.gat",6,0;
+ SetCastleData "prtg_cas02.gat",7,0;
+ SetCastleData "prtg_cas02.gat",8,0;
+ SetCastleData "prtg_cas02.gat",9,0;
+ SetCastleData "prtg_cas02.gat",10,0;
+ SetCastleData "prtg_cas02.gat",11,0;
+ SetCastleData "prtg_cas02.gat",12,0;
+ SetCastleData "prtg_cas02.gat",13,0;
+ SetCastleData "prtg_cas02.gat",14,0;
+ SetCastleData "prtg_cas02.gat",15,0;
+ SetCastleData "prtg_cas02.gat",16,0;
+ SetCastleData "prtg_cas02.gat",17,0;
+ SetCastleData "prtg_cas02.gat",18,0;
+ SetCastleData "prtg_cas02.gat",19,0;
+ SetCastleData "prtg_cas02.gat",20,0;
+ SetCastleData "prtg_cas02.gat",21,0;
+ SetCastleData "prtg_cas02.gat",22,0;
+ SetCastleData "prtg_cas02.gat",23,0;
+ SetCastleData "prtg_cas02.gat",24,0;
+ SetCastleData "prtg_cas02.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "prtg_cas02.gat",GetCastleData("prtg_cas02.gat",1),6;
+ Monster "prtg_cas02.gat",158,174,"EMPERIUM",1288,1,"Agit_D02::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("prtg_cas02.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas02.gat",GetCastleData("prtg_cas02.gat",1),4;
+ KillMonster "prtg_cas02.gat","Agit_D02::OnAgitBreak";
+ GvgOff "prtg_cas02.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_D02_Timer";
+}
+
+prtg_cas02.gat,1,1,1 script Agit_D02_Timer -1,{
+OnTimer500:
+ if (GetCastleData("prtg_cas02.gat",1) != 0) break;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1163,15;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1132,10;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1219,5;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1268,5;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1251,1;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1252,1;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1276,5;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1259,1;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1283,1;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "prtg_cas02.gat",0,0,300,300,"--ja--",1200,1;
+ monster "prtg_cas02.gat",157,174,"--ja--",1268,1;
+ monster "prtg_cas02.gat",157,174,"--ja--",1251,1;
+ monster "prtg_cas02.gat",157,174,"--ja--",1252,1;
+ monster "prtg_cas02.gat",157,174,"--ja--",1219,2;
+ monster "prtg_cas02.gat",157,174,"--ja--",1276,5;
+ Monster "prtg_cas02.gat",158,174,"EMPERIUM",1288,1,"Agit_D02::OnAgitBreak";
+ stopnpctimer "Agit_D02_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------
+prtg_cas03.gat,17,221,0 script Agit_D03 -1,{
+OnAgitInit:
+ GetCastleData "prtg_cas03.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "prtg_cas03.gat",0,"::OnRecvCastleP03";
+ Break;
+OnRecvCastleP03:
+ RequestGuildInfo GetCastleData("prtg_cas03.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("prtg_cas03.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas03.gat",GetCastleData("prtg_cas03.gat",1),2;
+ Monster "prtg_cas03.gat",17,221,"EMPERIUM",1288,1,"Agit_D03::OnAgitBreak";
+ GvgOn "prtg_cas03.gat";
+ Break;
+OnAgitBreak:
+ set @GIDp3,getcharid(2);
+ if (@GIDp3 <= 0) Break;
+ set @Economy,GetCastleData("prtg_cas03.gat",2);
+ SetCastleData "prtg_cas03.gat",2,@Economy-5;
+ if (GetCastleData("prtg_cas03.gat",2) < 0) SetCastleData "prtg_cas03.gat",2,0;
+ set @Defence,GetCastleData("prtg_cas03.gat",3);
+ SetCastleData "prtg_cas03.gat",3,@Defence-5;
+ if (GetCastleData("prtg_cas01.gat",3) < 0) SetCastleData "prtg_cas03.gat",3,0;
+ SetCastleData "prtg_cas03.gat",1,@GIDp3;
+ Announce "Guild Base [" + GetCastleName("prtg_cas03.gat") + "] has been taken by the [" + GetGuildName(@GIDp3) + "] guild.",0;
+ MapAnnounce "prtg_cas03.gat","The emperium has been destroyed.",17;
+ GetCastleData "prtg_cas03.gat",0,"::OnRecvCastleP03";
+ SetCastleData "prtg_cas03.gat",2,0;
+ SetCastleData "prtg_cas03.gat",3,0;
+ SetCastleData "prtg_cas03.gat",4,0;
+ SetCastleData "prtg_cas03.gat",5,0;
+ SetCastleData "prtg_cas03.gat",6,0;
+ SetCastleData "prtg_cas03.gat",7,0;
+ SetCastleData "prtg_cas03.gat",8,0;
+ SetCastleData "prtg_cas03.gat",9,0;
+ SetCastleData "prtg_cas03.gat",10,0;
+ SetCastleData "prtg_cas03.gat",11,0;
+ SetCastleData "prtg_cas03.gat",12,0;
+ SetCastleData "prtg_cas03.gat",13,0;
+ SetCastleData "prtg_cas03.gat",14,0;
+ SetCastleData "prtg_cas03.gat",15,0;
+ SetCastleData "prtg_cas03.gat",16,0;
+ SetCastleData "prtg_cas03.gat",17,0;
+ SetCastleData "prtg_cas03.gat",18,0;
+ SetCastleData "prtg_cas03.gat",19,0;
+ SetCastleData "prtg_cas03.gat",20,0;
+ SetCastleData "prtg_cas03.gat",21,0;
+ SetCastleData "prtg_cas03.gat",22,0;
+ SetCastleData "prtg_cas03.gat",23,0;
+ SetCastleData "prtg_cas03.gat",24,0;
+ SetCastleData "prtg_cas03.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "prtg_cas03.gat",GetCastleData("prtg_cas03.gat",1),6;
+ Monster "prtg_cas03.gat",17,221,"EMPERIUM",1288,1,"Agit_D03::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("prtg_cas03.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas03.gat",GetCastleData("prtg_cas03.gat",1),4;
+ KillMonster "prtg_cas03.gat","Agit_D03::OnAgitBreak";
+ GvgOff "prtg_cas03.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_D03_Timer";
+}
+
+prtg_cas03.gat,1,1,1 script Agit_D03_Timer -1,{
+OnTimer500:
+ if (GetCastleData("prtg_cas03.gat",1) != 0) break;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1163,15;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1132,10;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1219,5;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1268,5;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1251,1;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1252,1;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1276,5;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1259,1;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1283,1;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "prtg_cas03.gat",0,0,300,300,"--ja--",1200,1;
+ monster "prtg_cas03.gat",16,220,"--ja--",1268,1;
+ monster "prtg_cas03.gat",16,220,"--ja--",1251,1;
+ monster "prtg_cas03.gat",16,220,"--ja--",1252,1;
+ monster "prtg_cas03.gat",16,220,"--ja--",1219,2;
+ monster "prtg_cas03.gat",16,220,"--ja--",1276,5;
+ Monster "prtg_cas03.gat",17,221,"EMPERIUM",1288,1,"Agit_D03::OnAgitBreak";
+ stopnpctimer "Agit_D03_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------
+prtg_cas04.gat,292,14,0 script Agit_D04 -1,{
+OnAgitInit:
+ GetCastleData "prtg_cas04.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "prtg_cas04.gat",0,"::OnRecvCastleP04";
+ Break;
+OnRecvCastleP04:
+ RequestGuildInfo GetCastleData("prtg_cas04.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("prtg_cas04.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas04.gat",GetCastleData("prtg_cas04.gat",1),2;
+ Monster "prtg_cas04.gat",292,14,"EMPERIUM",1288,1,"Agit_D04::OnAgitBreak";
+ GvgOn "prtg_cas04.gat";
+ Break;
+OnAgitBreak:
+ set @GIDp4,getcharid(2);
+ if (@GIDp4 <= 0) Break;
+ set @Economy,GetCastleData("prtg_cas04.gat",2);
+ SetCastleData "prtg_cas04.gat",2,@Economy-5;
+ if (GetCastleData("prtg_cas04.gat",2) < 0) SetCastleData "prtg_cas04.gat",2,0;
+ set @Defence,GetCastleData("prtg_cas04.gat",3);
+ SetCastleData "prtg_cas04.gat",3,@Defence-5;
+ if (GetCastleData("prtg_cas04.gat",3) < 0) SetCastleData "prtg_cas04.gat",3,0;
+ SetCastleData "prtg_cas04.gat",1,@GIDp4;
+ Announce "Guild Base [" + GetCastleName("prtg_cas04.gat") + "] has been taken by the [" + GetGuildName(@GIDp4) + "] guild.",0;
+ MapAnnounce "prtg_cas04.gat","The emperium has been destroyed.",17;
+ GetCastleData "prtg_cas04.gat",0,"::OnRecvCastleP04";
+ SetCastleData "prtg_cas04.gat",2,0;
+ SetCastleData "prtg_cas04.gat",3,0;
+ SetCastleData "prtg_cas04.gat",4,0;
+ SetCastleData "prtg_cas04.gat",5,0;
+ SetCastleData "prtg_cas04.gat",6,0;
+ SetCastleData "prtg_cas04.gat",7,0;
+ SetCastleData "prtg_cas04.gat",8,0;
+ SetCastleData "prtg_cas04.gat",9,0;
+ SetCastleData "prtg_cas04.gat",10,0;
+ SetCastleData "prtg_cas04.gat",11,0;
+ SetCastleData "prtg_cas04.gat",12,0;
+ SetCastleData "prtg_cas04.gat",13,0;
+ SetCastleData "prtg_cas04.gat",14,0;
+ SetCastleData "prtg_cas04.gat",15,0;
+ SetCastleData "prtg_cas04.gat",16,0;
+ SetCastleData "prtg_cas04.gat",17,0;
+ SetCastleData "prtg_cas04.gat",18,0;
+ SetCastleData "prtg_cas04.gat",19,0;
+ SetCastleData "prtg_cas04.gat",20,0;
+ SetCastleData "prtg_cas04.gat",21,0;
+ SetCastleData "prtg_cas04.gat",22,0;
+ SetCastleData "prtg_cas04.gat",23,0;
+ SetCastleData "prtg_cas04.gat",24,0;
+ SetCastleData "prtg_cas04.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "prtg_cas04.gat",GetCastleData("prtg_cas04.gat",1),6;
+ Monster "prtg_cas04.gat",292,14,"EMPERIUM",1288,1,"Agit_D04::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("prtg_cas04.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas04.gat",GetCastleData("prtg_cas04.gat",1),4;
+ KillMonster "prtg_cas04.gat","Agit_D04::OnAgitBreak";
+ GvgOff "prtg_cas04.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_D04_Timer";
+}
+
+prtg_cas04.gat,1,1,1 script Agit_D04_Timer -1,{
+OnTimer500:
+ if (GetCastleData("prtg_cas04.gat",1) != 0) break;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1163,15;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1132,10;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1219,5;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1268,5;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1251,1;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1252,1;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1276,5;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1259,1;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1283,1;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "prtg_cas04.gat",0,0,300,300,"--ja--",1200,1;
+ monster "prtg_cas04.gat",291,14,"--ja--",1268,1;
+ monster "prtg_cas04.gat",291,14,"--ja--",1251,1;
+ monster "prtg_cas04.gat",291,14,"--ja--",1252,1;
+ monster "prtg_cas04.gat",291,14,"--ja--",1219,2;
+ monster "prtg_cas04.gat",291,14,"--ja--",1276,5;
+ Monster "prtg_cas04.gat",292,14,"EMPERIUM",1288,1,"Agit_D04::OnAgitBreak";
+ stopnpctimer "Agit_D04_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------
+prtg_cas05.gat,266,266,0 script Agit_D05 -1,{
+OnAgitInit:
+ GetCastleData "prtg_cas05.gat",0;
+ Break;
+OnInterIfInit:
+ GetCastleData "prtg_cas05.gat",0,"::OnRecvCastleP05";
+ Break;
+OnRecvCastleP05:
+ RequestGuildInfo GetCastleData("prtg_cas05.gat",1);
+ Break;
+OnAgitStart:
+ if (GetCastleData("prtg_cas05.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas05.gat",GetCastleData("prtg_cas05.gat",1),2;
+ Monster "prtg_cas05.gat",266,266,"EMPERIUM",1288,1,"Agit_D05::OnAgitBreak";
+ GvgOn "prtg_cas05.gat";
+ Break;
+OnAgitBreak:
+ set @GIDp5,getcharid(2);
+ if (@GIDp5 <= 0) Break;
+ set @Economy,GetCastleData("prtg_cas05.gat",2);
+ SetCastleData "prtg_cas05.gat",2,@Economy-5;
+ if (GetCastleData("prtg_cas05.gat",2) < 0) SetCastleData "prtg_cas05.gat",2,0;
+ set @Defence,GetCastleData("prtg_cas05.gat",3);
+ SetCastleData "prtg_cas05.gat",3,@Defence-5;
+ if (GetCastleData("prtg_cas05.gat",3) < 0) SetCastleData "prtg_cas05.gat",3,0;
+ SetCastleData "prtg_cas05.gat",1,@GIDp5;
+ Announce "Guild Base [" + GetCastleName("prtg_cas05.gat") + "] has been taken by [" + GetGuildName(@GIDp5) + "] guild.",0;
+ MapAnnounce "prtg_cas05.gat","The emperium has been destroyed.",17;
+ GetCastleData "prtg_cas05.gat",0,"::OnRecvCastleP05";
+ SetCastleData "prtg_cas05.gat",2,0;
+ SetCastleData "prtg_cas05.gat",3,0;
+ SetCastleData "prtg_cas05.gat",4,0;
+ SetCastleData "prtg_cas05.gat",5,0;
+ SetCastleData "prtg_cas05.gat",6,0;
+ SetCastleData "prtg_cas05.gat",7,0;
+ SetCastleData "prtg_cas05.gat",8,0;
+ SetCastleData "prtg_cas05.gat",9,0;
+ SetCastleData "prtg_cas05.gat",10,0;
+ SetCastleData "prtg_cas05.gat",11,0;
+ SetCastleData "prtg_cas05.gat",12,0;
+ SetCastleData "prtg_cas05.gat",13,0;
+ SetCastleData "prtg_cas05.gat",14,0;
+ SetCastleData "prtg_cas05.gat",15,0;
+ SetCastleData "prtg_cas05.gat",16,0;
+ SetCastleData "prtg_cas05.gat",17,0;
+ SetCastleData "prtg_cas05.gat",18,0;
+ SetCastleData "prtg_cas05.gat",19,0;
+ SetCastleData "prtg_cas05.gat",20,0;
+ SetCastleData "prtg_cas05.gat",21,0;
+ SetCastleData "prtg_cas05.gat",22,0;
+ SetCastleData "prtg_cas05.gat",23,0;
+ SetCastleData "prtg_cas05.gat",24,0;
+ SetCastleData "prtg_cas05.gat",25,0;
+ Break;
+OnAgitEliminate:
+ MapRespawnGuildID "prtg_cas05.gat",GetCastleData("prtg_cas05.gat",1),6;
+ Monster "prtg_cas05.gat",266,266,"EMPERIUM",1288,1,"Agit_D05::OnAgitBreak";
+ Break;
+OnAgitEnd:
+ if (GetCastleData("prtg_cas05.gat",1) == 0) break;
+ MapRespawnGuildID "prtg_cas05.gat",GetCastleData("prtg_cas05.gat",1),4;
+ KillMonster "prtg_cas05.gat","Agit_D05::OnAgitBreak";
+ GvgOff "prtg_cas05.gat";
+ Break;
+OnInit:
+initnpctimer "Agit_D05_Timer";
+}
+
+prtg_cas05.gat,1,1,1 script Agit_D05_Timer -1,{
+OnTimer500:
+ if (GetCastleData("prtg_cas05.gat",1) != 0) break;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1163,15;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1132,10;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1219,5;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1268,5;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1251,1;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1252,1;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1276,5;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1259,1;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1283,1;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1275,1;
+ areamonster "prtg_cas05.gat",0,0,300,300,"--ja--",1200,1;
+ monster "prtg_cas05.gat",266,266,"--ja--",1268,1;
+ monster "prtg_cas05.gat",266,266,"--ja--",1251,1;
+ monster "prtg_cas05.gat",266,266,"--ja--",1252,1;
+ monster "prtg_cas05.gat",266,266,"--ja--",1219,2;
+ monster "prtg_cas05.gat",266,266,"--ja--",1276,5;
+ Monster "prtg_cas05.gat",266,266,"EMPERIUM",1288,1,"Agit_D05::OnAgitBreak";
+ stopnpctimer "Agit_D05_Timer";
+ Break;
+}
+//--------------------------------------------------------------------------------------------------------------------------