@SprayPlaster:
Not the best way to do it, but the easiest. If someone knows how to reduce the frame lag, please leave a comment.Code:local a = CreateFrame("Frame") a:SetScript("OnEvent", function(self, event, ...) local arg = {...} if arg[2] == "SPELL_CAST_FAILED" and arg[12] == "You must be behind your target." then CastSpellByName("Mangle") a:UnregisterEvent("COMBAT_LOG_EVENT_UNFILTERED") end end) a:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED"); CastSpellByName("Shred");
Probably not the best macros in the thread but here's some quick stuff I stuck together for my hunter.
Bosses:
TrashCode:/run if not UnitDebuff("Target","Hunter's Mark") then CastSpellByName("Hunter's Mark") end /run if not UnitBuff("player","Rapid Fire") and IsUsableSpell("Rapid Fire") then CastSpellByName("Rapid Fire") end /run if UnitBuff("player","Fire!") then CastSpellByName("Aimed Shot") end /run if UnitPower("player")<50 then CastSpellByName("Steady Shot") end /run if not UnitDebuff("Target","Serpent Sting") then CastSpellByName("Serpent Sting") end /run if GetSpellCooldown("Chimera Shot")==0 and UnitPower("player")>44 then CastSpellByName("Chimera Shot") else end /run local HP=(UnitHealth("target")/UnitHealthMax("Target")); local f=UnitPower("player"); if HP>0.91 and f>50 and GetSpellCooldown("Chimera Shot")>0 then CastSpellByName("Aimed Shot") end /run local HP=(UnitHealth("target")/UnitHealthMax("Target")); local f=UnitPower("player"); if HP<0.91 and HP>0.20 and f>22 and GetSpellCooldown("Chimera Shot")>0 then CastSpellByName("Arcane Shot") end /run local HP=(UnitHealth("target")/UnitHealthMax("Target")); if HP<0.20 and GetSpellCooldown("Chimera Shot")>0 and GetSpellCooldown("Kill Shot")==0 then CastSpellByName("Kill Shot") end
AoECode:/run if not UnitDebuff("Target","Hunter's Mark") then CastSpellByName("Hunter's Mark") end /run if UnitBuff("player","Fire!") then CastSpellByName("Aimed Shot") end /run if UnitPower("player")<50 then CastSpellByName("Steady Shot") end /run if GetSpellCooldown("Chimera Shot")==0 and UnitPower("player")>44 then CastSpellByName("Chimera Shot") else end /run local HP=(UnitHealth("target")/UnitHealthMax("Target")); local f=UnitPower("player"); if HP>0.20 and f>22 and GetSpellCooldown("Chimera Shot")>0 then CastSpellByName("Arcane Shot") end /run local HP=(UnitHealth("target")/UnitHealthMax("Target")); if HP<0.20 and GetSpellCooldown("Chimera Shot")>0 and GetSpellCooldown("Kill Shot")==0 then CastSpellByName("Kill Shot") end
Travel time and logic dependencies on focus are a problem for these.Code:/run if UnitBuff("player","Bombardment") and UnitPower("player")>20 then CastSpellByName("Multi-Shot") end /run if UnitBuff("player","Bombardment") and UnitPower("player")<20 then CastSpellByName("Steady Shot") end /run if UnitPower("player")<40 then CastSpellByName("Steady Shot") else CastSpellByName("Multi-Shot") end
Last edited by Parrky; 07-18-2011 at 03:04 PM.
Sikas what you done to the layout it looks horrid
Nice Topic, just what i'm lookin for ;p
Pretty new to this and i can't find a Frost Mage macro that i could use as base.
If anyone out there has a basic SDM Frost Mage macro that is PVP aimed i'd really appreciate.
I'll finetune it to my needs and share it back.
I could post a logic too but i prefer figuring out how stuiff works based on some existing one and adding then my 5 cents.
Starting from scratch aint an option, lua noob here.
feel free to pm me if u can help out on Frost mage plua macros
For some reason, I can't create blank new lines.. it just jumbles it up.. So I can't edit what happened. :/
Line Test
Line Test
WTB OP update. From that, there is not 1 fully supported class, and only 1 partially tested. I know there must be at least 1 fully supported.
Is there a way to add a modifier condition in a script?
For exemple: /run local _,t,_,_ = GetTotemInfo(3); if t==nil or t=="" or [modifier=alt] then CastSpellByName("Call of the Elements") end
thank you
OK OK i did not read all Threats
I only want to use conditionals macros, noting more, no superjumps or so on, and i play in a WOW private server 4.06 .
only 2 Questions:
1 - where can i find a tiny "UNLOCKS THE PROTECTED LUA" ( you can PM me)
2 - for to use the addons "hack" or "devpad" do i have to "unlock the protected lua" too? ( i think yes, because i try to use without and had the error " blizzard "
THANKS for all
best regards
Merve
found out that the lua unlocker doenst work o0 ...
my fail, sry
Last edited by rainamnkk; 07-30-2011 at 05:57 AM.
If some one can make this same theory but for defensive dispels, such as Cleanse, Decurse, Etc. (preferably cleanse if need to be precised) I would be eternally grateful. Basically it would be the same as what Cleanse used to be in WOTLK.
so a spammable macro would be like this:
1) If there is no magic debuff do not Cleanse. (I would prefer magic only over including poison and disease)
2) If there is a magic debuff, cast Cleanse.