Quantcast Get User's Current Chat Channel? - LoTROInterface
VGInterface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 06-22-2018, 12:27 PM
Henna95 Henna95 is offline
The Wary
 
Join Date: Jun 2018
Posts: 1
Question Get User's Current Chat Channel?

Hi!

I was wondering if there is a way to get user's current chat channel.

On the API documentation I could only find:
Code:
Turbine.Chat.Received = function (sender, args) 
	chatChannel = args.ChatType;
end
Which returns excatly what I want after user types something into the chat, but I would like to get chat type without needing to first type something into the chat.


Here is a rough idea how my code is running at the moment, I use lotro quickslot to create alias for sending messages to the chat. It works fine If i specify chatType to be for example: "/kinship", "/lff" or "/world", but if I leave it empty the alias defaults to "/say" even if I have some other channel open.
Code:
sendButton = Turbine.UI.Lotro.Quickslot();
sendButton : SetShortcut(Turbine.UI.Lotro.Shortcut( Turbine.UI.Lotro.ShortcutType.Alias, getMessage() ));

function getMessage()
	local chatType = getChatType();
	return chatType  .. " test message";
end

Example of desired behaviour:
User has kinship chat opened, and 'send message' button is clicked.
-> message gets printed into the kinship channel.

I would appreciate any feedback/tips on how to solve this. Or information if there is a better way to post messages to chat than using quickslots and alias.

Last edited by Henna95 : 06-22-2018 at 02:31 PM.
Reply With Quote
  #2  
Unread 06-22-2018, 03:19 PM
glafria's Avatar
glafria glafria is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Dec 2015
Location: Germany , Wiesbaden
Posts: 28
Send a message via ICQ to glafria Send a message via MSN to glafria Send a message via Skype™ to glafria
Hi,
I think this is not possible.
There ist no "active" channel selected till you send a message.
So this event will be triggerd only with the sending args.



There are some great plugins which solved this problem.
Have a look for rainbowchat for example.You find this here.


I think possible could be to set the standard chat one time in your plugins preferences.


Greetz Glafria
__________________
Glafria, an old old human healing minestrel.
She is a member of an Legion on Gwaihir


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Glafria, eine alte heilende Menschenfrau.

Sie ist ein ehrbares Mitglied einer Allianz auf Gwaihir.
Reply With Quote
Reply


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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Current LUA status Limbot Interface Help (L) 1 01-10-2012 01:46 PM
Question for plugin users: Digital_Utopia Chit Chat 6 10-26-2010 02:48 AM
Nameless Skin - Some questions for users. NewYears1978 Pre-Beta Interfaces (L) 18 06-11-2010 02:46 PM
My current UI MrJackdaw Chit Chat 6 01-31-2010 04:06 AM
Reminder to Users Cairenn Released Interfaces (L) 0 02-12-2007 06:36 PM


All times are GMT -5. The time now is 05:22 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | VGInterface | LoTROInterface | MMOInterface | Swtorui