Maintenance for the week of December 23:
• NA megaservers for maintenance – December 23, 4:00AM EST (9:00 UTC) - 9:00AM EST (14:00 UTC)
• EU megaservers for maintenance – December 23, 9:00 UTC (4:00AM EST) - 14:00 UTC (9:00AM EST)

SetChatCategoryColor bugged

Faustes
Faustes
✭✭✭
SetChatCategoryColor (integer category, number red, number green, number blue)

Category 1 and 5 are both assigned to /say. As a result, there doesn't seem to be a way to to change the "NPC" color.
  • zgrssd
    zgrssd
    ✭✭✭✭
    I checked it and it does not appear true.

    I set the Color on one Character to black. Then let UCT save that and apply that to another.
    Worked like a charm. And all UCT does is itterate over the categories from 1 too GetNumChatCategories()

    Please show us your code. Chances are you made a mistake.
    Also could you be confused by the color preview not updating?
    When setting the Category Color via addon code the color used by the "make chat message" editbox and "current channel" label is not updated. But the game still uses the right colors.
    Edited by zgrssd on July 8, 2014 7:53AM
    Elana Peterson (EU), Dominion, Imperial Sorc, Rune & Alchemy Crafting Char
    Leonida Peterson (EU), Daggerfall, Kajiit Nightblade, Tank & main Crafter
    Kurga Peterson (EU), Ebonhart, Ork Dragonknight, Provision Mule
    Coldblood Peterson (EU) Argonian Templer, Daggerfall, Healer
    Incendia Peterson (EU), Dominion, Dunmer Dragonknight, fire DPS & healer
    Haldor Belendor (EU), Ebonhart, Breton Sorcerer, Tank
    Fuliminictus Peterson (EU), Ebonhart, Altmer Sorcerer, Electric DPS

    Me babbling about PvE roles and Armor, Short Guide to Addon Programming (for Programmers)

    If you think anything I or somebody else said violates the Rules of this Forum, you are free to flag my posts. Till I get any notifcaion from this, I just asume you know you have no case against me or Zenimax disagrees with you.
  • Faustes
    Faustes
    ✭✭✭
    zgrssd wrote: »
    I checked it and it does not appear true.

    I set the Color on one Character to black. Then let UCT save that and apply that to another.
    Worked like a charm. And all UCT does is itterate over the categories from 1 too GetNumChatCategories()

    Please show us your code. Chances are you made a mistake.
    Also could you be confused by the color preview not updating?
    When setting the Category Color via addon code the color used by the "make chat message" editbox and "current channel" label is not updated. But the game still uses the right colors.

    Thanks for that GetNumChatCategories(), I didn't know that was a command.

    With it, I figured out "NPC" is category 41 for some reason, so this fixes my original issue.

    I'm not even sure what category 5 is. I think it doesn't exist, so it defaults to 1

    Ex:

    SetChatCategoryColor(1,0,0,0) - say is black
    SetChatCategoryColor(5, .05, .05 , .05) - category 5 doesn't exist? So it defaults to chat?
  • zgrssd
    zgrssd
    ✭✭✭✭
    Faustes wrote: »
    I'm not even sure what category 5 is. I think it doesn't exist, so it defaults to 1

    Ex:

    SetChatCategoryColor(1,0,0,0) - say is black
    SetChatCategoryColor(5, .05, .05 , .05) - category 5 doesn't exist? So it defaults to chat?
    According to the global constants, currenlty Category 5 is "Chat_Category_Unused_1"
    Elana Peterson (EU), Dominion, Imperial Sorc, Rune & Alchemy Crafting Char
    Leonida Peterson (EU), Daggerfall, Kajiit Nightblade, Tank & main Crafter
    Kurga Peterson (EU), Ebonhart, Ork Dragonknight, Provision Mule
    Coldblood Peterson (EU) Argonian Templer, Daggerfall, Healer
    Incendia Peterson (EU), Dominion, Dunmer Dragonknight, fire DPS & healer
    Haldor Belendor (EU), Ebonhart, Breton Sorcerer, Tank
    Fuliminictus Peterson (EU), Ebonhart, Altmer Sorcerer, Electric DPS

    Me babbling about PvE roles and Armor, Short Guide to Addon Programming (for Programmers)

    If you think anything I or somebody else said violates the Rules of this Forum, you are free to flag my posts. Till I get any notifcaion from this, I just asume you know you have no case against me or Zenimax disagrees with you.
  • Garkin
    Garkin
    ✭✭✭
    Faustes wrote: »
    SetChatCategoryColor (integer category, number red, number green, number blue)

    Category 1 and 5 are both assigned to /say. As a result, there doesn't seem to be a way to to change the "NPC" color.
    It's not a bug, you should use global constants instead of numbers.

    This will always work:
    SetChatCategoryColor(CHAT_CHANNEL_MONSTER_SAY, 0.5, 0.5, 0.5)

    List of chat categories:
    http://wiki.esoui.com/Globals#ChatChannelCategories
    Edited by Garkin on July 8, 2014 1:48PM
    Garkin / EU / CSF guild
    My addons: SkyShards, LoreBooks, Dustman, Map Coordinates, No, thank you, ... (full list)
    I'm taking care of: Azurah - Interface Enhanced, Srendarr - Aura, Buff & Debuff Tracker and more
    My folder with updated/modified addons: DROPBOX
Sign In or Register to comment.