Jump to content


Photo

Gearswap and buffs by id


Best Answer Byrth , 30 January 2015 - 11:28 AM

buff_change(name,gain,buff_table)

 

so you'd want buff_table.id==2 and player_status == 1

Go to the full post


    5 replies to this topic

    #1 Kenshi

    Kenshi

      Advanced Member

    • Members
    • PipPipPip
    • 334 posts

      Posted 29 January 2015 - 07:47 PM

      I think it was shortly released in gearswap to be possible to identify the buffs by id, It is already on the live version? how will be the code? I mainly want to equip bersekers torque only on the wakeable sleep.

       

      something like:

       

      Function buff_change(name,buff_id,gain)
         if buff_id == 2 and player.status == 'Engaged' then
              equip code here
         end
      end
      

       

      will this work?



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 30 January 2015 - 12:11 AM

      windower.register_event('gain buff', function(buff)
          if buff == 2 and windower.ffxi.get_player().status == 1 then
              --[[ Equip code here ]]
          end
      end)


      #3 Kenshi

      Kenshi

        Advanced Member

      • Members
      • PipPipPip
      • 334 posts

        Posted 30 January 2015 - 12:33 AM

        It can't be done inside the buff_change function?



        #4 Arcon

        Arcon

          Advanced Member

        • Windower Staff
        • 1189 posts
        • LocationMunich, Germany

        Posted 30 January 2015 - 06:47 AM

        Oh, sorry, I thought you meant outside of GearSwap. Yes, every change has been pushed live, but I don't know about the Syntax for it. I notified Byrth of this, he can probably answer this.



        #5 Byrth

        Byrth

          Advanced Member

        • Members
        • PipPipPip
        • 85 posts

          Posted 30 January 2015 - 11:28 AM   Best Answer

          buff_change(name,gain,buff_table)

           

          so you'd want buff_table.id==2 and player_status == 1



          #6 Kenshi

          Kenshi

            Advanced Member

          • Members
          • PipPipPip
          • 334 posts

            Posted 31 January 2015 - 01:01 AM

            Thx, got it working ^^






            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users