From 9080a58e2184eeb36b30e6dc653ec5459b3acfb1 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 17 May 2013 13:53:41 -0300 Subject: MOTD redesign much more flexible, as per community suggestion in http://hercules.ws/board/topic/320-motd-change-suggestion/ dropped motd_type config new motd is at npc/MOTD.txt dropped @motd, @gmotd commands Signed-off-by: shennetsind --- src/map/npc.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/map/npc.c') diff --git a/src/map/npc.c b/src/map/npc.c index 77ee8d486..913c13e0b 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -3899,6 +3899,8 @@ int npc_reload(void) { map_zone_init(); + npc->motd = npc_name2id("HerculesMOTD"); /* [Ind/Hercules] */ + //Re-read the NPC Script Events cache. npc_read_event_script(); @@ -4031,6 +4033,8 @@ int do_init_npc(void) map_zone_init(); + npc->motd = npc_name2id("HerculesMOTD"); /* [Ind/Hercules] */ + // set up the events cache memset(script_event, 0, sizeof(script_event)); npc_read_event_script(); @@ -4062,3 +4066,8 @@ int do_init_npc(void) return 0; } +void npc_defaults(void) { + npc = &npc_s; + + npc->motd = NULL; +} -- cgit v1.2.3-60-g2f50