is it possible to tell from a macro what mana you have left?
If it is, I would like to be able to do something like this:
if MANA < 5
/cast shoot
else
dps the shit out of something
end if
also what does the NULL do at the end of some macros?
Printable View
is it possible to tell from a macro what mana you have left?
If it is, I would like to be able to do something like this:
if MANA < 5
/cast shoot
else
dps the shit out of something
end if
also what does the NULL do at the end of some macros?
i'm no pro, so take this with a grain of salt :-)
using lua code you can get the amount of mana left, and the total amount, so you can calculate a % from there.
to get the amount of mana left you usemore info here: http://www.wowwiki.com/API_UnitPowerCode:UnitPower("player", 0);
I would know how to do it in an addon, but not sure how to do it in a macro.
not sure you can do conditionals (if then else) in a macro.
This is not possible in a macro when you are in combat. So to use it in a DPS sequence is impossible. There are restrictions on what you can use in combat due to unattended gameplay. I don't remember what patch undid this for macros. But I used to have a flash heal rank 3 macro that would automatically heal the lowest in health in molten core.
edit: http://www.wowwiki.com/Category:Worl...cted_Functions
Macros and addons cannot make decisions for you, so no.
Null is a non-existant spell. It is used to force a macro to lock up. The same can be done with Nil, Frank, Supercalifragilisticexpialidocious. Since there is no spell by that name, the macro can progress no further. It is used when you only want to cast a spell or sequence once, such as Hunter's Mark or Curse of Elements, and is usually in a macro with a reset conditional.
Why would you need a macro? can't you just look at the mana bar? :P