summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-02 17:51:29 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-09-02 17:51:29 +0000
commit6340c58290050726a400fe8ecbfeb45b9ee12b89 (patch)
tree40ef2b9c913708c648ec9d21d0cf557a529f99f4
parent4ac20267b11afff0115cdafe1c25175e5a1fea25 (diff)
downloadhercules-6340c58290050726a400fe8ecbfeb45b9ee12b89.tar.gz
hercules-6340c58290050726a400fe8ecbfeb45b9ee12b89.tar.bz2
hercules-6340c58290050726a400fe8ecbfeb45b9ee12b89.tar.xz
hercules-6340c58290050726a400fe8ecbfeb45b9ee12b89.zip
Follow up r16733 also the remaining fix for bugreport:6572, making onagitinit be run on reload to refresh the flag's emblems
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16734 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/npc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index 9a36e5815..8d63f09c4 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -3630,6 +3630,10 @@ int npc_reload(void) {
//Re-read the NPC Script Events cache.
npc_read_event_script();
+ /* refresh guild castle flags on both woe setups */
+ npc_event_doall("OnAgitInit");
+ npc_event_doall("OnAgitInit2");
+
//Execute the OnInit event for freshly loaded npcs. [Skotlex]
ShowStatus("Event '"CL_WHITE"OnInit"CL_RESET"' executed with '"CL_WHITE"%d"CL_RESET"' NPCs.\n",npc_event_doall("OnInit"));