View Full Version : [WoW] how much mana left macro.
Kris1234
10-05-2010, 07:49 AM
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 use
UnitPower("player", 0);
more info here: http://www.wowwiki.com/API_UnitPower
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:World_of_Warcraft_API/Protected_Functions
Khatovar
10-05-2010, 08:23 AM
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?
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.
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.
be careful when using Supercalifragilisticexpialidocious however, as i believe they will add the Poppins hero class sometime next year, and all your macros will break.
Kris1234
10-05-2010, 09:30 AM
be careful when using Supercalifragilisticexpialidocious however, as i believe they will add the Poppins hero class sometime next year, and all your macros will break.
haha!
cheers guys for your help
EaTCarbS
10-05-2010, 03:09 PM
Why would you need a macro? can't you just look at the mana bar? :P
Khatovar
10-05-2010, 11:26 PM
be careful when using Supercalifragilisticexpialidocious however, as i believe they will add the Poppins hero class sometime next year, and all your macros will break.
Yeah, I heard about that. I use bibbidybobbidyboo now. All those pumpkins out at Soliden's Farm and a couple Underbelly Rats, I never have to worry about mounts. As long as I'm not airborne after midnight. ;)
Kris1234
10-06-2010, 06:55 AM
Why would you need a macro? can't you just look at the mana bar? :P
i could but in the heat of battle with 4 casters this is a bit of a no unless its a longer boss fight i guess
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.