summaryrefslogtreecommitdiff
path: root/npc/guild
diff options
context:
space:
mode:
authorzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-23 17:59:23 +0000
committerzephyrus <zephyrus@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-09-23 17:59:23 +0000
commitef078aa470f6bb5b1a3c88939f1aabf5bad13fdf (patch)
treed412452c0992d3ba86f0f55ff214247b50260ef7 /npc/guild
parent19b1729631284b6cf2c2e79bfbe362734ce8ff77 (diff)
downloadhercules-ef078aa470f6bb5b1a3c88939f1aabf5bad13fdf.tar.gz
hercules-ef078aa470f6bb5b1a3c88939f1aabf5bad13fdf.tar.bz2
hercules-ef078aa470f6bb5b1a3c88939f1aabf5bad13fdf.tar.xz
hercules-ef078aa470f6bb5b1a3c88939f1aabf5bad13fdf.zip
- Little optimization on agit_template.txt
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13234 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild')
-rw-r--r--npc/guild/agit_template.txt31
1 files changed, 4 insertions, 27 deletions
diff --git a/npc/guild/agit_template.txt b/npc/guild/agit_template.txt
index 7d9462b1f..3c8913b18 100644
--- a/npc/guild/agit_template.txt
+++ b/npc/guild/agit_template.txt
@@ -50,30 +50,8 @@
// Load (or reload) specific information for a castle.
OnInterIfInitOnce:
- if (strnpcinfo(2) == "aldeg_cas01") { GetCastleData "aldeg_cas01",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "aldeg_cas02") { GetCastleData "aldeg_cas02",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "aldeg_cas03") { GetCastleData "aldeg_cas03",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "aldeg_cas04") { GetCastleData "aldeg_cas04",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "aldeg_cas05") { GetCastleData "aldeg_cas05",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "gefg_cas01") { GetCastleData "gefg_cas01",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "gefg_cas02") { GetCastleData "gefg_cas02",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "gefg_cas03") { GetCastleData "gefg_cas03",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "gefg_cas04") { GetCastleData "gefg_cas04",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "gefg_cas05") { GetCastleData "gefg_cas05",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "payg_cas01") { GetCastleData "payg_cas01",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "payg_cas02") { GetCastleData "payg_cas02",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "payg_cas03") { GetCastleData "payg_cas03",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "payg_cas04") { GetCastleData "payg_cas04",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "payg_cas05") { GetCastleData "payg_cas05",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "prtg_cas01") { GetCastleData "prtg_cas01",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "prtg_cas02") { GetCastleData "prtg_cas02",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "prtg_cas03") { GetCastleData "prtg_cas03",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "prtg_cas04") { GetCastleData "prtg_cas04",0,strnpcinfo(0)+"::OnRecvCastle"; }
- else if (strnpcinfo(2) == "prtg_cas05") { GetCastleData "prtg_cas05",0,strnpcinfo(0)+"::OnRecvCastle"; }
- // Add custom Guild Castles here.
- else {
- end;
- }
+ if (strnpcinfo(0) == "Gld_Agit_Manager") end;
+ GetCastleData strnpcinfo(2),0,strnpcinfo(0) + "::OnRecvCastle";
end;
// War of Emperium has started.
@@ -153,10 +131,9 @@ OnAgitBreak:
}
}
// Respawn the Emperium, and display new owners.
- if (agitcheck()) {
- sleep 500; // Slow down script execution slightly.
+ sleep 500; // Slow down script execution slightly.
+ if( agitcheck() )
donpcevent "Agit#"+strnpcinfo(2)+"::OnStartArena";
- }
sleep getbattleflag("gvg_eliminate_time");
announce "The [" + getcastlename(strnpcinfo(2)) + "] castle has been conquered by the [" + getguildName(.@GID) + "] guild.",bc_all;
end;