Viral Fly-by can you help me yet again, what i want to do is if my target has Frost Fever and Blood Plague debuffs on it and time to end is less than 4 seconds then cast Pestilence to refresh both buffs.
I know the code below is wrong but it will give you a sense of what im trying to accomplish
Any help whould be appreciated.Code:/run i=1 while(i<=40) do a={UnitDebuff("target",i)} if(a[1]=="Frost Fever" and a[8]=="player" and (a[7]-GetTime())>3) and (a[1]=="Blood Plague" and a[8]=="player" and (a[7]-GetTime())>3)then break elseif(i==40) and IsSpellInRange("Pestilence", "target")==1 and GetSpellCooldown("Pestilence")==0 and IsUsableSpell("Pestilence")==1 then CastSpellByName("Pestilence") i=i+1 else i=i+1 end end
If the target has both debuffs and either of them has less than 4 seconds remaining, it will Pestilence assuming it's off cooldown and in range.Code:/run local i,p,ff,bp = 1,0,0,0; while(i<=40) do local a={UnitDebuff("target",i)} if a[1]=="Frost Fever" and a[8]=="player" then ff=1 if a[7]-GetTime()<4 then p=1 end elseif a[1]=="Blood Plague" and a[8]=="player" then bp=1 if a[7]-GetTime()<4 then p=1 end end i=i+1 end; if ff==1 and bp==1 and p==1 and IsSpellInRange("Pestilence", "target")==1 and GetSpellCooldown("Pestilence")==0 and IsUsableSpell("Pestilence") then CastSpellByName("Pestilence") end
How would I have my macro include a break for food?
I think I have a general idea, but I am not quite sure
Any help?Code:/run if UnitHealth("player")/UnitHealthMax("player")<0.30 and UnitAffectingCombat==nil then RunMacroText("/use Clefthoof Ribs") end /run if UnitBuff("player", "Food") then _How do I tell it to wait until player does not have the buff?_
EDIT: I ask this because I am planning to use an auto-clicker with this code, and I don't want it spamming attacks etc while my character is attempting to eat.
Last edited by Jibberish; 12-30-2009 at 01:10 AM.
I'm having trouble with the /run RunMacro("NAMEHERE") function...
does the /run RunMacro have to go at the very end of the macro? Or can it be placed anywhere in your first macro?
Do I refer to the name I gave the second macro or its placement on the normal /macro window (which all are the same SDM icons)?
Viral Fly-by i already tested it in icc10 and works good, but have you tested this in toc10? for some reason the healing macro dont work there (tested in Gormok the Impaler), the macro does jol and beacon in tank but dont heal the raid /=
If you can see the post of Mynewt it has a similar problem...
Last edited by pinhe1ro; 12-30-2009 at 06:52 AM.
Destruction Warlock Macro:
What this does:
Casts Fel Armor if missing
Casts Life Tap for the buff (remove this line if no glyph)
Casts Immolate
Casts Conflagrate and Chaos Bolt when off cool down.
Uses Incinerate for filler spell.
This will not do curses! You must press Curse of Doom or Elements yourself!
For trinkets, addCode:#showtooltip Immolate /run if not UnitBuff("player", "Life Tap") then CastSpellByName("Life Tap") end /run if UnitPower("Player") < 3000 then CastSpellByName("Life Tap") end /run if not UnitBuff ("player", "Fel Armor") then CastSpellByName "Fel Armor" end /run loadstring("local _,_,_,_,_,_,_,caster,_ = UnitDebuff(\"target\", \"Immolate\")if(caster~=\"player\")then CastSpellByName(\"Immolate\") end") () /run loadstring("local _, d, _ = GetSpellCooldown(\"Conflagrate\") if (d == 0) then CastSpellByName(\"Conflagrate\") end") () /run loadstring("local _, d, _ = GetSpellCooldown(\"Chaos bolt\") if (d == 0) then CastSpellByName(\"Chaos bolt\") end") () /run CastSpellByName ("Incinerate")
If you would like this to auto cast without spamming your macro key, addCode:/use 13 /use 14
at the end of the macro and name the macro "Destro"Code:/run if UnitAffectingCombat("player") then RunMacroText("/in 0.5 /run RunMacro(\"Destro\")") end
However, you can not stop casting until you're out of combat that I am aware of (or I haven't figured it out)
If you need tp stop DPS without exiting combat, put yoru imp to passive and target another raid member or yourself.
Also, if you spam this too fast you might get 2 immolates because of travel time.
Please +rep if this works for you![]()
Last edited by kaych; 12-30-2009 at 07:49 AM.
Just need to take time and thank again for the Enhancement Shaman macro.
It's so ****ing epic I'm able to reach almost 8k DPS on the heroic dummy at peaks and keep it at stable 6k
10k DPS on Lord Marrowgar, no BL!
edit: I'M A STUPID RETARD. Video removed.
^LuaNinja in action.
Last edited by Tardo; 12-30-2009 at 09:31 AM.
It worked fine for me in ToC. Grab the latest version from my post because I have made some minor changes. It used to get very confused if you were out of range of the focus. Are you staying in range of the people that need healing? People tend to run around like idiots on that fight.
Regardless there's absolutely zero reason it would work on one fight (or instance) and not on another.
Wow...make a YouTube video? That's pretty retarded bro. If you havea brain you'll take that down and sit in quiet contemplation about how silly you are.
Also, I've got an even better enhancement macro that I'm going to post. It will work like my elemental one with single target mode and aoe mode. Normally it will just single target meaning it won't use Fire Nova and will use LB with 5xMW. But if you drop a Magma it switches to AOE mode and will start using Fire Nova and switch to using CL with 5xMW.