Thread Tools Display Modes
07/06/14, 12:42 PM   #1
Dero
 
Dero's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 14
Receiver of a /tell

Hey there,

im currently Working on an AddOn where i need to get the Receiver of my /tell message.
Is there any way to find out who the one is im currently telling with in LUA?

I already tried the GetDynamicChatChannelName() function but seems that this one only works for Guilds.
  Reply With Quote
07/06/14, 01:05 PM   #2
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Originally Posted by Dero View Post
Hey there,

im currently Working on an AddOn where i need to get the Receiver of my /tell message.
Is there any way to find out who the one is im currently telling with in LUA?

I already tried the GetDynamicChatChannelName() function but seems that this one only works for Guilds.
Probably:
Lua Code:
  1. local name = CHAT_SYSTEM.targets[CHAT_CHANNEL_WHISPER]:GetLastTarget()
  Reply With Quote
07/06/14, 01:27 PM   #3
Dero
 
Dero's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 14
Hey there and thx.
i Zgooed a bit and found this:
ZO_ChatWindowTextEntryLabel:GetText()
there you may filter it out.

i Zgooed a bit further and then i Found this one:
ZO_ChatWindowTextEntry["system"]["currentTarget"]

the last one seems to be the one i need, because its the current Target you are writing to.

But i will test the one you posted as well
TY

Edit: Tested the one you posted, but i dont get anything out of it ;/

Last edited by Dero : 07/06/14 at 01:30 PM.
  Reply With Quote
07/06/14, 02:13 PM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
I have just tested what I have posted and it works. Of course it just tells you the display name of the last person who sent you a /tell. It doesn't work if you didn't receive any message (CHAT_SYSTEM.targets[CHAT_CHANNEL_WHISPER] is nil).
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Receiver of a /tell


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