WobLight 5 Report post Posted July 28, 2017 Hi there, here some macros that paladins leveling up might find useful: /run local a,b="Blessing of Might",UnitName("target")if b==nil then return end if BuffMem==nil then BuffMem={}end if not IsControlKeyDown() then BuffMem[b]=a end CastSpellByName(a) /run local a=UnitName("target")or"<no target>"if BuffMem and BuffMem[a]then if IsControlKeyDown()then UIErrorsFrame:AddMessage(BuffMem[a],1,1,0)else CastSpellByName(BuffMem[a])end else UIErrorsFrame:AddMessage(format("No bless saved for %s.",a),1,0,0)end Explanation: The first macro will cast "Blessing of Might" (you can replace it with whatever bless you want) and save it for the current target. If you hold Control key it will cast the bless without saving it. Note that saving isn't persistent and will reset upon reloading interface or logging out. The second macro will cast the saved bless for your current target, or display the saved bless if you're holding Control key. Note that you could actually have these working for greater blessings by replacing `UnitName` with `UnitClass` in these functions. 0 Share this post Link to post Share on other sites
JCarrill0 17 Report post Posted July 29, 2017 20 hours ago, WobLight said: Hi there, here some macros that paladins leveling up might find useful: /run local a,b="Blessing of Might",UnitName("target")if b==nil then return end if BuffMem==nil then BuffMem={}end if not IsControlKeyDown() then BuffMem[b]=a end CastSpellByName(a) /run local a=UnitName("target")or"<no target>"if BuffMem and BuffMem[a]then if IsControlKeyDown()then UIErrorsFrame:AddMessage(BuffMem[a],1,1,0)else CastSpellByName(BuffMem[a])end else UIErrorsFrame:AddMessage(format("No bless saved for %s.",a),1,0,0)end Explanation: The first macro will cast "Blessing of Might" (you can replace it with whatever bless you want) and save it for the current target. If you hold Control key it will cast the bless without saving it. Note that saving isn't persistent and will reset upon reloading interface or logging out. The second macro will cast the saved bless for your current target, or display the saved bless if you're holding Control key. Note that you could actually have these working for greater blessings by replacing `UnitName` with `UnitClass` in these functions. Nice, if I recall, there once was a macro that would bless based on class, can you do that too? 0 Share this post Link to post Share on other sites
WobLight 5 Report post Posted July 29, 2017 30 minutes ago, JCarrill0 said: Nice, if I recall, there once was a macro that would bless based on class, can you do that too? Ummm actually it's already stated in the last line of the post, but I'll make the work for you: /run local a,b="Greater Blessing of Might",UnitClass("target")if b==nil then return end if BuffMem==nil then BuffMem={}end if not IsControlKeyDown() then BuffMem[b]=a end CastSpellByName(a) /run local a=UnitClass("target")or"<no target>"if BuffMem and BuffMem[a]then if IsControlKeyDown()then UIErrorsFrame:AddMessage(BuffMem[a],1,1,0)else CastSpellByName(BuffMem[a])end else UIErrorsFrame:AddMessage(format("No bless saved for %s.",a),1,0,0)end same as before, the first memorize the class of the target and save the blessing for that class, the second cast the saved blessing based on the target class. 0 Share this post Link to post Share on other sites
JCarrill0 17 Report post Posted July 30, 2017 so this does it all in one macro? buffs all classes might/wisdom? (Depending on class) thats what I meant. 0 Share this post Link to post Share on other sites
WobLight 5 Report post Posted July 30, 2017 This works lake that: Make a macro for each bless (using the first macro as template) plus the second one in my post. Use bless macro once for each class, the bless you will use will be memorized for it (only for current session though) Use the second macro of my post to refresh blessings, it will cast the saved bless depending upon target's class You can make a macro to load a preset, like this: /run BuffMem = {Mage = "Blessing of Wisdom", Warrior = "Blessing of Might" ...} If you really what a static macro use the following instead: /run local b={Mage="Blessing of Wisdom",Warrior="Blessing of Might",...}if UnitExists("target")then CastSpellByName(b[UnitClass("target")])end 0 Share this post Link to post Share on other sites