From 6340c58290050726a400fe8ecbfeb45b9ee12b89 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 2 Sep 2012 17:51:29 +0000 Subject: 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 --- src/map/npc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/map/npc.c') 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")); -- cgit v1.2.3-60-g2f50