Jump to content
  • 0

Nickname colouring system


Question

5 answers to this question

Recommended Posts

Posted

Yes and no

 

If I use that

 

// send message to others (using the send buffer for temp. storage)
-    WFIFOHEAD(fd, 8 + textlen);
-    WFIFOW(fd,0) = 0x8d;
-    WFIFOW(fd,2) = 8 + textlen;
+    WFIFOHEAD(fd, 12 + textlen);
+    WFIFOW(fd,0) = 0x2C1;
+    WFIFOW(fd,2) = 12 + textlen;
     WFIFOL(fd,4) = sd->bl.id;
-    safestrncpy((char*)WFIFOP(fd,8), is_fake ? fakename : text, textlen);
+    if(pc_get_group_level(sd)) // players group_id > 0
+        WFIFOL(fd,8) = (color2&0x0000FF) << 16 | (color2&0x00FF00) | (color2&0xFF0000) >> 16; // RGB -> BGR
+    else // njrmal players
+        WFIFOL(fd,8) = (color1&0x0000FF) << 16 | (color1&0x00FF00) | (color1&0xFF0000) >> 16; // RGB -> BGR
+    safestrncpy((char*)WFIFOP(fd,12), is_fake ? fakename : text, textlen);

 

Is a color chat right??

 

I want for example, :

 

Some one is the PVP leader so this Nickname (where show the guld, party etc) show red, if you are the quest maker player your nick was blue, if you are female and married you nick was pink, ... and some other systems

 

X_X

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