Thread Tools Display Modes
09/15/16, 05:24 AM   #1
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
channelType

hey guys where i can find all values?

right now i know:

-- 0: say
-- 2: whisper
-- 3: party
-- 31: zone

but its not full list

thx
  Reply With Quote
09/15/16, 10:18 AM   #2
Shinni
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 167
Here is a list sorted by category:
http://wiki.esoui.com/Globals#MsgChannelType
And this is the complete list of all constants:
http://wiki.esoui.com/Constant_Value..._CHANNEL_EMOTE

These are global variables, so you can use CHAT_CHANNEL_SAY in lua code instead of the number 0.
  Reply With Quote
09/16/16, 04:58 AM   #3
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by Shinni View Post
Here is a list sorted by category:
http://wiki.esoui.com/Globals#MsgChannelType
And this is the complete list of all constants:
http://wiki.esoui.com/Constant_Value..._CHANNEL_EMOTE

These are global variables, so you can use CHAT_CHANNEL_SAY in lua code instead of the number 0.
hey, look i modified a code, added channels and commented guild part, but addon still wont listen guilds chats
any clue?

DailyAutoshare

Code:
local function OnChatMessage(eventCode, channelType, fromName, messageText, isCustomerService)
    
	--local guildMessage = DAS.EvaluateGuildInvite(channelType, fromName, messageText)
	--if guildMessage or (not DAS.GetActiveIn()) then return end
	
	-- 0: say
	-- 2: whisper
	-- 3: party
	-- 31: zone
	
	if (channelType == 3 or channelType == 2) then	-- group 

		if DAS.IsMatch(messageText, "share") or DAS.IsMatch(messageText, "quest")  or DAS.IsMatch(messageText, "please") then 	
			DAS.TryShareActiveDaily(fromName)
		end	
		if DAS.IsMatch(messageText, "stop") then
			DAS.TryDisableAutoShare(eventCode, channelType, fromName, messageText, isCustomerService)
		end	
		
	end
	 if DAS.FindInList({0, 2, 31, 12, 13, 14, 15, 16}, channelType) then -- zone, say, whisper, guilds
	 
		if (fromName == "") or (nil == fromName) then return end
		
		if DAS.IsMatch(fromName, GetUnitName('player')) 
		then			
			if not DAS.IsMatch(messageText, "+") then return end
			DAS.SetAutoAcceptInvite(true)
			zo_callLater(function() DAS.SetAutoAcceptInvite(false) end, 5000)
		end
		
		if GetBingoMatch(messageText) then 
			DAS.TryInvite(fromName) 
		end		
	end	
end

Last edited by QuadroTony : 09/16/16 at 06:34 AM.
  Reply With Quote
09/18/16, 03:23 AM   #4
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
or point me to right direction
  Reply With Quote
09/18/16, 04:06 AM   #5
votan
 
votan's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2014
Posts: 577
Originally Posted by QuadroTony View Post
or point me to right direction
okay
place some d() to see which part is executed at all and what values the variables have, so that you know why not.

e.g.
Lua Code:
  1. d("here1", channelType)
  2. d("here2", fromName)
and so on.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » channelType

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off