WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Mana cost of a spell (https://www.wowinterface.com/forums/showthread.php?t=384)

DoorToKaos 03-01-05 11:27 AM

Mana cost of a spell
 
Hi there,

I'm trying to write a little addon that shall make a mage's (or warlock's or priest's or any caster's) life a little bit easier.
The main idea is the following: Let's say you're a mage and have the fireball spell rank 1 and rank 2. Normally you would cast fireball rank 2 because it does more damage, but what do you do when you have a bit mana left but it isn't enough for a rank 2 fireball? You would cast a rank 1 fireball perhaps. My addon shall exactly do that. I built yesterday a macro (yeah it's a far way to go for a complete addon but for a first step a macro does quite well ;)) which would do that, so basically it works... A little problem that occurs now: How do I read out the manacost of a spell? Yesterday I hardcoded it for testing but if it shall be a standalone addon it would be better when it would dynamically read out this data (and would save me a lot of typing ;))

So if anyone has an idea how I could read out the manacost of a spell it would be a great help.

Greetings Door


All times are GMT -6. The time now is 09:23 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI