-
Notifications
You must be signed in to change notification settings - Fork 760
Clif Displaymessage
Haru edited this page Oct 19, 2016
·
1 revision
int '''clif_displaymessage'''(const int fd, const char* mes);
- fd - Socket descriptor (connection handle) for the connection to send the text to.
- mes - Text to send to the client.
Sends a text to the client, which is displayed like normal self-chat (green font in chat and above characters head. Message is only visible to the client, it was sent to. Usually this function is used for at-command output.
clif->displaymessage(sd->fd, "Character not found.");
Would display "Character not found." above sd's head. Same thing can also be accomplished (and preferred) by using msg_txt function:
clif->displaymessage(sd->fd, msg_txt(3));