Custom Chat Colors [1.5]

Results 1 to 1 of 1
  1. #1
    Yaaay! Tannous is offline
    MemberRank
    Jul 2012 Join Date
    KonohaLocation
    840Posts

    Custom Chat Colors [1.5]

    Hello everyone, since the original thread about this subject was removed by Gunblade. (http://forum.ragezone.com/f245/custo...olours-883015/)
    I decided to remake it, for someone who has recently asked for it, in the help section.

    So, here you go if anyone else want it...
    Go to Stable/Mint2/Source/MDrawContext.cpp
    and edit the following lines:
    1) search for
    Code:
    unsigned long int MMColorSet[]
    add these under the last line of the array
    Code:
    0xFF00FFFF,	//10
    0xFF388E8E,	//11
    0xFF7D9EC0,	//12
    0xFFC67171,	//13
    0xFFF5F5DC,	//14
    0xFFA9A9A9,	//15
    0xFFEECFA1,	//16
    0xFFEE7600,	//17
    0xFFCDC0B0,	//18
    0xFF000000,	//19
    0xFF8B2323,	//20
    0xFFCDAA7D,	//21
    0xFF458B00,	//22
    0xFFD2691E,	//23
    0xFF6495ED,	//24
    0xFFFFB90F,	//25
    0xFF8B008B,	//26
    0xFF2F4F4F,	//27
    0xFF7CFC00,	//28
    0xFFEEE685,	//29 
    0xFF8470FF,	//30
    0xFFFFE4E1,	//31
    0xFFEE4000,	//32
    0xFF8E8E38,	//33 
    0xFFFFA54F,	//34 
    0xFFFF6347,	//35 
    0xFF8B8B00,	//36 
    0xFFF5F5F5,	//37 
    0xFF00E5EE,	//38 
    0xFF708090,	//39 
    0xFFF4A460,	//40 
    0xFF03FE4A,	//41 
    0xFFFFE4E0,	//42 
    0xFFEE4001,	//43 
    0xFF8E8E3E,	//44
    2) now search for this
    Code:
    if(c=='^' && ('0'<=cc) && (cc<='9'))
    change the 9 to Z, like this
    Code:
    if(c=='^' && ('0'<=cc) && (cc<='Z'))
    3) again search for
    Code:
    if(c=='^' && ('0'<=szText[i+1]) && (szText[i+1]<='9'))
    and change the 9 to Z
    Code:
    if(c=='^' && ('0'<=szText[i+1]) && (szText[i+1]<='Z'))
    4) again search for
    Code:
    if(c=='^' && ('0'<=szText[i+1]) && (szText[i+1]<='9'))
    change the 9 obviously
    Code:
    if(c=='^' && ('0'<=szText[i+1]) && (szText[i+1]<='Z'))
    5) and the last one, search for
    Code:
    if(c=='^' && ('0'<=szText[i+1]) && (szText[i+1]<='9'))
    and again change the 9
    Code:
    if(c=='^' && ('0'<=szText[i+1]) && (szText[i+1]<='Z'))
    - In total it would be 5 edits ! I hope I didn't miss any spot tho

    So a little explanation:

    1) How can I choose my own colors?
    the list above from //10 to //44 are custom colors, which means you can change them, go to this website http://www.2createawebsite.com/build/hex-colors.html and scroll down alittle, choose your color, you'll see below it #[HEX], so change the color from the list above 0xFF[HEX] (FF at the first is the Alpha, don't change it)
    2) Why there are 44 colors, eventhough characters from 0-9 & A-Z are less than this?
    this is because codes in C++, use ASCII table characters, and in this table there are some characters between 0-9 and A-Z, google ASCII table and look at the pictures(how it looks)
    3) Can I change the capital to small in the usage?
    if you want you can, but you have to edit the source and make it in small, and you also have to make the range from a-z alone with 0-9, and not directly from 0-z

    Finally I think everyone knows the usage tho XD
    Code:
    ^[LETTER]
    All the best for everyone
    Last edited by Tannous; 23-06-14 at 07:51 PM.




Advertisement