summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-05-17 13:53:41 -0300
committershennetsind <ind@henn.et>2013-05-17 13:53:41 -0300
commit9080a58e2184eeb36b30e6dc653ec5459b3acfb1 (patch)
treee7bc8f866c29ab876b18fd17c165ac47becfe43c /src/map/npc.c
parent3820bd7e7715bc84f458cf1bf466e6377a2d2e46 (diff)
downloadhercules-9080a58e2184eeb36b30e6dc653ec5459b3acfb1.tar.gz
hercules-9080a58e2184eeb36b30e6dc653ec5459b3acfb1.tar.bz2
hercules-9080a58e2184eeb36b30e6dc653ec5459b3acfb1.tar.xz
hercules-9080a58e2184eeb36b30e6dc653ec5459b3acfb1.zip
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 <ind@henn.et>
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c9
1 files changed, 9 insertions, 0 deletions
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;
+}