Jump to content


Photo

Register event for Reive Mark not working with AutoExec?


    5 replies to this topic

    #1 Cptbirdseye

    Cptbirdseye

      Advanced Member

    • Members
    • PipPipPip
    • 88 posts

      Posted 03 July 2014 - 06:48 AM

      I'm having trouble making this work and not sure if it's maybe mistyped or just not supported, can someone help please?

       

      <!-- Buff Gains and Zone Changes -->
      
      <register event="gainbuff_Reive_Mark" silent="true">input //lua load reive</register>
      <register event="losebuff_Reive_Mark" silent="true">input //lua unload reive</register>


      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 03 July 2014 - 10:28 AM

      I'd bet it's related to Reive Mark being ID 0x1FF and SE using 0xFF as their "no buff" ID. If you can do me a favor and go to a Reive, and once you receive the mark type this (you will need the Eval addon loaded):

      //eval require('luau')
      //eval print(L(windower.ffxi.get_player().buffs))

       

      If you could do that then come back and tell me the numbers it prints to the console, I'd appreciate it. Would help in debugging this issue.



      #3 sdahlka

      sdahlka

        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 03 July 2014 - 04:32 PM

        if your are using gearswap you can do this as well

         

        function buff_change(name,gain)
            if name == "Reive Mark" then
                if gain then
                    send_command('lua load reive')
                else
                    send_command('lua unload reive')
                end
            end
        end
         


        #4 Arcon

        Arcon

          Advanced Member

        • Windower Staff
        • 1189 posts
        • LocationMunich, Germany

        Posted 03 July 2014 - 09:14 PM

        That is really not something that should go in your GS file for a number of reasons. If anything, you should make a blank addon that does that (and you can use that to replace AutoExec entirely).

         

        But still, I need someone to perform the test above so I know if it's an AE exclusive error or an error in our event API. If it's an error in our API, the Lua version won't work either.



        #5 Cptbirdseye

        Cptbirdseye

          Advanced Member

        • Members
        • PipPipPip
        • 88 posts

          Posted 04 July 2014 - 12:35 AM

          ok I'll go try it out.

           

          Hmm, interestingly this time Reive was loaded, but after the reive ended POL crashed.  Still I was able to get the numbers in, 511.  Didn't crash 2nd time I tried another reive.  I wonder if it activated because I also added this to the lines:

           

           

          <register event="gainbuff_Reive_Mark" silent="true">input //lua load reive; input /echo Reive Buff activated</register>
          <register event="losebuff_Reive_Mark" silent="true">input //lua unload reive; input /echo Reive Buff deactivated</register>


          #6 Cptbirdseye

          Cptbirdseye

            Advanced Member

          • Members
          • PipPipPip
          • 88 posts

            Posted 04 July 2014 - 07:50 AM

            ok I feel really embarassed about this now, lol.  For months this wouldn't work, and yet ever since putting in the echo it's started working.  I don't know why it has right after reporting it not working but I'm happy it finally works for me.






            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users