We have detected that cookies are not enabled on your browser. Please enable cookies to ensure the proper experience.
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2013
    Posts
    11

    Make a button do a slash command?

    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

  2. #2
    Join Date
    Mar 2007
    Posts
    1,590
    Buttons can not perform Alias commands, but there is a separate control called a Quickslot control which can contain an Alias, Item or Skill.

    I would recommend you read the thread https://www.lotro.com/forums/showthr...gins-for-Noobs

    Particularly the post on making various buttons which also includes some information on how to mask a Quickslot control so that it can be a bit less ugly.

    There are a number of existing plugins that you can use to see how a Quickslot can look like a button. For example, the Quick Annotation and Location buttons from MoorMap are simply Quickslots hidden behind masks to look like a button.

  3. #3
    Join Date
    Jun 2011
    Posts
    72
    Quote Originally Posted by Lianden View Post
    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]

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

This form's session has expired. You need to reload the page.

Reload