summaryrefslogtreecommitdiff
path: root/npc/guild2/schg_cas05.txt
diff options
context:
space:
mode:
authorgepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-04 18:37:29 +0000
committergepard1984 <gepard1984@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-03-04 18:37:29 +0000
commit262e60ab0b9cfc1f942a7b3ef11f7ed3abc7b208 (patch)
tree82cb02f8048521c7479ff012511a066612f6d439 /npc/guild2/schg_cas05.txt
parentce4352cfef6f07bf3b4c0324f48f880c5c74f041 (diff)
downloadhercules-262e60ab0b9cfc1f942a7b3ef11f7ed3abc7b208.tar.gz
hercules-262e60ab0b9cfc1f942a7b3ef11f7ed3abc7b208.tar.bz2
hercules-262e60ab0b9cfc1f942a7b3ef11f7ed3abc7b208.tar.xz
hercules-262e60ab0b9cfc1f942a7b3ef11f7ed3abc7b208.zip
- Guild Castle code cleanup:
- removed `MAX_GUILDCASTLE` limit - char-server now caches guild castles in `DBMap` - improved guild castle SQL queries to support non-default values of `MAX_GUARDIANS` - disallowed declaring guild castles on maps that are on other map-servers - map-server now requests data for all guild castles from char-server on initial connect (bugreport:287) - removed ''guildcastleinfo events'' as they were esentially duplicated ''OnAgitInit'' - optimized castle data load packets (bugreport:287) - updated WoE scripts to reflect source changes (scripts no longer need or should request castle or guild data) - updated related docs - Added `db_size` macro. - Replaced manual counting of castles occupied by a guild with `guild_checkcastles()` calls. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15657 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'npc/guild2/schg_cas05.txt')
-rw-r--r--npc/guild2/schg_cas05.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/npc/guild2/schg_cas05.txt b/npc/guild2/schg_cas05.txt
index 3ebdab671..d832a358a 100644
--- a/npc/guild2/schg_cas05.txt
+++ b/npc/guild2/schg_cas05.txt
@@ -27,12 +27,8 @@
schg_cas05,1,1,0 script Manager#sch05_02 111,{
end;
-OnInterIfInitOnce:
- GetCastleData "schg_cas05",0,"::OnRecvCastlesc05";
- end;
-
+OnAgitInit2:
OnRecvCastlesc05:
- RequestGuildInfo GetCastleData("schg_cas05",1);
if (GetCastleData("schg_cas05",1) == 0) {
donpcevent "Manager#sch05_02::Onstart";
}
@@ -2723,7 +2719,7 @@ OnStartArena:
end;
}
MapRespawnGuildID "schg_cas05",GetCastleData("schg_cas05",1),2;
- GetCastleData "schg_cas05",0,"::OnRecvCastlesc05";
+ donpcevent "::OnRecvCastlesc05";
end;
OnTimer10000: