Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
rank color change
02-27-2010, 04:17 PM
Post: #1
rank color change
First off, I would like to say I love the new forums Heart and minerCPP is awesome. Now to what I would like to have some help with. My C++ knowledge is very limited and I would like to know how to change the rank colors. The red for owner is too hard to read.


Thank you,
ziek
Find all posts by this user
02-27-2010, 04:26 PM (This post was last modified: 02-27-2010 04:26 PM by TkTech.)
Post: #2
RE: rank color change
Heya ziek1526. Sadly, you have to manually edit the color codes in the source code. The good news is its all in one spot.
Open up Server.cpp and go to line 1749. This is the function that returns the color codes based on the user level. If you want to change the color for the owner, edit:

Code:
if(userlevel == 255)
    return '4';

Programming Discussion and Help | Want to email me?
Visit this user's website Find all posts by this user
02-27-2010, 04:43 PM
Post: #3
RE: rank color change
Thank you so much! and I'll make sure to break the software so I can find you some bugs Tongue
Find all posts by this user
02-28-2010, 02:37 AM
Post: #4
RE: rank color change
Heh, also you might want to change /help entry for owner to whatever new color you set.

minerCPP timeoutee Smile
Find all posts by this user
02-28-2010, 05:43 AM
Post: #5
RE: rank color change
Also change the levelToClass() function, so they receive the proper message when you change their userlevel.
Find all posts by this user
03-06-2010, 07:55 PM
Post: #6
RE: rank color change
(02-28-2010 05:43 AM)Unison Wrote:  Also change the levelToClass() function, so they receive the proper message when you change their userlevel.

How? What to put?
Find all posts by this user
03-07-2010, 05:55 AM
Post: #7
RE: rank color change
The colors are listed in 3 places for each rank. the levelToClass() function, the help messages, and getColorCode().

If you change the colors you will have to change them in all three places.
Find all posts by this user
03-07-2010, 11:10 AM
Post: #8
RE: rank color change
I can't understand Sad.
Find all posts by this user
03-11-2010, 06:36 AM
Post: #9
RE: rank color change
I have changed the rank names in all instances i could find yet it makes no effect, and the colors, and helpranks i cant even find the user levels and such, is it all in the server file?
Find all posts by this user


Forum Jump:



Powered By MyBB, © 2002-2026 MyBB Group | ORANGE ACCENT | By Kyle M at cmybb.com
Thanks to matvei.org for hosting and helping with our site!