I have been looking high and low for an addon to do this, but all the addons I find promising always removes the counter if the pet is dismissed, or if a similar pet is called and use the same ability, it overwrites the counter.
What I need the addon to do, is to track each pets individual cooldowns, and keep them onscreen even when that pet is dismissed, and even if a similar pet is summoned who used the same ability.
The current situation I find myself in, is with the pet type "Cunning" as a hunter, where the spell "Roar of Sacrifice" has seperate cooldowns on each pet, which may or may not be intended by blizzard, but that is how the situation is now.
I do not know much about lua programming, but I did manage to hack together a scripted macro that does something close to what I aim for, with the addon "Deadly Boss Mods" active. More functionality may be wanted, but that was impossible in a short macro.
DBM has a slashcommand where you can write in e.g "/dbm timer 360 5 minute break!" to make a countdown, I utilized this function(DBM:CreatePizzaTimer) in the following macro:
/cast [nopet:Shale Spider,@player] Roar of Sacrifice
/stopmacro [pet:Shale Spider]
/run for i=1,5 do local a,b,c,d=GetStablePetInfo(i) f="Pet" if b==UnitName(f) and d==UnitCreatureFamily(f) then c= f..i.. " 's Sac CD";DBM:CreatePizzaTimer(42, c);end;end
My "Cunning" pets are 4 of my 5 slots, and my "Ferocity" pet is of the type "Shale Spider", hence why I excluded that type from the timers. There is one error, or flaw in this script, and that is if you have two pets of the exact same type, with the exact same name, you will get two timers each time you click the macro on one of those pets. Easily avoided by naming them differently, or by avoiding running around with 5 monkeys.
Voilá, the timer for the first pet will read "Pet1's Sac CD" and continue to countdown from 42 seconds, no matter what pet you have summoned at the moment.
So, with that said, the code is there, almost finished, allthough VERY shorthand to fit into a macro, so please, anyone interested, go make it into a an addon with DBM-core as a requirement to work, and hunters will have a brand new lightweight addon to utilize.
I might look into something if I have time, but there's no way I'd write it to depend on DBM. DBM is a boss mod, and it's huge and rather bloated at that (and the last time I looked at any of its code, it was pretty scary). Showing a timer bar (or some other form of timer) is so easy, there's no need to shackle it to something like DBM.
Thanks for showing an interest. DBM is huge, true, but like I said, I have no lua knowledge, only experience from other languages, thats how I managed to make that little sniplet. To me, making a timer bar is a enormous task, but for you, it might be as easy a eating breakfast. :) This was my intentions when posting this, that someone with the right knowledge could wave their wand at this, and if you do that, I would truely be thankful. :)