-
Active Member
Ret Pally Rotation Macro
Hey all,
Posting a working Ret Pally Rotation macro using LuaNinja. Link to topic: http://www.mmowned.com/forums/bots-p...-lua-code.html
Here's the code, it contains 5 macros.
Macro 24:
Code:
/run local _,a,_ = GetSpellCooldown("Crusader Strike") if (a == 0) then CastSpellByName("Crusader Strike") else RunMacro"25" end
Macro 25:
Code:
/run local _,a,_ = GetSpellCooldown("Judgement of Wisdom") if (a == 0) then CastSpellByName("Judgement of Wisdom") else RunMacro"26" end
Macro 26:
Code:
/run local _,a,_ = GetSpellCooldown("Divine Storm") if (a == 0) then CastSpellByName("Divine Storm") else RunMacro"27" end
Macro 27:
Code:
/run local _,a,_ = GetSpellCooldown("Consecration") if (a == 0) then CastSpellByName("Consecration") else RunMacro"28" end
Macro 28:
Code:
/run if UnitBuff("player", "The Art of War") then CastSpellByName("Exorcism") else RunMacro"24" end
The "#" inside the RunMacro code is the actual SLOT NUMBER of the macro window when you hit Menu > Macros. I didn't name the macros just for simplicity sake.
So if your macro is in slot number 5 for example, the RunMacro"6" is what should be put in.
PS: If someone has a working Hammer of Wrath code, let me know and I'll add it here. I can't get mine to work right.
Code:
/run p=((UnitHealth("player")/UnitHealthMax("player"))*100) if (p>20) then CastSpellByName("Hammer of Wrath") end
-
Post Thanks / Like - 1 Thanks
Seixalito (1 members gave Thanks to Sikas for this useful post)
-
Member
I wouldn't use a macro. Try keybinding if you're worried about to many keys to where you start to click
-
Active Member
There's only one macro you have to push. All I hit is Macro 24 repeatedly to get 5 spells out as soon as cooldown is finished in priority. That's it. And if need be, get AutoIt, code it so it attaches to World of Warcraft window, tell it to hit '1' repeatedly.. profit?
-
Member
Add 1 macro at the start to use Hammer when its available:
/run p=((UnitHealth("target")/UnitHealthMax("target"))*100)
/run local _,a,_ = GetSpellCooldown("Hammer of Wrath") if (a == 0 and p < 20) then CastSpellByName("Hammer of Wrath") else RunMacro"24" end
Last edited by Botter123; 10-24-2009 at 07:41 PM.
-
Active Member
Gonna try it out and give you feedback if it works.
EDIT: Doesn't work...
Does p=((UnitHealth("target")/UnitHealthMax("target"))*100) even work at all?
Last edited by Sikas; 10-25-2009 at 03:57 PM.
-
Member
strange, it works for me, even tested it in todays ToC10 Hero
-
Active Member
Strange... Did you do an exact copy and paste? I'll try it again in a bit..
-
Member
Yes, its a copy paste from local macro-cache, added a line for popup removal.
/run p=((UnitHealth("target")/UnitHealthMax("target"))*100)
/run local _,a,_ = GetSpellCooldown("Hammer of Wrath") if (a == 0 and p < 20) then CastSpellByName("Hammer of Wrath") else RunMacro"1" end
/click StaticPopup1Button1
-
Active Member
180ish views, and only 7 replies.. and not even +Rep? Gosh. :|
-
Member
Can someone please make a macro where if I get Art of War and my exorcism is in cooldown it'll cast Flash of Light? Appreciate the help if anyone can!
Last edited by Jermzter; 11-01-2009 at 10:41 PM.
-
Active Member
Here... All you need is a little bit of common sense yanno...
/run if UnitBuff("player", "The Art of War") then CastSpellByName("Flash of Light") else RunMacro"24" end
You don't need to test if Exorcism is on c/d, as this macro will run AFTER the Exorcism.. So it'll skip casting Exorcism if it's on c/d and cast Flash of Light instead.
-
Member
any insight on why hammer isn't being cast?
/run local _,a,_ = GetSpellCooldown("Hammer of Justice") if (a == 0) then CastSpellByName("Hammer of Justice") else RunMacro"1" end
trying to adapt this to a PvP "rotation"
Nevermind, If I start with this macro the rest of it works and it does cast once HoJ is up.
Last edited by marlboroman1982; 11-08-2009 at 07:05 PM.
Something
-
Active Member
Hrm, no idea. If you want the HoJ to run first, it has to be put first in that rotation you have set up, otherwise it'll just follow the rotation exactly as you put it.
-
Knight
I'm having a little trouble, It doesn't seem to automatically advance to the next macro. I am spamming the macro, but it just keeps doing the one actiona it's coded to do, and never moves on in the macro rotation
edit: the macro numbers are the macro slots, not names
Last edited by garb; 11-10-2009 at 08:50 PM.
-
Active Member
Well, if you're having problems, what you can do is rename the macros to names. RunMacro"25" to RunMacro"JoW" for instance.
And are you SURE it's the macro slot? Like the Crusader Strike macro should be in SLOT 24. And if the macro moves at all, the slot number has to be changed.
There has been no problems since the new patch with the exe files. Just tested it tonight.