LoTROInterface

LoTROInterface (https://www.lotrointerface.com/forums/index.php)
-   Lua Programming Help (L) (https://www.lotrointerface.com/forums/forumdisplay.php?f=50)
-   -   Plugin Macros (https://www.lotrointerface.com/forums/showthread.php?t=3870)

goldbishop 12-21-2021 12:53 PM

Plugin Macros
 
I am looking to have a ShellCommand associated with my plugin but need help in knowing how to setup the command and associating it with a button click.

Not finding any complete tutorials on how to create a command, implement the logic, and then tying it together with a button or other user action.

Garan 12-21-2021 03:16 PM

Quote:

Originally Posted by goldbishop (Post 12731)
...Not finding any complete tutorials on how to create a command, implement the logic...

That's because the LotRO Lua API specifically prohibits such actions to prevent botting.

goldbishop 12-21-2021 04:53 PM

I never said anything about botting....it really is sad that was your first goto for a response.

Setting up a command and associating to a button, is hardly botting.

JohnMHammer 12-21-2021 05:11 PM

What you are planning is not botting. But if it were possible to do what you wish using the tools provided by LOTRO's flavor of LUA, those same functions could be used to create bots. That is why those functions are not available. And that is all Garan meant, he was not accusing you of anything.

lunarwtr 12-25-2021 01:09 PM

Quote:

Originally Posted by goldbishop (Post 12731)
I am looking to have a ShellCommand associated with my plugin but need help in knowing how to setup the command and associating it with a button click.

Not finding any complete tutorials on how to create a command, implement the logic, and then tying it together with a button or other user action.

https://www.lotrointerface.com/downl...-Waypoint.html

registers chat command for registering location you want it to direct you to.
Code:

/way target 21.4S 45W
Is this what you are looking for an example to?

goldbishop 12-25-2021 07:54 PM

Quote:

Originally Posted by lunarwtr (Post 12736)
https://www.lotrointerface.com/downl...-Waypoint.html

registers chat command for registering location you want it to direct you to.
Code:

/way target 21.4S 45W
Is this what you are looking for an example to?

So there is no way to associate
Code:

/way target
with a button control? So it is clickable instead of a chat-command.

lunarwtr 12-26-2021 10:06 AM

create a shortcut for your slash command, then keybind possibly. Been a few years since I've played lotro tbo.

/shortcut <slot #> <your slash command here>


All times are GMT -5. The time now is 08:29 PM.

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