Quantcast LoTROInterface - View Single Post - Invoking /loc or ;loc from LUA
View Single Post
Unread 07-19-2018, 02:05 PM
Thurallor's Avatar
Thurallor Thurallor is offline
The Undying
Interface Author - Click to view interfaces
Join Date: May 2013
Posts: 170
Originally Posted by macskay
I'm currently trying to stitch together a small gathering tool for farming and therefore want to invoke "/loc" or better yet ";loc" from a LUA function.
You can't do that. The best you can do is create a Quickslot with an Alias-type Shortcut in it, and tell the user to click it. The alias would have the "/loc" command in it. For an example of this method, check out Waypoint by lunarwtr.

Or if you prefer ";loc", then the alias can have your own user-defined chat command, with the ";loc" as an argument. This method has the advantage of not spamming the chat window. It's the method I use in my Reminders plugin, although there is probably a simpler example somewhere.

Is it possible to send any chat message to any Channel (preferably a UserChat Channel)?
Nope, just Standard.

Last edited by Thurallor : 07-19-2018 at 02:09 PM.
Reply With Quote