Jump to content


Photo

automatons and gearswap


    3 replies to this topic

    #1 Etrigan

    Etrigan

      Newbie

    • Members
    • Pip
    • 7 posts

      Posted 08 February 2017 - 01:49 PM

      Hi all, 

       

      the long and short of what I am trying to accomplish is actions (currently timer creation) for automaton cooldowns on "attachment abilities". for example the heat capacitor attachment has a 90 second cooldown. I would like to automatically create a timer and possibly other behavior later on. 

       

      I have started with a mote lua for my pup and made adjustments as needed and have tried the following

       

      function job_pet_precast(spell)
          if spell:contains('Heat') then
              add_to_chat(123,'pre DING!.')
          end
          add_to_chat(123, 'job pre fired')
      end
      
      function job_pet_midcast(spell)
          if spell:contains('Heat') then
              add_to_chat(123,'DING job!.')
          end
          add_to_chat(123, 'job mid fired')
      end
      
      function job_pet_aftercast(spell)
          if spell:contains('Heat') then
              add_to_chat(123,'after DING!.')
          end
          add_to_chat(123, 'job after fired')
      end
      

       

      what I have come to glean from this is that pet weaponskills trigger mid and aftercast, but the "attachment abilities" do not trigger any of them.

       

      Not sure if it's something missing from the lua core or my having less of an understanding of the way it's all set up.

       

      Thanks!



      #2 sdahlka

      sdahlka

        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 08 February 2017 - 10:58 PM

        Hi all, 

         

        the long and short of what I am trying to accomplish is actions (currently timer creation) for automaton cooldowns on "attachment abilities". for example the heat capacitor attachment has a 90 second cooldown. I would like to automatically create a timer and possibly other behavior later on. 

         

        I have started with a mote lua for my pup and made adjustments as needed and have tried the following

         

        function job_pet_precast(spell)
            if spell:contains('Heat') then
                add_to_chat(123,'pre DING!.')
            end
            add_to_chat(123, 'job pre fired')
        end
        
        function job_pet_midcast(spell)
            if spell:contains('Heat') then
                add_to_chat(123,'DING job!.')
            end
            add_to_chat(123, 'job mid fired')
        end
        
        function job_pet_aftercast(spell)
            if spell:contains('Heat') then
                add_to_chat(123,'after DING!.')
            end
            add_to_chat(123, 'job after fired')
        end
        

         

        what I have come to glean from this is that pet weaponskills trigger mid and aftercast, but the "attachment abilities" do not trigger any of them.

         

        Not sure if it's something missing from the lua core or my having less of an understanding of the way it's all set up.

         

        Thanks!

        pet weaponskills/abilities used by your pet in ffxi you can only see pet_midcast and pet_aftercast

         

        all abilities caused but your player have no pet_midcast/pet_aftercast as the ability auto activates after(or during) the player aftercast



        #3 Etrigan

        Etrigan

          Newbie

        • Members
        • Pip
        • 7 posts

          Posted 09 February 2017 - 12:39 AM

          that makes sense, but the generic-ified logic for these is

           

          is puppet deployed?

          ->is appropriate attachment attached?

          -->is there a maneuver available for consumption by this attachment?

          --->Is the Timer down?

          ----->Consume Maneuver(s), Start countdown timer for re-use

           

          so my next set of questions are

          is this possibly not something that is sent a-la packet for mid/after cast?

          is this categorized under spell or something else?

          failing all else is there a way where I can get my lua to just read it happening in the chat log and fire a post event? (create a timer via timers plugin)



          #4 Etrigan

          Etrigan

            Newbie

          • Members
          • Pip
          • 7 posts

            Posted 10 February 2017 - 04:26 AM

            I was able to achieve my goal by using (or rather abusing) windower.register_event

             

            Thanks for the help!






            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users