Hello!
I'm adminsitrating a custom WoW roleplaying server, and I wanted to add the posibility for any character to get any hair colour they wanted, upon request.
The idea is that there're certain skins and hair colours that are restricted to DK's, but my server is modded so the only availible class is the Hunter, with some customizations.
I found a way to modify the Trinity DB in order to get the desired effect, the cose is as follows:
#include <cstdio>
int main()
{
int playerbytes = 117835526;
int skinColor = playerbytes % 256;
int faceStyle = (playerbytes >>
% 256;
int hairStyle = (playerbytes >> 16) % 256;
int hairColor = (playerbytes >> 24) % 256;
int newPlayerBytes = skinColor | faceStyle << 8 | hairStyle << 16 | 12 << 24;
printf("%d",newPlayerBytes);
return 0;
}
newPlayerBytes contains the same skin, face and hair style as before, but now with the hair colour 12 (The finished code would probably have a loop, and scanf's of course, this was my testing ground).
It actually worked as a charm: I simply replaced the playerBytes field in the DB entry for this character, and upon restarting the server, the hair from this Blood Elf Female character turned blue. Thing is... She was the only one that could see it.
Everyone else would see her as a redhead.
I did some tests, and even cleaning cache, if I open 2 WoW accounts at the same time, one would see the character's hair blue (The one that was logged into the modified character), and the other would see the character's hair red.
I was wondering if someone here would know what's happening or how to fix this, or maybe point me to another way to get the DK hair colours for any class (namely Hunter, in this case).