Jump to content
  • 0

Main Chat


ICEROCK

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.01
  • Content Count:  228
  • Reputation:   33
  • Joined:  11/15/12
  • Last Seen:  

http://i47.tinypic.com/2ql5tnr.jpg

where to change that?

i want it to be some thing like this

[ Main ] sadafae: lol

  • Upvote 1
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

http://i47.tinypic.com/2ql5tnr.jpg

where to change that?

i want it to be some thing like this

[ Main ] sadafae: lol

Finally someone is asking for a change in SRC that I (emm, could understand).

Please wait for my post! :D

Sorry, I can't help. I am confused with the language

src\map\intif.c line: 200~206

int intif_main_message(struct map_session_data* sd, const char* message)
{
   char output[256];

   nullpo_ret(sd);

   // format the message for main broadcasting
   snprintf( output, sizeof(output), msg_txt(386), sd->status.name, message );

   // send the message using the inter-server broadcast service
   intif_broadcast2( output, strlen(output) + 1, 0xFE000000, 0, 0, 0, 0 );

   // log the chat message
   log_chat( LOG_CHAT_MAINCHAT, 0, sd->status.char_id, sd->status.account_id, mapindex_id2name(sd->mapindex), sd->bl.x, sd->bl.y, NULL, message );

   return 0;
}

I believe it's there.

oh wait,

msg_txt(386)

There's somewhere else

Edited by Winz
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   4
  • Joined:  12/10/12
  • Last Seen:  

That's not in the src files. Its on the conf/msg_athena and then look for number 386 which is the main chat then change it to this

[Main] %s : %s

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

http://i47.tinypic.com/2ql5tnr.jpg

where to change that?

i want it to be some thing like this

[ Main ] sadafae: lol

That's not in the src files. Its on the conf/msg_athena and then look for number 386 which is the main chat then change it to this

[Main] %s : %s

Oh yes, Nyashuki was right.

I was only finding the message function for the message; on how to print it.

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...