Page 1 of 1

ManaCheck

Posted: Wed Sep 15, 2004 4:51 am
by pukpuk
Has anyone found out a new way to check the mana? (in % or in absolut)

Posted: Wed Sep 15, 2004 5:05 am
by Cr4zyb4rd
It's being worked on. PctMana may go away, but MaxMana should be back (easy enough to figure out the pct if you know the current and max anyway).

Until then, efudd suggested doing something like

Code: Select all

/if (${Me.CurrentMana} > ${MaxMana}) /varset MaxMana ${Me.CurrentMana}
in your code every so often when you need to know the max. Should work unless you get VOQ and then lose it or something...better than nothing :) (sorry for syntax errors, it's late and the readme's search button isn't working for me for some reason)

Posted: Wed Sep 15, 2004 10:06 pm
by Anasazu
Another workaround could be:

/declare PctMana int outer
/declare MaxMana int outer
/varset MaxMana 3234

/varcalc PctMana ${Me.CurrentMana}/${MaxMana}*100
/if (${PctMana}>50) /cast "Spell"

..but of course you'd have to have knowledge of your maximum mana amount.

Posted: Thu Sep 16, 2004 9:34 am
by dedpoet
I'm currently setting a variable called MaximumMana at the start of my macro. If I gain or lose a mind buff, I manually set the variable in-game with a /varset command. It's not elegant, and it means I need to start my mac at full mana, but it works for now.

Code: Select all

/declare MaximumMana ${Me.CurrentMana}
Then when I need to know my percent mana, I do exactly what Anasazu posted with a varcalc, but I renamed my variable to "PercentMana" just to avoid confusion. When/if ${Me.MaxMana} comes back, I'll remove that /declare line and change the varcalcs back to use that again.

Posted: Thu Sep 16, 2004 9:42 am
by Hannibal
MaxMana & PctMana Fix

This will go into the next zip, I assume.

Posted: Thu Sep 16, 2004 12:35 pm
by Night Hawk
I tried that fix. Perhaps I did something incorrectly.

Posted: Fri Sep 17, 2004 2:42 am
by pukpuk
All work fine. Only remember that if u start the macro at lower mana than 100% or without KEI and receivin it later the max Mana calculation may run into trouble if u do not put in some extra calculation including selfbuffcheck,...