Jump to content
  • 0

About conf/motd.x


Question

Posted

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

3 answers to this question

Recommended Posts

Posted

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.

Posted
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

Posted

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]);
		}
  • Upvote 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...