From 390e6cdf92ba7bfb006b86de99621d7a92b49193 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 2 Sep 2012 17:51:29 +0000 Subject: [PATCH] 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://svn.code.sf.net/p/rathena/svn/trunk@16734 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/map/npc.c b/src/map/npc.c index 9a36e58154..8d63f09c49 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"));