From 78c658cde4dbc59da851434e7acd4104344bf01d Mon Sep 17 00:00:00 2001 From: Lance Date: Thu, 30 Mar 2006 08:52:26 +0000 Subject: * Added execution of OnInterIfInit, OnCharIfInit and OnInterIfInitOnce on script reload. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5806 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index b890a4ce6..e39d9abb6 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -2611,6 +2611,12 @@ int npc_reload (void) //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")); + // Execute rest of the startup events if connected to char-server. [Lance] + if(!CheckForCharServer()){ + ShowStatus("Event '"CL_WHITE"OnCharIfInit"CL_RESET"' executed with '"CL_WHITE"%d"CL_RESET"' NPCs.\n", npc_event_doall("OnCharIfInit")); + ShowStatus("Event '"CL_WHITE"OnInterIfInit"CL_RESET"' executed with '"CL_WHITE"%d"CL_RESET"' NPCs.\n", npc_event_doall("OnInterIfInit")); + ShowStatus("Event '"CL_WHITE"OnInterIfInitOnce"CL_RESET"' executed with '"CL_WHITE"%d"CL_RESET"' NPCs.\n", npc_event_doall("OnInterIfInitOnce")); + } return 0; } -- cgit v1.2.3-70-g09d2