Jump to content
  • 0

Nickname colouring system


Nana

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

Anyone have this feature?,

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  331
  • Reputation:   63
  • Joined:  11/29/11
  • Last Seen:  

Not possible via source, learn client reversing or wait for someone who is pro at this.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  118
  • Reputation:   6
  • Joined:  12/20/12
  • Last Seen:  

Do you or anyone have a guide to start with that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

i want this too :(

Link to comment
Share on other sites

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.

×
×
  • Create New...