"Idea" because I might attempt it if its possible(never done any scripting before, so I have no idea really). And let me get this out of the way, Im ripping both of these strait from The Old Republic. Theyre just little quality of life things.
Number one, an "Invite to Fellowship" button that appears on your targets portrait if its another player. Click it to send the other player an invite, thats it. From what I can see its probably not possible with the current lua to make one thats the same as there is in TOR, so I may have to settle for just a detached movable button that the player can place next to their target frames. But what I also dont know is... is it possible to detect if another player is already in a fellowship or not.
Number two, automatic chat channel switching. Where when you join a fellowship it changes the default channel to fellowship chat(same as going /f ), or changing it to raid chat when in a raid. I have absolutely no idea if the current scripting language has anything for modifying the chat window.
So first of all does anyone whose been playing around with the lua for a while know if these are possible(or have already been done)? And since Ill probably attempt to do this myself, anyone have any other suggestions in the same vein as these two?
It can be done, just a matter of if WB and the other company's are willing to make the upgrade. But the "Scripting" its self for the game can allow that
I've never done any skinning, but the first idea may be possible that way using a custom portrait replacement. I think that would be a better solution than trying to build a stand-alone invite button plugin - not even sure that's possible. A plugin definitely wouldn't have any access to information about the current target, that's not exposed in the API currently.
The second idea isn't currently possible with a plugin either, at least not without some sort of manual user action each time. It could detect that you joined a party, but it can't automatically send chat commands - users have to click something to initiate any such plugin-driven action. It could probably auto-toggle the command the button is tied to to switch to the right channel based on your grouping status, but that's about it.
Anyone feel free to correct me if I'm missing something...I'm still pretty new to this.
Yeh Ive been looking around and playing with some tutorials and such, and it doesnt appear that the kind of control I want is available (as Ph0enix pointed out). I can make a button, but I cant get it to send "/invite" to the chat window(easiest way I could think of doing it).
Havnt attempted the chat channel thing yet, but it doesnt look good either
Though for anyone interested you can make an "invite button" with an alias, which is good enough for me since I have my target frame near my hotbars. Its "/alias ;i /invite ;target", then shortcut it somewhere like "/alias shortcut ;i 12".
Seems to work, but I dont want to run around spamming invites to test it out more
Yeh Ive been looking around and playing with some tutorials and such, and it doesnt appear that the kind of control I want is available (as Ph0enix pointed out). I can make a button, but I cant get it to send "/invite" to the chat window(easiest way I could think of doing it).
You want a shortcut - make a Turbine.UI.Lotro.Quickslot, then you'll want something like :SetShortcut(Turbine.UI.Lotro. Shortcut(Turbine.UI.Lotro.Shor tcutType.Alias, "/invite ;target")); (I might have misremembered that - check the docs and/or make a quickslot, slot the appropriate alias, and :GetShortcut(), and check the shortcut out.
After that, you'll want to overlay your button graphic over the quickslot and :SetMouseVisible(false); the graphic control, so clicking on it uses the quickslot.
You can check if you're in a party and have lead, and disable the button if you are and you don't have lead, but you can't check the target at the moment.