From 620e60eebce2c1f35c5c9a82f6ca365b316587f5 Mon Sep 17 00:00:00 2001 From: Valaris Date: Sun, 29 Jan 2006 16:10:48 +0000 Subject: AS OF SVN REV. 5901, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. EVERYTHING ELSE GOES INTO TRUNK AND WILL BE MERGED INTO STABLE BY VALARIS AND WIZPUTER. -- VALARIS git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5094 54d463be-8e91-2dee-dedb-b68131a5f0ec --- npc/guild/prtg/prtg_ev_agit.txt | 146 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 146 insertions(+) create mode 100644 npc/guild/prtg/prtg_ev_agit.txt (limited to 'npc/guild/prtg/prtg_ev_agit.txt') diff --git a/npc/guild/prtg/prtg_ev_agit.txt b/npc/guild/prtg/prtg_ev_agit.txt new file mode 100644 index 000000000..aa144141f --- /dev/null +++ b/npc/guild/prtg/prtg_ev_agit.txt @@ -0,0 +1,146 @@ +//===== eAthena Script ======================================= +//= War of Emperium - Prontera Guild Wars Events +//===== By: ================================================== +//= jAthena (1.0) +//= 1.1 by Akaru and ho|yAnge| +//===== Current Version: ===================================== +//= 1.3 +//===== Compatible With: ===================================== +//= eAthena 0.1+; RO Episode 4+ +//===== Description: ========================================= +//= Event Triggers of Prontera Guild Wars +//===== Additional Comments: ================================= +//= v1.2 Now using functions for OnAgitStart and OnAgitBreak. [kobra_k88] +//= 1.3 Added code for abandoning captured castles on /breakguild [Lupus] +//============================================================ + + +// Castle 1 ================================================================ +prtg_cas01.gat,197,197,0 script Agit_Pt01 -1,{ +OnInterIfInitOnce: + GetCastleData "prtg_cas01.gat",0,"::OnRecvCastlePt01"; + end; +OnRecvCastlePt01: + RequestGuildInfo GetCastleData("prtg_cas01.gat",1); + end; +OnAgitStart: + callfunc "F_AgitStart","prtg_cas01","Pt01",197,197; + end; +OnAgitBreak: + callfunc "F_AgitBreak","prtg_cas01","Pt01"; + end; +OnGuildBreak: + callfunc "F_GuildBreak","prtg_cas01","Pt01"; + end; +OnAgitEliminate: + MapRespawnGuildID "prtg_cas01.gat",GetCastleData("prtg_cas01.gat",1),6; + Monster "prtg_cas01.gat",197,197,"EMPERIUM",1288,1,"Agit_Pt01::OnAgitBreak"; + end; +OnAgitEnd: + callfunc "F_AgitEnd","prtg_cas01","Pt01"; + end; +} + +// Castle 2 ================================================================ +prtg_cas02.gat,158,174,0 script Agit_Pt02 -1,{ +OnInterIfInitOnce: + GetCastleData "prtg_cas02.gat",0,"::OnRecvCastlePt02"; + end; +OnRecvCastlePt02: + RequestGuildInfo GetCastleData("prtg_cas02.gat",1); + end; +OnAgitStart: + callfunc "F_AgitStart","prtg_cas02","Pt02",158,174; + end; +OnAgitBreak: + callfunc "F_AgitBreak","prtg_cas02","Pt02"; + end; +OnGuildBreak: + callfunc "F_GuildBreak","prtg_cas02","Pt02"; + end; +OnAgitEliminate: + MapRespawnGuildID "prtg_cas02.gat",GetCastleData("prtg_cas02.gat",1),6; + Monster "prtg_cas02.gat",158,174,"EMPERIUM",1288,1,"Agit_Pt02::OnAgitBreak"; + end; +OnAgitEnd: + callfunc "F_AgitEnd","prtg_cas02","Pt02"; + end; +} + +// Castle 3 ================================================================ +prtg_cas03.gat,17,221,0 script Agit_Pt03 -1,{ +OnInterIfInitOnce: + GetCastleData "prtg_cas03.gat",0,"::OnRecvCastlePt03"; + end; +OnRecvCastlePt03: + RequestGuildInfo GetCastleData("prtg_cas03.gat",1); + end; +OnAgitStart: + callfunc "F_AgitStart","prtg_cas03","Pt03",17,221; + end; +OnAgitBreak: + callfunc "F_AgitBreak","prtg_cas03","Pt03"; + end; +OnGuildBreak: + callfunc "F_GuildBreak","prtg_cas03","Pt03"; + end; +OnAgitEliminate: + MapRespawnGuildID "prtg_cas03.gat",GetCastleData("prtg_cas03.gat",1),6; + Monster "prtg_cas03.gat",17,221,"EMPERIUM",1288,1,"Agit_Pt03::OnAgitBreak"; + end; +OnAgitEnd: + callfunc "F_AgitEnd","prtg_cas03","Pt03"; + end; +} + +// Castle 4 ================================================================ +prtg_cas04.gat,292,14,0 script Agit_Pt04 -1,{ +OnInterIfInitOnce: + GetCastleData "prtg_cas04.gat",0,"::OnRecvCastlePt04"; + end; +OnRecvCastlePt04: + RequestGuildInfo GetCastleData("prtg_cas04.gat",1); + end; +OnAgitStart: + callfunc "F_AgitStart","prtg_cas04","Pt04",292,14; + end; +OnAgitBreak: + callfunc "F_AgitBreak","prtg_cas04","Pt04"; + end; +OnGuildBreak: + callfunc "F_GuildBreak","prtg_cas04","Pt04"; + end; +OnAgitEliminate: + MapRespawnGuildID "prtg_cas04.gat",GetCastleData("prtg_cas04.gat",1),6; + Monster "prtg_cas04.gat",292,14,"EMPERIUM",1288,1,"Agit_Pt04::OnAgitBreak"; + end; +OnAgitEnd: + callfunc "F_AgitEnd","prtg_cas04","Pt04"; + end; +} + +// Castle 5 ================================================================ +prtg_cas05.gat,266,266,0 script Agit_Pt05 -1,{ +OnInterIfInitOnce: + GetCastleData "prtg_cas05.gat",0,"::OnRecvCastlePt05"; + end; +OnRecvCastlePt05: + RequestGuildInfo GetCastleData("prtg_cas05.gat",1); + end; +OnAgitStart: + callfunc "F_AgitStart","prtg_cas05","Pt05",266,266; + end; +OnAgitBreak: + callfunc "F_AgitBreak","prtg_cas05","Pt05"; + end; +OnGuildBreak: + callfunc "F_GuildBreak","prtg_cas05","Pt05"; + end; +OnAgitEliminate: + MapRespawnGuildID "prtg_cas05.gat",GetCastleData("prtg_cas05.gat",1),6; + Monster "prtg_cas05.gat",266,266,"EMPERIUM",1288,1,"Agit_Pt05::OnAgitBreak"; + end; +OnAgitEnd: + callfunc "F_AgitEnd","prtg_cas05","Pt05"; + end; +} -- cgit v1.2.3-70-g09d2