Close
Showing results 1 to 9 of 9
  1. #1

    Default how much mana left macro.

    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?

  2. #2

    Default

    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
    Code:
    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.
    .[I



  3. #3

    Default

    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
    brainie pala 80 - blastcast shaman 80 - deadcast shaman 80 - swientie holy priest 80 - magrin mage 80 -- Aggramar EU

  4. #4

    Default

    Quote Originally Posted by Kris1234 View Post
    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.
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

  5. #5

    Default

    Quote Originally Posted by Khatovar View Post
    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.
    .[I



  6. #6

    Default

    Quote Originally Posted by Zub View Post
    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

  7. #7

    Default

    Why would you need a macro? can't you just look at the mana bar? :P
    EVE Online Get Ships. Train Skills.

  8. #8

    Default

    Quote Originally Posted by Zub View Post
    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.
    Blog : Herding Khats
    Team : Kina - Çroaker - Messkit - Lìfetaker - Wìdowmaker
    Newbie Guides : Multiboxing Vol. 1 - Multiboxing Vol. 2 - HotKeyNet - Jamba
    The Almighty Lax made a liar out of me, apparently I DO get prizes for it.
    *Commences Wielding the Banhammer like there's piñatas up in here and I'm Lady Thor*

    _ Forum search letting you down? Use the custom Google search _

  9. #9

    Default

    Quote Originally Posted by EaTCarbS View Post
    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

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •