Jump to content


Photo

tracking the type of haste received to input as a numerical variable in gearswap


    5 replies to this topic

    #1 thecuriousorange

    thecuriousorange

      Member

    • Members
    • PipPip
    • 11 posts

      Posted 08 August 2017 - 05:38 PM

      trying to track the kind of haste I receive in a numerical variable for more accurate calculations of my current magic haste.

      here's the gist: https://gist.github....35e0803886931ac

      if there's a way to correct this to make it work, or an alternate method entirely, I'd really appreciate some assistance on it. thankyou

       



      #2 Nifim

      Nifim

        Member

      • Members
      • PipPip
      • 13 posts
      • LocationWashington

      Posted 10 August 2017 - 12:16 AM

      EDIT: This assumption is incorrect! Haste 2 is not 580! 

       

      There is a better way to identify your haste by using buff_change and the buff id.

      Haste and Haste II look like the same buff however they are not, Haste is Buff Id 33 and Haste 2 is 580

      You can use the buff_change(name,gain,buff_details) user event to trigger when you gain or lose any buffs. This event will allow you to check the buff you have received or lost by it's id( the id is under buff_detail.id)

       

      this should be a little cleaner then reading the chat log. Let me know if you would like more info on how to use the buff_change(name,gain,buff_details) user event. otherwise happy coding :)



      #3 Kenshi

      Kenshi

        Advanced Member

      • Members
      • PipPipPip
      • 334 posts

        Posted 10 August 2017 - 02:25 AM

        thats not true, id 580 is haste from geo, haste and haste 2 uses same id.



        #4 Nifim

        Nifim

          Member

        • Members
        • PipPip
        • 13 posts
        • LocationWashington

        Posted 12 August 2017 - 03:35 PM

        so then why are there 2 flurries?  265,  581? I always assumed haste 2 and flurry 2 were 580 and 581 respectively. i guess i have never actually check that :x

         

        edit: Tested out flurry 1 and 2 are 581, and looking at it now its way back when WoTG came out....http://ffxiclopedia....(Status_Effect)



        #5 sdahlka

        sdahlka

          Advanced Member

        • Members
        • PipPipPip
        • 324 posts

          Posted 13 August 2017 - 10:55 PM

          so then why are there 2 flurries?  265,  581? I always assumed haste 2 and flurry 2 were 580 and 581 respectively. i guess i have never actually check that :x
           
          edit: Tested out flurry 1 and 2 are 581, and looking at it now its way back when WoTG came out....http://ffxiclopedia....(Status_Effect)

          one is a rdm spell (lower number) the other is a geo spell (higher number)

          #6 theblackdeath

          theblackdeath

            Member

          • Members
          • PipPip
          • 15 posts

            Posted 22 August 2017 - 09:06 PM

            you can try this. its what i use to toggle haste sets   -- use spell id's not buff id's
             
            function m_action(action)
             
            for index,target in pairs(action['targets']) do
            if (action['targets'] ~= nil) then
            for target_index,target in pairs(action['targets']) do
            for action_index,action in pairs(target['actions']) do
            if (action['message'] == 75) then
            return;
            end
            end
            end
            end
            if (target['id'] == player['id']) then
            -- spells that are applied to you --
            if (action['category'] == 4) then
            if (action['param'] == 57) then -- Haste
              count = 1;
            elseif (action['param'] == 511) then -- Haste II
            count = 2;
            elseif (action['param'] == 358) then -- Haste II
            count = 2;
            end
            end -- make embrava turn Haste to 1
             
            end
            end
            end
            windower.register_event('action', m_action);





            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users