Jump to content
Sign in to follow this  
WobLight

Blessings Macros

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×