08-22-08, 10:28 AM | #1 |
HealMeNow!
Well, I thought for awhile about what I should tackle for my second addon... my Fiancé was playing with her Warrior last night, doing quests in Dustwallow, and she had to keep running away, targeting herself, and using bandages. After I helped her set up a "[target=player] bandage" macro, I decided that my next Addon should be an all-purpose, emergency healing button.
I looked around, but didn't see anything that did all the things that I'm planning, so I hope my idea is original enough... I wrote up what I intend to do, please take a look and let me know where I can improve. Any help is greatly appreciated: This will be a simple, emergency-use addon to heal you when you click/use hotkey. While idle, addon will try to determine the following items:
Structure will look like this: Code:
ABILITY NAME MID HEAL AMOUNT CAST TIME COST TIME Healing Touch (1) 44 1.5 25 0 Rejuvenation (1) 32 0 25 12 Minor Healing Potion 80 0 0 0 If the Player is in Battle, X = 20, otherwise, X = 10 So, the Values for the above abilities would be: Out of Combat: Code:
Healing Touch 1 = 24 44 - ( (1.5 * 10) + (25 / 5) + (0 / 2) ) Rejuvenation 1 = 21 32 - ( (0 * 10) + (25 / 5) + (12 / 2) ) Minor Healing Potion = 80 80 - ( (0 * 10) + (0 / 5) + (0 / 2) ) Code:
Healing Touch 1 = 9 44 - ( (1.5 * 20) + (25 / 5) + (0 / 2) ) Rejuvenation 1 = 21 32 - ( (0 * 20) + (25 / 5) + (12 / 2) ) Minor Healing Potion = 80 80 - ( (0 * 20) + (0 / 5) + (0 / 2) ) Based on these ratings, when the button is pressed, the Addon will cast the best spell for that moment. Obviously, it will need to take into account if anything is unavailable at the time (cooldowns, OOM, recently bandaged, etc), so that when you click, you should be healed somehow, if at all possible. In combat looks for the fastest solution, while out of combat looks for the largest amount of healing. For talents that effect healing abilities, we'll want to just have another list: Code:
TALENT NAME AFFECTED ABILITY BONUS PER RANK Naturalist Healing Touch 1 Improved Rejuvenation Rejuvenation 2 Out of Combat: Code:
Healing Touch 1 = 26 44 - ( (1.5 * 10) + (25 / 5) + (0 / 2) ) + 2 Rejuvenation 1 = 27 32 - ( (0 * 10) + (25 / 5) + (12 / 2) ) + 6 Code:
Healing Touch 1 = 11 44 - ( (1.5 * 20) + (25 / 5) + (0 / 2) ) + 2 Rejuvenation 1 = 27 32 - ( (0 * 20) + (25 / 5) + (12 / 2) ) + 6 Last edited by SeiferTim : 08-22-08 at 10:35 AM. |
|
WoWInterface » AddOns, Compilations, Macros » Alpha/Beta AddOns and Compilations » HealMeNow! |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Switch to Hybrid Mode |
Threaded Mode |
|
|