Jump to content


Photo

Gearswap status_change

Gearswap

Best Answer sdahlka , 12 September 2017 - 04:02 AM

Just wondering if Gearswap is set to ignore certain status changes.

 

I noticed in resources that there are statuses for idle, sitting, dead, etc. but not everything in the lua file triggers.

 

I tested this with the following:

    function status_change(new,old)
        print("Status change - New: " .. new .. "Old: " .. old)
    end

Idle, engaged, resting, chocobo all triggered whereas sitting, sitchair and crafting did not.

 

Just wondering if anyone can add some insight.

only statuses that you can change gear is used by gearswap

 

also because the windower event it tied to is supost to and i quote the doku (http://dev.windower....pi:events:start)

"Triggers on player status change. This only triggers for the following statuses:Idle, Engaged, Resting, Dead, Zoning"

the fact it even triggers for Chocobo is all luck

 

if you want more then that you need to do it your self by parsing incoming packet 0x037

--player status is = data:byte(0x31)

Go to the full post


    2 replies to this topic

    #1 DerianX

    DerianX

      Member

    • Members
    • PipPip
    • 13 posts
    • LocationCanada

    Posted 11 September 2017 - 02:10 AM

    Just wondering if Gearswap is set to ignore certain status changes.

     

    I noticed in resources that there are statuses for idle, sitting, dead, etc. but not everything in the lua file triggers.

     

    I tested this with the following:

        function status_change(new,old)
            print("Status change - New: " .. new .. "Old: " .. old)
        end
    

    Idle, engaged, resting, chocobo all triggered whereas sitting, sitchair and crafting did not.

     

    Just wondering if anyone can add some insight.


    "DX" from archived Windower forum.


    #2 trv

    trv

      Advanced Member

    • Members
    • PipPipPip
    • 34 posts

      Posted 11 September 2017 - 12:14 PM

      windower.register_event('status change',function(new,old)
          windower.debug('status change '..new)
          if gearswap_disabled or T{2,3,4}:contains(old) or T{2,3,4}:contains(new) then return end
          
          refresh_globals()
          equip_sets('status_change',nil,res.statuses[new].english,res.statuses[old].english)
      end)
      
      

       

      It looks like it excludes 'Dead', 'Engaged Dead' and 'Event'. I don't see any other filtering done for statuses.



      #3 sdahlka

      sdahlka

        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 12 September 2017 - 04:02 AM   Best Answer

        Just wondering if Gearswap is set to ignore certain status changes.

         

        I noticed in resources that there are statuses for idle, sitting, dead, etc. but not everything in the lua file triggers.

         

        I tested this with the following:

            function status_change(new,old)
                print("Status change - New: " .. new .. "Old: " .. old)
            end
        

        Idle, engaged, resting, chocobo all triggered whereas sitting, sitchair and crafting did not.

         

        Just wondering if anyone can add some insight.

        only statuses that you can change gear is used by gearswap

         

        also because the windower event it tied to is supost to and i quote the doku (http://dev.windower....pi:events:start)

        "Triggers on player status change. This only triggers for the following statuses:Idle, Engaged, Resting, Dead, Zoning"

        the fact it even triggers for Chocobo is all luck

         

        if you want more then that you need to do it your self by parsing incoming packet 0x037

        --player status is = data:byte(0x31)







        Also tagged with one or more of these keywords: Gearswap

        1 user(s) are reading this topic

        0 members, 1 guests, 0 anonymous users