Quote from: Samasnier on March 22, 2008, 12:42:48 am
I'm having problems incorporating /quartztimer into a macro.
I have the following macro for my water elemental:
#showtooltip Summon Water Elemental
/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.
I would really like the Water Elemental timer but cant seem to get it to work. I downloaded the zip and added it to the Quartz addon folder but nothing. I also tried it in the addon folder but not under the Quartz folder and still no joy. Am I missing something? I also dont seem to have any timers showing at all but just the cast bar.