Kichi Posted April 14, 2013 Posted April 14, 2013 (edited) Hi, void clif_GlobalMessage(struct block_list* bl, const char* message) { char buf[100]; int len; unsigned long color1 = strtoul("0x00FFFF",NULL,0); // DEFAULT: BLUE SEA nullpo_retv(bl); if(!message) return; len = strlen(message)+1; if( len > sizeof(buf)-12 ) { ShowWarning("clif_GlobalMessage: Truncating too long message '%s' (len=%d).\n", message, len); len = sizeof(buf)-12; } WBUFW(buf,0)=0x2C1; WBUFW(buf,2)=len+12; WBUFL(buf,4)=bl->id; WBUFL(buf,8) = (color1&0x0000FF) << 16 | (color1&0x00FF00) | (color1&0xFF0000) >> 16; safestrncpy((char *) WBUFP(buf,12),message,len); clif_send((unsigned char *) buf,WBUFW(buf,2),bl,ALL_CLIENT); } Above is my custom code, that change all globalmes color into BLUE i want to make globalmes support color, and sometime not show the name of NPC who send the message and than the globalmes not send to player's Chatroom help me to extended /hx Edited April 15, 2013 by Kichi Quote
Question
Kichi
Hi,
Above is my custom code, that change all globalmes color into BLUE
i want to make globalmes support color, and sometime not show the name of NPC who send the message
and than the globalmes not send to player's Chatroom
help me to extended /hx
Edited by Kichi1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.