PDA

View Full Version : Invoking /loc or ;loc from LUA


macskay
07-19-2018, 12:50 PM
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
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 (https://www.lotrointerface.com/downloads/info640) 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 (http://www.lotrointerface.com/downloads/info993-Reminders.html) 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.

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