ManaCheck

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

pukpuk
orc pawn
orc pawn
Posts: 12
Joined: Thu Sep 02, 2004 5:35 am

ManaCheck

Post by pukpuk » Wed Sep 15, 2004 4:51 am

Has anyone found out a new way to check the mana? (in % or in absolut)

User avatar
Cr4zyb4rd
Plugins Czar
Posts: 1449
Joined: Tue Jul 20, 2004 11:46 am

Post by Cr4zyb4rd » Wed Sep 15, 2004 5:05 am

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)

Anasazu
decaying skeleton
decaying skeleton
Posts: 6
Joined: Wed Jul 21, 2004 3:41 pm

Post by Anasazu » Wed Sep 15, 2004 10:06 pm

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.

dedpoet
a hill giant
a hill giant
Posts: 247
Joined: Sat Aug 14, 2004 12:22 pm

Post by dedpoet » Thu Sep 16, 2004 9:34 am

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.

Hannibal
orc pawn
orc pawn
Posts: 19
Joined: Sat Jul 03, 2004 10:28 pm

Post by Hannibal » Thu Sep 16, 2004 9:42 am

MaxMana & PctMana Fix

This will go into the next zip, I assume.

User avatar
Night Hawk
a grimling bloodguard
a grimling bloodguard
Posts: 590
Joined: Fri Aug 13, 2004 4:56 pm

Post by Night Hawk » Thu Sep 16, 2004 12:35 pm

I tried that fix. Perhaps I did something incorrectly.

pukpuk
orc pawn
orc pawn
Posts: 12
Joined: Thu Sep 02, 2004 5:35 am

Post by pukpuk » Fri Sep 17, 2004 2:42 am

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,...