lotrointerface.com
Search Downloads


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

Reply
Thread Tools Display Modes
  #1  
Unread 07-19-2018, 12:50 PM
macskay macskay is offline
The Wary
Interface Author - Click to view interfaces
 
Join Date: Aug 2017
Posts: 1
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
Reply With Quote
  #2  
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: 202
Quote:
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.

Quote:
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
  #3  
Unread 07-22-2018, 04:12 AM
glafria's Avatar
glafria glafria is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Dec 2015
Location: Germany , Wiesbaden
Posts: 33
Send a message via ICQ to glafria Send a message via MSN to glafria Send a message via Skype™ to glafria
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
__________________
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
;loc ? tralkar Interface Requests (L) 7 07-09-2007 11:24 AM


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


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui