LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Lua Programming Help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=50)
-   -   Invoking /loc or ;loc from LUA (https://www.lotrointerface.com/forums/showthread.php?t=3703)

macskay 07-19-2018 12:50 PM

Invoking /loc or ;loc from LUA
 
Hi,
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. When using Turbine.Shell.WriteLine("/loc") it prints to the Standard Chat.

Is it possible to send any chat message to any Channel (preferably a UserChat Channel)?

Cheers Max

Thurallor 07-19-2018 02:05 PM

Quote:

Originally Posted by macskay (Post 12141)
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.

Quote:

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

glafria 07-22-2018 04:12 AM

Hi,


have a look to garans lotro alerts
http://www.lotrointerface.com/downloads/info609


With this plugin you can create an trigger which fires an Event by clicking an icon.


There are some nice features.
But i donīt understand what is your need.


Greetz Glafria


All times are GMT -5. The time now is 12:04 AM.

vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
© MMOUI