PDA

View Full Version : Useful Macro for New Mana Emerald


Vand
01-11-2008, 10:15 AM
While the 2.3.2 change to the mana emerald is indeed a welcome change, it is annoying to have to manually search your bags to destroy the thing if you want to conjure a new one with a full three charges. Thanks for Wenge for pointing me to a post on the WoW forums with a macro that consumes a mana emerald if left-clicked and on a right click destroys any existing mana emerald and then conjures a new one. The macro as posted actually went over the 255 character limit for macros, but by removing some unnecessary spaces, I was able to get it down to exactly 255. I have tested it and it works as advertised.

For those like me who like using a keyboard for everything possible, rather than using the mouse to point and click, you can still place this macro on an action bar. If you hit the key assiged to it, it will be just like left-clicking on the button (i.e., it will consume the gem). You still (I believe) need to actually right-click on the button to have it destroy/reconjure, but since that is something normally done out of combat, it's not a big deal.

#showtooltip
/use [btn:1] item:22044
/stopmacro [btn:1]
/run for i=0,4 do for j=1,GetContainerNumSlots(i)do if(GetContainerItemLink(i,j)or''):find("Mana Emerald")then PickupContainerItem(i,j)return DeleteCursorItem()end end end
/cast Conjure Mana Emerald

Wenge
01-11-2008, 11:08 AM
The big gotcha this script may have is make sure you don't have something picked up on your cursor when running it, behavior may be unexpected.