Yea, how can you determine if target is facing you or away from you? Want to implement shred if behind target and anoither ability if in front.
Here is my fury warrior single dps/buff macro, but its for german client, sorry. I try to make english comments. You can copy and paste from wowhead.com german search, to translate. Feel free to change, expand or make it better
#show abfangen
/startattack
/cast berserkerhaltung -- bersi stance
/cast abfangen -- intercept
/run rm = RunMacroText
/run pow = UnitPower("player")
-- define function to check if a dmg spell is ready
/run function dmgable(spell) unit = "target" usable, nomana = IsUsableSpell(spell) range = IsSpellInRange(spell, unit) start, duration, enabled = GetSpellCooldown(spell) if usable and range == 1 and duration == 0 then return true else return false end end
-- define function to check if a ae dmg spell is ready
-- and at leas one enemy in melee range
/run meleeSpell = "Kniesehne"
/run function aeable(spell) unit = "target" usable, nomana = IsUsableSpell(spell) range = IsSpellInRange(meleeSpell, unit) start, duration, enabled = GetSpellCooldown(spell) if usable and range == 1 and duration == 0 then return true else return false end end
-- define function to check, if buff for player self from given spell is active
-- and the cast is ready to use
/run function buffable(spell) unit = "player" usable, nomana = IsUsableSpell(spell) start, duration, enabled = GetSpellCooldown(spell) hasbuff = UnitBuff(unit, spell) if usable and duration == 0 and not hasbuff then return true else return false end end
-- if rage is under 50, cast bloodrage
/run if pow < 50 then rm("/cast blutrausch") end
-- auto kick
/run if UnitCastingInfo("target") or UnitChannelInfo("target") then rm("/cast zuschlagen") end
-- if rage is over 50, cast heroic strike
/run if pow > 50 then rm("/cast heldenhafter stoß") end
-- battle or commanding shout
-- /run s = "Befehlsruf"
/run s = "Schlachtruf"
/run if buffable(s) then rm("/cast "..s) end
/run s = "Tollkühnheit"
/run if buffable(s) then rm("/cast [combat] "..s) end
/run s = "Todeswunsch"
/run if buffable(s) then rm("/cast [combat] "..s) end
/run s = "Siegesrausch"
/run if dmgable(s) then rm("/cast "..s) end
/run s = "Berserkerwut"
/run if buffable(s) then rm("/cast [combat] "..s) end
/run s = "Hinrichten"
/run if dmgable(s) then rm("/cast "..s) end
/run s = "Zerschmettern"
/run unit = "player"
/run spell = "Zerschmettern!"
/run buff = UnitBuff(unit, spell)
/run if dmgable(s) and buff then rm("/cast "..s) end
/run s = "Wirbelwind"
/run if aeable(s) then rm("/cast [combat] "..s) end
/cast blutdurst
Last edited by osbornx22; 11-29-2009 at 07:06 PM.
@aukatrau
plz send me error text ...
@ rest
when you want to determind if you are behind the target ... just use isusablespell like elitetech pointed out on the 6. page of this thread ... he also posted a link to the wowwiki ...
sincery spud
How can i determine, if overpower is useable in berserker stance?
Is it possible to make event listener in a macro?
pretty sure, don't have a war myself but, if u use isspelluseable like elitetech pointed out on page 6, it wud work, if u can't use tht spell in tht stance jus have isspelluseable then (insert stance switch command (sry its to late to search stuff)) and castspellbyname("Overpower") then (switch stance back) end in theory should work, again speculation.
Thank you for your answer ganzerker, but it doesnt work so, if i understand you correctly.
If i in berserker stance, then will IsUsableSpell give every time false back, because its not usable in berserker stance I think, i need to register an eventlistener for overpower, but i dont know, how to do this.
I have updated my Rogue macros: http://www.mmowned.com/forums/bots-p...ml#post1726228
https://www.mmowned.com/forums/world-of-warcraft/guides/278302-selecting-bot-you.html - SELECTING THE BOT FOR YOU
PHWOOOOAAAAAR - Parog was here. <3 <----Wtf's a Parog?
I know this OddBall, but how?
so .. since some of the users are rtards ... and can't do the work themself ... here is the answer
overpower
icon, name, active, castable = GetShapeshiftFormInfo(index);
* 1 = Battle Stance
* 2 = Defensive Stance
* 3 = Beserker Stance
sincery spudCode:/run local _,_,act= GetShapeshiftFormInfo(3); /run local ua = IsUsableSpell("Overpower"); if (not(act==true) and ua==true) then CastShapeshiftForm(3); CastSpellByName("Overpower"); end;
ps not tested .. :wave::wave::wave::wave::wave:
Last edited by spudstar99; 12-02-2009 at 05:24 AM.
That doesnt work. I just can repeat me:
If i in berserker stance, then is IsUsableSpell("Overpower") ALWAYS FALSE! I dont wont to go in battle stance to determine, if overpower is usable, i need to know it before i swap to battle stance.
Overpower - Spell - World of Warcraft
Thx all.
Last edited by osbornx22; 12-02-2009 at 06:31 AM.
....
have to work on it
Just check for the buff ... since you get a buff .. that you can overpower ?! or i'm wrong?! buff id 7384
check addon event alert.
Last edited by spudstar99; 12-02-2009 at 05:48 AM.
No, you dont get any buff. I think the addon use eventlistener and i dont know, how to use this.
Events (API) - WoWWiki - Your guide to the World of Warcraft
Overpower - WoWWiki - Your guide to the World of Warcraft
Events/C - WoWWiki - Your guide to the World of Warcraft
"COMBAT_TEXT_UPDATE"
Category: Combat
(new with patch 1.12)
Fired when the currently watched entity (as set by the CombatTextSetActiveUnit function) takes or avoids damage, receives heals, gains mana/energy/rage, etc. This event is used by Blizzard's floating combat text addon.
arg1
Combat message type. Known values include "DAMAGE", "SPELL_DAMAGE", "DAMAGE_CRIT", "HEAL", "PERIODIC_HEAL", "HEAL_CRIT", "MISS", "DODGE", "PARRY", "BLOCK", "RESIST", "SPELL_RESISTED", "ABSORB", "SPELL_ABSORBED", "MANA", "ENERGY", "RAGE", "FOCUS", "SPELL_ACTIVE", "COMBO_POINTS", "AURA_START", "AURA_END", "AURA_START_HARMFUL", "AURA_END_HARMFUL", "HONOR_GAINED", and "FACTION".
arg2
For damage, power gain and honor gains, this is the amount taken/gained. For heals, this is the healer name. For auras, the aura name. For block/resist/absorb messages where arg3 is not nil (indicating a partial block/resist/absorb) this is the amount taken. For faction gain, this is the faction name. For the SPELL_ACTIVE message, the name of the spell (abilities like Overpower and Riposte becoming active will trigger this message).
arg3
For heals, the amount healed. For block/resist/absorb messages, this is the amount blocked/resisted/absorbed, or nil if all damage was avoided. For faction gain, the amount of reputation gained.
arg3 does NOT return amount absorbed since at least patch 2.4
Last edited by osbornx22; 12-02-2009 at 06:54 AM.