
Originally Posted by
Lianden
Just wondering if theres anyway for a button to make it do a slash command like "/f Hello!" or "/dance1" etc...
Ive made a button and i can make it show a line of text in the chat box for myself via "Turbine.Shell.WriteLine" but i cant for the life of me work out how to make it do any slash commands?
Help please

Code:
Button=Turbine.UI.Window()
Button:SetVisible(true)
Button:SetPosition(X,Y)
Button:SetMouseVisible(true)
Button.shortcut = Turbine.UI.Lotro.Shortcut();
Button.shortcut:SetType(Turbine.UI.Lotro.ShortcutType.Alias);
Button.shortcut:SetData("/Slash command here")
Button.quickslot=Turbine.UI.Lotro.Quickslot();
Button.quickslot:SetParent(Button);
Button.quickslot:SetShortcut(Button.shortcut);
Button.quickslot:SetVisible(true);
Not tested, but this should do the trick.
Formerly know as [B]MrJackdaw[/B]
Author of [I]Bevy-o-Bars, SortPack, VBar[/I] and [I]BuffFrame[/I]
Characters; [B]Dirmac[/B], [B]Dvarlin [/B]and [B]Fathiriel[/B]