//::///////////////////////////////////////////////
//:: BODY TAILOR: increase hair, skin, tattoo color
//:: onconv bodytailor
//:: Created By: styzygy
//:: based on the mil tailor by Jake E. Fitch (Milambus Mandragon)
//:://////////////////////////////////////////////
//#include "inc_bodytailor"

void main()
{
    object oPC = GetPCSpeaker();
    int iColorChannel = GetLocalInt(oPC, "iColorChannel");
    int iColor = GetLocalInt(oPC, "iColorBod" + IntToString(iColorChannel));
    //SendMessageToPC(oPC, "Channel=" + IntToString(iColorChannel) + ", Color =" + IntToString(iColor));
    int iNewColor;

    if (iColor < 175)
        iNewColor = iColor + 1;
    else iNewColor = 0;

    SetColor(oPC, iColorChannel, iNewColor);

    SetLocalInt(oPC, "iColorBod" + IntToString(iColorChannel), iNewColor);
    FloatingTextStringOnCreature("Color " + IntToString(iNewColor), oPC, FALSE);
}
