This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - sp4mm3r

Pages: [1]
1
Hello,

I'm trying to add the worgen druid forms for humans in my 3.3.5a Trinitycore server, but i can't seem to fine the names of the human hair colours anywhere. Does somebody know how to find these?

This is what i've done so far:
Quote
int32 Unit::GetModelForForm(ShapeshiftForm form) const
{
    if (GetTypeId() == TYPEID_PLAYER)
    {
        switch (form)
        {
            case FORM_CAT:
                // Based on Hair color
                if (getRace() == RACE_HUMAN)
                {
                    uint8 hairColor = GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_HAIR_COLOR_ID);
                    /switch (hairColor)
                    {
                        case 0: // Black
                            return 33661;
                        case 1: // Brown
                        case 2: //  (Hair Color?)
                        case 3: // (Hair Color?)
                            return 33662;
                        case 4: // Yellow
                        case 5: // (Hair Color?)
                        case 6: // (Hair Color?)
                        case 7:  // (Hair Color?)
                            return 33664;
                        case 8:  (default)
                        case 9: // White
                            return 33663;
                        default: // Original - Grey
                            return 33660;

But i think/suspect it's supposed to look like the Night Elf one (as shown below) with all the hair color names  attached after each "case nr." (such as // Violet, // Green and so on):
Quote
if (getRace() == RACE_NIGHTELF)
                {
                    uint8 hairColor = GetByteValue(PLAYER_BYTES, PLAYER_BYTES_OFFSET_HAIR_COLOR_ID);
                    switch (hairColor)
                    {
                        case 7: // Violet
                        case 8: (default)
                            return 29405;
                        case 3: // Light Blue
                            return 29406;
                        case 0: // Green
                        case 1: // Light Green
                        case 2: // Dark Green
                            return 29407;
                        case 4: // White
                            return 29408;
                        default: // original - Dark Blue
                            return 892;

Pages: [1]