I'm having problems incorporating /quartztimer into a macro.
I have the following macro for my water elemental:
#showtooltip Summon Water Elemental /petpassive /stopmacro [pet:water elemental] /cast Summon Water Elemental /script PetActionBarFrame:Show(); PetActionBarFrame.locked=true
I want to add create a timer bar that will appear when I summon my pet and last for 45 seconds (or until he's killed, but I don't believe /quartztimer can do that). I've tried adding in /quartztimer 45 Water Elemental but it doesn't create the timer bar. However, when I have /quartztimer 45 Water Elemental in its own macro it works perfectly.
Any help would be greatly appreciated! If quartzimer can be used to create a timer bar that perfectly tracks my elemental's actual life span (ie it disappears when he dies prematurely), I'd love to know how to do that.
Try out the attached zip. This isn't actually a Quartz module, it has no options and it does nothing more than start/stop a 45s timer for Water Elementals based on the UNIT_PET event.
Edit: Fixed a bug that would cause bad custom table errors after your pet despawned.
Edit2: ^ For real this time. Wonder why I have to delay a routine to delete the timer until after the event. Note to ask Nymbia.