|
@@ -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;
|
|
|
}
|
|
|
|