Saturday, April 21, 2012

Charge/Taunt Macro

I'm looking for a macro that looks at cooldowns of spells and based on that casts a certain spell.

So something like:

local start, duration, enabled = GetSpellCooldown("Charge");

if duration == 0

/cast Charge

else

/cast Taunt

One thing I'm not sure about is using macro commands in between scripting or if it even works like that.

If anyone could help me with this I would greatly appreciate it.|||Quote:








I'm looking for a macro that looks at cooldowns of spells and based on that casts a certain spell.




Blizzard has deliberately made this impossible for either macros or addons to do. Attempting to circumvent and do it anyway is a terms of service violation.

It used to be possible to do this sort of thing in WoW, but Blizzard decided that they wanted the players to be making the decisions about what abilities to use when, not scripts.|||That's what I expected. Oh well was worth a try =(.|||Quote:








That's what I expected. Oh well was worth a try =(.




Thinking about it more as I'm looking back at the forums later, you *can* do this:

/castrandom Charge; Taunt

This will randomly cast one or the other. If the one it chooses is on cooldown, it won't flip to the other -- you'll get an error message. However, if you machine-gun tap the key, you'll get whichever one isn't on cooldown... or both if neither is. You'll probably also get a bunch of "you can't do that right now" error messages.

Don't know if that's close enough for you or not. The other alternative would be to bind them both to one key, using a modifier key to choose between them. A trick I use a lot is:

#showtooltip

/cast [nomod] spell 1; spell 2

That will casts spell 1 if I just hit the key, but spell 2 if I hit it with any modifier key (shift, alt, or control), no matter which it is. Easier than trying to remember which modifier key I have to hit for something.|||Quote:








Thinking about it more as I'm looking back at the forums later, you *can* do this:

/castrandom Charge; Taunt

This will randomly cast one or the other. If the one it chooses is on cooldown, it won't flip to the other -- you'll get an error message. However, if you machine-gun tap the key, you'll get whichever one isn't on cooldown... or both if neither is. You'll probably also get a bunch of "you can't do that right now" error messages.

Don't know if that's close enough for you or not. The other alternative would be to bind them both to one key, using a modifier key to choose between them. A trick I use a lot is:

#showtooltip

/cast [nomod] spell 1; spell 2

That will casts spell 1 if I just hit the key, but spell 2 if I hit it with any modifier key (shift, alt, or control), no matter which it is. Easier than trying to remember which modifier key I have to hit for something.




I'm going to try the first macro, thanks for the advice. Most of my other keybindings are already taken, but maybe i can squeeze it in somewhere.

No comments:

Post a Comment