Jump to content


Help determining duration of self buffs?

    2 replies to this topic

    #1 thatdudegrim



    • Members
    • Pip
    • 6 posts

      Posted 06 December 2016 - 10:20 PM

      I'm trying to determine the duration of self-buffs and commit actions upon them (automated rebuffing is not the goal lol). I've inspected outgoing (and even incoming) packets and can find no timestamp or number that appears to correspond to duration.


      The incoming packets I am seeing each and every time I cast a buff are these:


      40: "Packet sent when NPC is attacking"
      75: "Item in delivery box"
      76: "Sent when visiting auction house"
      97: "Packet contains a lot of data about your character's stats"


      The only outgoing packet I see, done microseconds into midcast, is


      26: "An action being done on a target (i.e. an attack or spell)."


      but it also doesn't contain any duration information


      Can you offer any advice?


      I'm aware that Timers does this by evaluation the gear worn at midcast, but is this the only way? I'm not trying to get buff duration on other players, only myself.

      #2 sdahlka


        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 07 December 2016 - 10:50 AM

        if you gearswaps buff_change(name,gain,buff_table) function you will know when a buff is gained and falls

        and the buff_refresh(name,buff_details) function will trigger if a buff is overwritten

        #3 trv


          Advanced Member

        • Members
        • PipPipPip
        • 34 posts

          Posted 07 December 2016 - 11:01 PM

          If you're working outside of gearswap, or if you absolutely need the duration, the incoming packet which contains that information is 0x063. The packet id is reused for different types of information, but will contain the timestamps that indicate when buffs will wear off when the fifth byte has the value 9. This change was made to the packet in the update that introduced the timer display.

          1 user(s) are reading this topic

          0 members, 1 guests, 0 anonymous users