View Single Post
07/08/14, 06:00 AM   #9
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Faustus View Post
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:
  1. SetChatCategoryColor(CHAT_CATEGORY_SAY, 0.5, 0.5, 0.5)

Categories are listed here:
http://wiki.esoui.com/Globals#ChatChannelCategories
  Reply With Quote