Originally Posted by Faustus
Like you said in your post, The channel id from GetChatChannelId() appears to be different from the category number. For example, GetChatChannelId("zone") returns 31, but the category number for zone is 6.
Not sure how to directly get the category number.
Also, I updated the wiki with all the category numbers I determined by manually testing:
http://wiki.esoui.com/SetChatCategoryColor
|
As zgrssd said it is not a good idea to use numbers instead of global constants.
You should use for example:
Lua Code:
SetChatCategoryColor(CHAT_CATEGORY_SAY, 0.5, 0.5, 0.5)
Categories are listed here:
http://wiki.esoui.com/Globals#ChatChannelCategories