Jump to content


Photo

Custom Timers

Timers PluginMulti-box

    2 replies to this topic

    #1 Aliquis

    Aliquis

      Member

    • Members
    • PipPip
    • 17 posts
    • LocationUSA

    Posted 25 August 2015 - 11:04 PM

    I was wondering if there was a way to set up custom timers for one of my character's bard songs to be displayed on screen for the other character. Currently playing with one monitor and alt tabbing between them. I've been making a lot of use out of the send addon to macro from the other character and this would be very helpful if possible to set up.



    #2 Iryoku

    Iryoku

      Advanced Member

    • Windower Staff
    • 488 posts

      Posted 26 August 2015 - 04:21 AM

      this is pretty easy to do if you use GearSwap, you're not going to get automatic support for merits and gear like you do with the built-in timers stuff, but it's not too hard to set things up manually. Just create a table with song durations like this

      buff_durations = {
          ['Ballad'] = 120,
          ['Ballad II'] = 120,
          ['Ballad III'] = 120,
          ['Victory March'] = 120,
          -- add more spells/abilities as needed.
      }
      

      and then add something like this to your aftercast function

      if not spell.interrupted and buff_durations[spell.name] then
          send_command('send Othercharacter timers c \"'..spell.name..' ['..player.name..']\" '..buff_durations[spell.name]..' down')
      end
      


      #3 Aliquis

      Aliquis

        Member

      • Members
      • PipPip
      • 17 posts
      • LocationUSA

      Posted 26 August 2015 - 11:34 PM

      For merit abilities and such like Troubadour I could just add an elseif with a troub_buff_durations in the line instead I would guess? Edit: and define a table for it.

       

      Thank you.






      1 user(s) are reading this topic

      0 members, 1 guests, 0 anonymous users