Jump to content


Photo

GearSwap with commands?


    4 replies to this topic

    #1 K-Man

    K-Man

      Member

    • Members
    • PipPip
    • 17 posts

      Posted 19 May 2014 - 01:39 PM

      I used spellcast with my smn and I had it set up whenever I cast a smn spell it would go to the macro book for the BP Commands.  Since Spellcast is no longer being supported and I tried to read up on gearswap is there anyway to do this function via gearswap and if so how.



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 19 May 2014 - 01:45 PM

      In your precast function, add this:

      function precast(spell)
          -- Other precast stuff here
       
          if spell.english == 'Carbuncle' then
              windower.send_command('input /macro book x')
          elseif spell.english == 'Shiva' then
              windower.send_command('input /macro book y')
          -- and so on
          end
      end


      #3 K-Man

      K-Man

        Member

      • Members
      • PipPip
      • 17 posts

        Posted 19 May 2014 - 01:48 PM

        ok thanks alot



        #4 K-Man

        K-Man

          Member

        • Members
        • PipPip
        • 17 posts

          Posted 19 May 2014 - 01:53 PM

          One last question.  Say if I use the pet command release any way to get it to go back to macro book 1?



          #5 Arcon

          Arcon

            Advanced Member

          • Windower Staff
          • 1189 posts
          • LocationMunich, Germany

          Posted 19 May 2014 - 02:03 PM

          Amend the above example by this:

           

              elseif spell.english == 'Release' then
                  windower.send_command('input /macro book 1')
              end





          1 user(s) are reading this topic

          0 members, 1 guests, 0 anonymous users