Hello,
I'm new in lua lotro scripting. I want to make a plugin that periodically (e.g. every 3 seconds) sends "/loc" command into chat for arrow refreshing in waypoint plugin.
I'm not sure if periodicity function calling is possible, but command execution from script must be possible due to Lotro API documantation. Please, can someone help me with such easy script?
Hello,
I'm new in lua lotro scripting. I want to make a plugin that periodically (e.g. every 3 seconds) sends "/loc" command into chat for arrow refreshing in waypoint plugin.
I'm not sure if periodicity function calling is possible, but command execution from script must be possible due to Lotro API documantation. Please, can someone help me with such easy script?
This is impossible. The waypoint plugin does not have this built-in exactly because it is impossible. In short, to send something in chat you need to press a button or click the mouse every single time. You cannot have a program just send it automatically. (Those programs that do outside LOTRO are simulating you pressing that button rather than skipping the need to do it.,
I suppose using external programs is restricted by licence agreement, and using of them can lead to ban from developers?
Regardless of legality or not, you would risk this external input interfering with your own input. Imagine an external program sends "/+l+o+c+enter" every few seconds to LOTRO - whenever you happen to press a button between the "/" and the "l" you will put a character into the chat rather than execute a skill... unless you are exclusively using the mouse to play.
will put a character into the chat rather than execute a skill
There is an option to use macros that presses some button on a keyboard every e.g. 100 ms, all what you need to use this macros is put an alias shortcut on that button. For example, I put an alias (/loc) shortcut on "Shift+3" quickslot and just call shift+3 pressing from external program. And this auto-pressing works even during game-play with pressing other buttons. But it must be illegal.
There is an option to use macros that presses some button on a keyboard every e.g. 100 ms, all what you need to use this macros is put an alias shortcut on that button. For example, I put an alias (/loc) shortcut on "Shift+3" quickslot and just call shift+3 pressing from external program. And this auto-pressing works even during game-play with pressing other buttons. But it must be illegal.
So for doing that kind of macro you need no external software: https://lotro-wiki.com/index.php/Alias
You create a quickbar icon and shortcut for an ingame shell command. so you can click it or press the ingame keybind.
If you want to automate so your alias and trigger is pressed every 3s that is potentially not legal, but I claim still impossible to do without messing with you trying to control the game normally at the same time.