Dastgir Posted October 14, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Share Posted October 14, 2012 (edited) Can someone help me with changing character name color for gm level 0? I want multi color, i am working on something which is like SELECT color from Char if color=0 Red Color, if color=1 Blue Color if color=2 Green Color if color=3 Yellow Color Only names should be displayed in that color, not chat. Can someone help me to do that? Edited October 21, 2012 by dastgirpojee Quote Link to comment Share on other sites More sharing options...
0 Ice Bear Posted April 20, 2018 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 166 Reputation: 27 Joined: 11/20/11 Last Seen: 7 hours ago Share Posted April 20, 2018 sir @Dastgir is this posible ung 17704? 1 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 14, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 14, 2012 I believe this is source code related ... and I also remember brainstorm reply something it have to be done inside clif.c something ... weirdly, I can't get the topic now using search button... Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 14, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 14, 2012 Any help how to do it in source? Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 14, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 14, 2012 finally found it ( fuh ... over 30 mins search ... I suddenly remember it's done with @fakename ) http://www.eathena.ws/board/index.php?showtopic=270970 and again its not completed @fakename doesn't seem to work and I don't know how to do packet sending either even today Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 15, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 15, 2012 (edited) Any info how to make it work with @send command? "0195 <unit id>.L <char name>.24B <party name>.24B <guild name>.24B <position name>.24B" What's unit id? Please Help me to use @send! Edited October 15, 2012 by dastgirpojee Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 16, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 16, 2012 · Hidden by Capuche, September 20, 2013 - No reason given Hidden by Capuche, September 20, 2013 - No reason given bump! Link to comment
Dastgir Posted October 17, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 17, 2012 · Hidden by Capuche, September 20, 2013 - No reason given Hidden by Capuche, September 20, 2013 - No reason given BUMP! Link to comment
Dastgir Posted October 19, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 19, 2012 BUMP! no help yet? Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 19, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 19, 2012 because nobody know the answer except Brainstorm o.O Quote Link to comment Share on other sites More sharing options...
ph1047 Posted October 20, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 7 Reputation: 0 Joined: 04/05/12 Last Seen: March 11, 2020 Share Posted October 20, 2012 You can't do it without client reverse engineering. Brainstorm's assumption is totally false, ^COLOR is option for Ragnarok's dialog parser, and \033[1;37 is only for console. Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 21, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 21, 2012 Can someone help me with changing chat color for players? I want multi color, i am working on something which is like SELECT color from Char if color=0 Red Color, if color=1 Blue Color if color=2 Green Color if color=3 Yellow Color Chat should be changed. Can someone help me to do that? Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted October 21, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted October 21, 2012 You would have to wait that diff patch release and it affect ALL PLAYERS, not sure if source edit on clif.c can fake player's chat as Announce Color, GM Color, Dispbottom Color. Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 21, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 21, 2012 Just the main chat color change. Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted October 21, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted October 21, 2012 Which one? The chat over head, or in the chat log? Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 21, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 21, 2012 (edited) Both. I guess its editable by clif.c Edited October 21, 2012 by dastgirpojee Quote Link to comment Share on other sites More sharing options...
Lilith Posted October 21, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share Posted October 21, 2012 Use 0x2C1 packet instead of 0x8d in function 'clif_parse_GlobalMessage' (clif.c), then add unsigned long color1 = strtoul("0xFF0000",NULL,0); // for red messages. ... if(pc_get_group_level(sd) >= 99)// only Admin's messages have red color. WFIFOL(fd,8) = (color1&0x0000FF)<<16|(color1&0x00FF00)|(color1&0xFF0000)>>16; Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted October 21, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted October 21, 2012 (edited) Thanks for the code Lililth But it seems the code is not completed yet, because it still has a bug. For example: I create a char named "One Two" on a GM(99) account, then create another char named "Char02" on a non-GM account. 1. When char One Two talk, it shows white on overhead chat, and green on chat log. In Char02 client window, it only shows "Two: aaaaaa" with red color both on overhead chat and chat log. 2. When Char02 talk, it shows white on overhead chat, and green on chat log. In One Two client window, the color turns black both on overhead chat and chat log. In short, the GM name is cropped, and the non GM name doesn't show at all. Anyway, how do you know which packet should be used? (In this case 0x2C1). Maybe it shows black because currently the code doesn't have an 'else' for char below gmlevel(99). I add some lines to compensate the color for char with gmlevel < 99 with: unsigned long color2 = strtoul("0x00FF00",NULL,0); //... WFIFOL(fd,8) = (color1&0x0000FF)<<16|(color1&0x00FF00)|(color1&0xFF0000)>>16; else WFIFOL(fd,8) = (color2&0x0000FF)<<16|(color2&0x00FF00)|(color2&0xFF0000)>>16; Edited October 21, 2012 by nanakiwurtz Quote Link to comment Share on other sites More sharing options...
Lilith Posted October 21, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 407 Reputation: 159 Joined: 11/18/11 Last Seen: November 15, 2014 Share Posted October 21, 2012 Simple patch clif.c.patch Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 22, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 22, 2012 What i told is: SELECT color from Char if color=0 Red Color, if color=1 Blue Color if color=2 Green Color if color=3 Yellow Color WHERE charname=blabla Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted October 22, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted October 22, 2012 Please be patient dastgirpojee Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 23, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 23, 2012 · Hidden by Capuche, September 20, 2013 - No reason given Hidden by Capuche, September 20, 2013 - No reason given Solved, Close please. Link to comment
Lanz Posted October 23, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 32 Reputation: 2 Joined: 11/22/11 Last Seen: October 7, 2016 Share Posted October 23, 2012 (edited) Suggestion: How bout adding it on DB folder name_color.txt and chat_color.txt to make it more user friendly. Ex: <group_id>,<color> 99,FF0000 //GM level 99 would have a red name. <group_id>,<color> 99,FF0000 //GM level 99 would have a red chat . Edited October 23, 2012 by Lanz Quote Link to comment Share on other sites More sharing options...
Dastgir Posted October 23, 2012 Group: Members Topic Count: 26 Topics Per Day: 0.01 Content Count: 331 Reputation: 63 Joined: 11/29/11 Last Seen: Saturday at 10:21 AM Author Share Posted October 23, 2012 Anyways my question was not about gm level if you read properly my post. Quote Link to comment Share on other sites More sharing options...
Lanz Posted October 23, 2012 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 32 Reputation: 2 Joined: 11/22/11 Last Seen: October 7, 2016 Share Posted October 23, 2012 oops Sorry Post updated.. Quote Link to comment Share on other sites More sharing options...
x13th Posted August 19, 2013 Group: Members Topic Count: 55 Topics Per Day: 0.01 Content Count: 206 Reputation: 14 Joined: 11/20/11 Last Seen: April 9, 2024 Share Posted August 19, 2013 Sorry for bumping this ancient thread... But how did you solved this? Can you share it? Quote Link to comment Share on other sites More sharing options...
Question
Dastgir
Can someone help me with changing character name color for gm level 0?
I want multi color, i am working on something which is like
SELECT color from Char
if color=0 Red Color,
if color=1 Blue Color
if color=2 Green Color
if color=3 Yellow Color
Only names should be displayed in that color, not chat.
Can someone help me to do that?
Edited by dastgirpojeeLink to comment
Share on other sites
26 answers 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.