Jump to content
  • 0

About conf/motd.x


Azeroth

Question


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  383
  • Reputation:   121
  • Joined:  03/31/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...