Jump to content
  • 0

Main Chat


Question

3 answers to this question

Recommended Posts

Posted (edited)

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
Posted

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.

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