Jump to content


Photo

Call addon command from alias


    4 replies to this topic

    #1 Honalua

    Honalua

      Newbie

    • Members
    • Pip
    • 3 posts

      Posted 07 July 2014 - 03:10 AM

      Hello, I am working on using aliases and binding keys.

       

      I would like to use Itemizer's "get" and "put" functions in an alias. I do not want to bind it to a key. I want to type //fire and have it perform the function.

       

      alias /fire input /get flame sachet case;input /get suzaku's sune-ate case;

       

      This will get the 2 items from my case and put it into my inventory so I can equip them. This won't work. I have tried many different ways.

      This DOES work if you bind it to a key and use /\/get.

      I have tried input /lua invoke Itemizer get name case. I've tried using console and all different cariations of /get, //get & /\/get.

       

      Does anyone know how I would do this?

       

      Thank you!



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 07 July 2014 - 07:58 AM

      First, it should be "alias fire" not "alias /fire". Are you using the addon or the plugin?

       

      Either way, whatever command you use, just prepend "alias fire" and it should work. It shouldn't require any \ or /. If the command is:

      //get flame sachet case

       

      Then you'd write:

      //alias flame get flame sachet case


      #3 Honalua

      Honalua

        Newbie

      • Members
      • Pip
      • 3 posts

        Posted 08 July 2014 - 02:42 AM

        Thanks! After I posted, I removed the / proceeding the command name because I had to type ///command. The main thing that's different is the lack of input command.

         

        This works great. I feel silly. I was trying too hard. I was thinking it wasn't translating the /get correctly.

        #alias.txt
        alias gf get flame sachet case;get suzaku's sune-ate case;wait 1;input /equip ammo "Flame Sachet";input /equip feet "Suzaku's Sune-Ate";
        alias pf input /equip ammo;input /equip feet;put flame sachet case;put suzaku's sune-ate case;
         

        Where do I store variables that I can access from the alias? For this script, I don't want to unequip the ammo and feet but I play too many jobs to put static text in there.

         

        Thanks for the help!



        #4 Arcon

        Arcon

          Advanced Member

        • Windower Staff
        • 1189 posts
        • LocationMunich, Germany

        Posted 08 July 2014 - 05:20 AM

        That's not possible unless you use SpellCast (which introduces its own variable system, but even then it will only work if it goes through outgoing chat, not from the Windower console).

         

        Instead, you should modify the alias on job change, using Lua or AutoExec.



        #5 Honalua

        Honalua

          Newbie

        • Members
        • Pip
        • 3 posts

          Posted 09 July 2014 - 02:51 AM

          Thank you very much!






          1 user(s) are reading this topic

          0 members, 1 guests, 0 anonymous users