Azeroth Posted August 4, 2015 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 383 Reputation: 121 Joined: 03/31/12 Last Seen: January 29, 2023 Share Posted August 4, 2015 Hi, i'm bit confuse why the conf/motd.txt won't remove supposed to be when i login it should not appear. i already comment the // Message of the day file, when a character logs on, this message is displayed.//motd_txt: conf/motd.txt but it still appear when i login. when i delete the motd.txt in conf/ it's completely remove. How can i fix this? or i want to remove it via source, i know it is locate at pc.c Quote Link to comment Share on other sites More sharing options...
Brian Posted August 6, 2015 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted August 6, 2015 motd_txt: conf/motd.txt^ this line just sets the config setting "motd_txt" to the value "conf/motd.txt" I believe that's also hard-coded to a default value (of "conf/motd.txt") somewhere in /src. So if you comment out the line, the setting is just set to the default value: conf/motd.txt To actually remove the motd, just edit the file conf/motd.txt delete everything, and save the file. Quote Link to comment Share on other sites More sharing options...
Azeroth Posted August 6, 2015 Group: Members Topic Count: 36 Topics Per Day: 0.01 Content Count: 383 Reputation: 121 Joined: 03/31/12 Last Seen: January 29, 2023 Author Share Posted August 6, 2015 motd_txt: conf/motd.txt^ this line just sets the config setting "motd_txt" to the value "conf/motd.txt"I believe that's also hard-coded to a default value (of "conf/motd.txt") somewhere in /src. So if you comment out the line, the setting is just set to the default value: conf/motd.txt To actually remove the motd, just edit the file conf/motd.txt delete everything, and save the file. Thank you for your respond Brian, i just look at in my src/map/pc.c there was a MOTD line in their possible to remove that? i don't wanna pop-up that motd.txt Quote Link to comment Share on other sites More sharing options...
Brian Posted August 7, 2015 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted August 7, 2015 Yes you could remove these lines from /src/map/pc.c // Message of the Day [Valaris] for(i=0; i < MOTD_LINE_SIZE && motd_text[i][0]; i++) { if (battle_config.motd_type) clif_disp_onlyself(sd,motd_text[i],strlen(motd_text[i])); else clif_displaymessage(sd->fd, motd_text[i]); } 1 Quote Link to comment Share on other sites More sharing options...
Question
Azeroth
Hi, i'm bit confuse why the conf/motd.txt won't remove supposed to be when i login it should not appear.
i already comment the
but it still appear when i login. when i delete the motd.txt in conf/ it's completely remove.
How can i fix this? or i want to remove it via source, i know it is locate at pc.c
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.