 |
06/12/09, 10:09 PM
|
#631
|
|
Happy October 19th!
Night Elf Druid
Dragonblight
|
Originally Posted by Beliandra
GetSpellCooldown() returns three values - when the cooldown started, the remaining duration, and whether the spell is currently active and thus cooldown hasn't started yet - see API GetSpellCooldown - WoWWiki - Your guide to the World of Warcraft
As I understand the syntax, you need to accept all three values returned even if you don't care about all of them.
|
No, you only need to accept from the first one to the last one that you care about, i.e. if you don't care about enabled you could simply use s,l = GetSpellCooldown(ID). If you wanted s and e, though, you're forced to ask for l as well.
|
|
|
|
|
06/12/09, 10:18 PM
|
#632
|
|
Piston Honda
Goblin Priest
Mannoroth (EU)
|
Originally Posted by Beliandra
I notice that in your Hysteria macro it is doing the whisper before casting the spell whilst in your Divine Hymn you're casting first - maybe the problem is that by the time it gets to the GetSpellCooldown() check, the spell is on cooldown because you just cast it?
|
Can't test it right now but I am very sure this will solve my problem.... stupid me^^
I'll edit the post in a view hours to report if it works like it should so others can use the macro too.
And thanks for explaining the GetSpellCooldown()
Edit: The macro works like a charm 
Thank you very much!
Last edited by Hamsda : 06/13/09 at 2:14 PM.
|
|
|
|
|
06/13/09, 5:51 AM
|
#633
|
|
Von Kaiser
Draenei Shaman
Sylvanas (EU)
|
Hi,
I'd like to make a macro that:
1) Casts chain heal on my mouseover target if i have one
2) Cast chain heal on my target if i don't have a mouseover target
3) Cast chain heal on myself if i am holding ALT.
So far i have:
#showtooltip Chain Heal
/cast [target=mouseover] Chain Heal; Chain Heal
I'm just not sure where to put in the modifier:alt for self target
Is this even possible or would i have to work with 2 seperate keybindings?
|
|
|
|
|
06/13/09, 7:44 AM
|
#634
|
|
Glass Joe
Draenei Priest
Doomhammer (EU)
|
Originally Posted by Hamano
1) Casts chain heal on my mouseover target if i have one
2) Cast chain heal on my target if i don't have a mouseover target
3) Cast chain heal on myself if i am holding ALT.
|
/cast [target=player,modifier:alt] [target=mouseover,help] [help] Chain Heal
EDIT: The modifier is in the first condition, as I assume you want to cast on yourself whenever you are holding ALT, disregarding whether you have a (mouseover-) target.
Last edited by Laren : 06/13/09 at 7:53 AM.
|
|
|
|
|
06/16/09, 12:17 PM
|
#635
|
|
King Hippo
Byashi
Gnome Warrior
No WoW Account
|
I'm trying to write a monster macro for charge/intercept/intervene/heroic fury, and I'm having a couple of issues.
Here's exactly what I'm trying to do in order - if my target is friendly intervene or switch to defensive stance, else if I'm out of combat charge or switch to battle stance, else intercept or switch to zerker and if intercept is on cd burn heroic fury; and do all that to my focus if I'm holding alt. Intercept is 30 second cooldown in my case, heroic fury is 45. All this is too much for one macro and here's what I have so far:
/click [mod:alt, target=focus, combat, harm, stance:3] MultiBarLeftButton1 RightButton;
[combat, harm, stance:3] MultiBarLeftButton1;
[mod:alt] MultiBarLeftButton2 RightButton;
MultiBarLeftButton2
At MultiBarLeftButton1 I have:
/castsequence reset=30 [button:2, target=focus] [] Intercept, Heroic Fury
And at MultiBarLeftButton2 I have:
/cast [help,stance:2][button:2,target=focus,help,stance:2]Intervene;
[help][button:2,target=focus,help]Defensive Stance;
[nocombat,stance:1][button:2,target=focus,nocombat,stance:1]Charge;
[nocombat]Battle Stance;
Berserker Stance
I'm looking at it and it seems like I'm following my plan exactly, but for some reason once you spend long enough in combat using the macro the heroic fury/intercept part seems to get out of sync and it'll wait for and blow heroic fury cooldown even if intercept is up. I keep looking at it and I just don't see what I'm doing wrong.
Second thing is I get really button mashing with this macro and a lot of times I blow charge, intercept, heroic fury and intercept again all during the first charge since none of these things share any kind of cooldown, is there a way to put a quarter second delay between any action taken in this macro? Basically, if this macro did something less than a quarter second ago, do nothing. Bonus points if this delay doesn't apply to stance switching. Huge thanks in advance for any help with this.
|
|
|
|
|
06/18/09, 3:04 AM
|
#636
|
|
Great Tiger
Fars
Human Paladin
No WoW Account (EU)
|
/castsequence will not continue to the next "step" if the ability is on cooldown, it will wait until it is off cooldown (I think). reset=30 may not do what you think it does.
There is no way to add delays in macros; this is by design.
You can fix the Intervene / Heroic Fury problem by using /castrandom instead of /castsequence.
|
"Let me be clear... I am prepared to claim any level of incompetence, no matter how absurd, in order to avoid culpability." SMBC #2387
|
|
|
06/21/09, 6:42 AM
|
#637
|
|
Glass Joe
Draenei Shaman
Silvermoon (EU)
|
Need small help with macro that would announce to the rest of the raid (in /say) whenever i interrupt spell, fail to interrupt spell (Wind Shock missed) or boss/mob is immune to interrupts.
Message should be something like this: "<name of the spell> interrupted" in case its successful; " Failed to interrupt <name of the spell>" in case Wind Shock missed ; "<name of the spell> can't be interrupted" in case boss/mob is immune.
Big thanks in advance.
|
|
|
|
|
06/21/09, 7:26 AM
|
#638
|
|
Piston Honda
Goblin Priest
Mannoroth (EU)
|
Originally Posted by bitanga
Message should be something like this: "<name of the spell> interrupted" in case its successful; " Failed to interrupt <name of the spell>" in case Wind Shock missed ; "<name of the spell> can't be interrupted" in case boss/mob is immune.
|
That's not possible via macros, I'm sorry.
|
There are only 10 types of people... those who understand binary and those who don't.
|
|
|
06/21/09, 10:02 AM
|
#639
|
|
Banned
Blood Elf Paladin
Tanaris
|
Originally Posted by bitanga
Need small help with macro that would announce to the rest of the raid (in /say) whenever i interrupt spell, fail to interrupt spell (Wind Shock missed) or boss/mob is immune to interrupts.
Message should be something like this: "<name of the spell> interrupted" in case its successful; " Failed to interrupt <name of the spell>" in case Wind Shock missed ; "<name of the spell> can't be interrupted" in case boss/mob is immune.
Big thanks in advance.
|
As the poster above said, not possible via macros, but there is very likely an addon that can do this for you (it's a rather simple spell event).
|
|
|
|
|
06/21/09, 8:30 PM
|
#640
|
|
Von Kaiser
|
BG Healing
So i've started the (relatively) LONG grind of honor gear for PvP as a healing disc priest and am looking to create a BG healing macro, but have been unable to find anything to help me.
So far what i have been doing is tab targeting enemy players and pressing "F" to target their target, who i then heal. Is there any way to create a macro that will "tab-target" and enemy and then target their target all in one button? It would make BG healing so much more easier and effective..
Also, not macro related, is there any way to display friendly players' health above them in the same effect as an enemy (by pressing "V" in a regular interface)?
Thanks
|
|
|
|
|
06/21/09, 8:34 PM
|
#641
|
|
Don Flamenco
|
Originally Posted by Blazingwater
Is there any way to create a macro that will "tab-target" and enemy and then target their target all in one button? It would make BG healing so much more easier and effective..
|
I always just use Grid for battleground healing, I find the range-detection far more useful than anything else could ever be, when you're in a situation where your raid-mates could be anywhere on the map.
But you could try something along the lines of:
/cast [help] Flash Heal; [target=targettarget, help] Flash Heal; [target=player] Flash Heal
..casts on your target if it's friendly, otherwise your target's target if that's friendly, otherwise yourself.
Originally Posted by Blazingwater
Also, not macro related, is there any way to display friendly players' health above them in the same effect as an enemy (by pressing "V" in a regular interface)?
|
Ctrl-V if I recall correctly. Some modifier + V, anyway.
|
|
|
|
|
06/22/09, 4:02 AM
|
#642
|
|
Von Kaiser
|
@ bitanga:
It would be possible to create a mod to say when you interrupt with Wind Shock, or when it misses, but i doubt anything would actually be immune to it, due to also being a threat reducing tool.
Within an On_Event function, you could use code such as:
if (arg2=="SPELL_INTERRUPT") and (arg4==UnitName("player")) then
SendChatMessage("I interrupted "..arg7.."'s "..arg13..". ("..arg10..")", "SAY");
elseif (arg2=="SPELL_MISSED") and (arg4==UnitName("player")) and (arg10=="Wind Shock") then
SendChatMessage("Wind Shock missed", "SAY");
end
The first line of text would say something like "I interrupted Kel'Thuzad's Frost Bolt. (Wind Shock)"
Although it would be possible to make a work-around to say if a boss was immune to an interrupt (check when it starts casting, check for an interrupt cast, check if its spell still goes off), it wouldn't be 100% accurate, especially when taking lag into account.
|
|
|
|
|
06/23/09, 9:27 AM
|
#643
|
|
Piston Honda
Human Priest
Lightbringer (EU)
|
Originally Posted by Blazingwater
So i've started the (relatively) LONG grind of honor gear for PvP as a healing disc priest and am looking to create a BG healing macro, but have been unable to find anything to help me.
So far what i have been doing is tab targeting enemy players and pressing "F" to target their target, who i then heal. Is there any way to create a macro that will "tab-target" and enemy and then target their target all in one button? It would make BG healing so much more easier and effective..
Also, not macro related, is there any way to display friendly players' health above them in the same effect as an enemy (by pressing "V" in a regular interface)?
Thanks
|
/targetenemy does the same as pressing the tab button, so you could make a simple macro like this:
/targetenemy
/assist
That would do the same as you're doing manually now.
You could even go as far and add a healing spell in there as well:
/targetenemy
/assist
/cast [help] Chain Heal
A potential problem I see with this is that hitting tab, targets the nearest enemy and then cycles through them based on range. if you target the target of your first enemy, cast a heal and tab again, it will likely target the same enemy. Of course this is not much of a problem in WG or AV, but in any sort of premade/tactical environment it might be a bit annoying 
Last edited by Lucinde : 06/24/09 at 4:20 AM.
|
|
|
|
|
06/23/09, 9:33 AM
|
#644
|
|
Von Kaiser
Draenei Shaman
Les Sentinelles (EU)
|
Originally Posted by Lucinde
/targetenemy does the same as pressing the tab button, so you could make a simple macro like this:
/targetenemy
/assist
That would do the same as you're doing manually now.
You could even go as far and add a healing spell in there as well:
/targetenemy
/target assist
/cast [help] Chain Heal
A potential problem I see with this is that hitting tab, targets the nearest enemy and then cycles through them based on range. if you target the target of your first enemy, cast a heal and tab again, it will likely target the same enemy. Of course this is not much of a problem in WG or AV, but in any sort of premade/tactical environment it might be a bit annoying 
|
/targetenemy
/target assist
/focus
/targetlasttarget
/cast [target=focus] Chain Heal
Wouldn't that solve the potential problem of always selecting the same enemy?
You would be currently targeting the closest enemy when "macro-tabbing", therefore selecting a different one.
I am very unsure, however, of the "/targetlasttarget"part.
|
|
|
|
|
06/23/09, 11:52 AM
|
#645
|
|
Von Kaiser
Draenei Shaman
Tichondrius
|
Originally Posted by Lucinde
You could even go as far and add a healing spell in there as well:
/targetenemy
/target assist
/cast [help] Chain Heal
A potential problem I see with this is that hitting tab, targets the nearest enemy and then cycles through them based on range. if you target the target of your first enemy, cast a heal and tab again, it will likely target the same enemy. Of course this is not much of a problem in WG or AV, but in any sort of premade/tactical environment it might be a bit annoying 
|
If the healing spell were to be combined in the macro I think a more elegant solution (that should also fix that target cycling problem) would be:
/targetenemy
/cast [target=targettarget, help] Chain Heal
|
|
|
|
|
|