Log in

View Full Version : Intelligent healing macro possible?



Powerwar
11-06-2008, 12:22 PM
I am running 4 shamans with no tank nor designated healer. Usually on instance trash a stoneclaw totem is enough and on bosses I just need to spam chain heal in the middle of the fight if the boss fears andnothing if it doesnt because I spam him with 4 earth elementals to tank.

This system works relatively good, but I think that adding an intelligent healer would be nice, specially when one of my toons does 3 crits in a row and then either I have to stop DPS for all the group to heal him or let him die.

Is there a kind of macro that would to the following:
Check party members and heal the one with less HP or the harmed one from a given list (as long as there is someone injured). Otherwise spam CL/LB/Shock when everyone has OK HP.

I know something like this (stolen from priest) worked before 2.0 patch, but now it's impossible:

/script P=1;T='player';function
F(a)h=UnitHealth(a);p=h/UnitHealthMax(a);if h>0 and P>p then
P=p;T=a;end end F(T);for i=1,4 do p='party'..i;if p then F(p);end end
TargetUnit(T);CastSpellByName('Holy Light(Rank 7)');TargetLastEnemy()

Yet it only does the healing part and not the DPS if there is no need to heal part.

Any ideas?

Oatboat
11-06-2008, 12:35 PM
for boss fights i just have my main take his lightning bolt macro off the bar and just use another macro to heal target=targettarget. Also use Healbot to help with it so i'm no changing my targets. This way i can still use my Chain lightning and shocks on main.. but hes freed up to heal while they spam lightning bolt. Never had any real problems doing this.

Powerwar
11-06-2008, 12:46 PM
The's ok, and I have something similar, but it's a big mana and DPS waste usually.
In my case this is what usually happens:
toon 2 makes 3 consecutive crits and draws aggro like crazy
At near 25% HP toon 2 loses aggro and it's switched to toon 3 that has full HP.
now the healbot is healing toon 3 and not toon 2 that has almost no HP left.

It's not an elegant solution and is usually a big mana waste in long fights.

Golle
11-06-2008, 02:15 PM
make a modifier addition to your macro then. Like this.


/targetlasttarget [modifier:shift]
/cast Heal

My thought was: If Shift is held down while pressing this macro, it should target the lasttarget(the person with the low health) and heal him.

zanthor
11-06-2008, 03:09 PM
This wont work in combat. Protected function.

elsegundo
11-06-2008, 04:11 PM
inteligent players dont need inteligent macros.


lol jk. but i dont think it will work. its almost automation when it comes to "automatically" healing someone who's health is low.

maybe use a alt modifier to heal?


/cast [target=targettarget, exist, nomod] Harm spell; [target=targettargettarget] Heal spell

*note, this requires YOU to press alt/ctrl/shift when you need to heal the person the mob is attacking.
**note2, i try not to let macros think for me. i think im the best judge as to when i should heal and which healing spell to use.

algol
11-06-2008, 04:20 PM
In many cases, the person with low health has low health because a mob is stabbing them in the face, thus frequently targeting them. So try a macro that casts heal on your target if it's friendly, on your target's target if the target is hostile, and optionally on yourself if you're not targeting anything.

Obviously doesn't apply to AoE situations, is much weaker in PVP situations, and doesn't help if several characters simultaneously have aggro on separate mobs. But it's handy in PVE for the other 95% of the time.