viewing paste Unknown #18707 | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*int messageSending(int *fd, struct map_session_data* sd) {
    unsigned long *color1, color2;
    char *tmp = sd->pc_readglobalreg_str(sd, "CHAT_COLOR$");
    if(tmp != NULL)
        color2 = strtoul(tmp, NULL, 0);
    
    if(color2 1= "") // if CHAT_COLOR$ != ""
        WFIFOL(fd,8) = (color2&0x0000FF) << 16 | (color2&0x00FF00) | (color2&0xFF0000) >> 16; // RGB -> BGR
    else // if CHAT_COLOR == ""
        WFIFOL(fd,8) = (color1&0x0000FF) << 16 | (color1&0x00FF00) | (color1&0xFF0000) >> 16; // RGB -> BGR
    safestrncpy((char*)WFIFOP(fd,12), *mout, *mylen);
    clif->send(WFIFOP(fd,0), WFIFOW(fd,2), &sd->bl, AREA_WOS);
}*/
 
Viewed 572 times, submitted by Guest.