View Full Version : "Am I feared" in macro?
Otlecs
11-22-2007, 06:56 AM
I'm looking to create a more intelligent "use the trinket" macro for my teams. At the moment, the trinket for all team members is bound to a single key - one gets feared, all use their trinket.
That's actually ok if they've been fear-bombed in PvP, but a waste if it's a single-target fear.
A quick WoW forum search tells me that Fear appears as a debuff, and I recall seeing some time ago a nifty bit of macro code that looks specifically for debuffs by name.
So, before I spend a bit of time this evening working this one out, has anyone already done this? Only use the trinket if feared, I mean?
It was a loooong time ago that I saw a macro stepping through debuffs, so perhaps it's not even possible any more, but anything you guys can share with me would be appreciated.
Thanks in advance.
Wilbur
11-22-2007, 07:20 AM
I'm fairly sure the ability to conditionally do this was removed in 2.0
Shogun
11-22-2007, 07:55 AM
I was... You could however setup the unit frames with something like Pitbull to make it obvious when one is feared, and bind say ctrl-numpad 1-5 to their individual trinkets, it would work but it'd be a little slow depending on your reaction times etc
Otlecs
11-22-2007, 06:22 PM
Yeah, looking at WoWWiki it seems the removed access to UseInventoryItem in 1.6. Can't say I blame them really :)
I had a play with it, prototyped in macro just to satisfy myself, and got as far as...
[code:1]/script for i=1,40 do s=UnitDebuff("player",i);if (s) then if(s=="Fear") then UseInventoryItem("14"); end end end[/code:1]
...which barfs on UseInventoryItem. Oh well.
Guess I need more Shammies!
Zaelar
11-22-2007, 09:17 PM
Can't use it in combat. You can probably get it to work out of combat if you can get out of combat while feared, but thats not very useful.
rexas
11-26-2007, 02:38 AM
There is a way (if you want to use up a worldCD on all chars or want it binded to all your keys)
By having this macro:
/cast Spell
/use trinket
/stopcasting
Ex:
/cast [target=player] Lesser Healing Weave
/use Medallion of the Alliance
/stopcasting
This will cast Lesser Healing Weave every time I can cast it (aka not feared/CC) but when i cant cast it (also when im moving etc) it will use the trinket insted.
You can also have the trinket binded to all your cast-time-spells so it will autouse when CC-ed (both pro and cons to that)
Hope you get the ide atleast.
Note: The spell you cast must be sucessfull (aka, you need someone targeted and in range to heal (selfheal is good there) and it need to have a casttime to be safe.
Zaelar
11-26-2007, 08:18 AM
I never thought of that. Assuming it works as long as both the item and ability are on the gcd it should work even with instant casts.
cepheus
11-27-2007, 08:04 AM
There is a way (if you want to use up a worldCD on all chars or want it binded to all your keys)
By having this macro:
/cast Spell
/use trinket
/stopcasting
Ex:
/cast [target=player] Lesser Healing Weave
/use Medallion of the Alliance
/stopcasting
This will cast Lesser Healing Weave every time I can cast it (aka not feared/CC) but when i cant cast it (also when im moving etc) it will use the trinket insted.
You can also have the trinket binded to all your cast-time-spells so it will autouse when CC-ed (both pro and cons to that)
Hope you get the ide atleast.
Note: The spell you cast must be sucessfull (aka, you need someone targeted and in range to heal (selfheal is good there) and it need to have a casttime to be safe.
wont this activate the trinket on everyone anyway? Most trinkets isnt affected by global cooldown I think.
rexas
12-02-2007, 06:12 AM
wont this activate the trinket on everyone anyway? Most trinkets isnt affected by global cooldown I think.
If you spamclick the macro it will use it on everyone.
But since it happen like this with just 1 click:
0.00 Begins to cast a spell.
0.01 Try to use the trinket, Cant use the trinket because you are casting / channeling a spell.
0.02 Stop casting the spell.
You can try this by casting a heal or any cast-time spell on yourself and the clicking your trinket/pot, it doesn't need to be effected by the Global CD, it just need to be doing something else that block you from using items overall.
cepheus
12-03-2007, 08:32 AM
wont this activate the trinket on everyone anyway? Most trinkets isnt affected by global cooldown I think.
If you spamclick the macro it will use it on everyone.
But since it happen like this with just 1 click:
0.00 Begins to cast a spell.
0.01 Try to use the trinket, Cant use the trinket because you are casting / channeling a spell.
0.02 Stop casting the spell.
You can try this by casting a heal or any cast-time spell on yourself and the clicking your trinket/pot, it doesn't need to be effected by the Global CD, it just need to be doing something else that block you from using items overall.
Are you sure this will work post 2.3 since all spells now are calculated on the server?
Zaelar
12-03-2007, 06:55 PM
As long as the first spell goes off it should.
Cast spell
use trinket - can't
stop spell
or
cast spell - can't/feared
use trinket - removes fear
stop spell - stop's nothing
But if you get:
Cast spell - can't
use trinket - wasted
stop spell
Then it's a problem. This would happen if you are moving and thus can't cast a spell. If you are already casting a spell it would cancel that spell.
rexas
12-03-2007, 11:50 PM
Yes, it will need you to think before using it (Stop moving etc) but it will save 4 of your trinkets if it use'd corectly.
One thing you can do, if you have priests / Warlocks (druids have to but i dont think you will use them that much) is that you can have:
/stopmacro [channeling] in the top, this will then not stop your casting if you are casting ex: Mind Flay, Drain life, Drain Soul and other spells that are channeling.
There will never be a perfect way for this, but you can alteast save some trinkets some times by using this.
I just blow them all at once, but have my healer's bound to two keys, so if it's a healer-only trinket situation (since they always get focused) you still have the trinkets ready for the locks when the inevitable aoe fear happens.
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.