• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook pagefor updates, or we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.)

[Small-Guide/Source] Changing item colors!

Newbie Spellweaver
Joined
Apr 20, 2013
Messages
62
Reaction score
8
Hello, this is not as much as a tutorial just a small guide about wndmanger.cpp
I'll be teaching you how to change item colors (awakening/element/piercing/etc) and for blessing also.
This is for people who want to make their server look more fancy!

Ok so, go to your source and open wndmanager.cpp
and search for
Code:
dwItemColor[FIRST_TC].dwAwakening	= D3DCOLOR_XRGB
For me it looks like this:
Code:
dwItemColor[FIRST_TC].dwAwakening	= D3DCOLOR_XRGB( [COLOR=#ff0000]0[/COLOR], [COLOR=#00ff00]255[/COLOR], [COLOR=#0000ff]0[/COLOR] );
As you can notice it's RGB color, and my coloring is 0 for red, 255 for green, 0 for blue so the item normal awakening's color is pure green.

You can also search for:
Code:
//Blessing
dwItemColor[FIRST_TC].dwBlessing	= D3DCOLOR_XRGB

//Piercing
dwItemColor[FIRST_TC].dwPiercing			= D3DCOLOR_XRGB

you can explore the rest by just looking in the file. :thumbup:
 
Back
Top