I'm currently leveling a DK / MM hunter combo, and I've got a pretty high dps macro for my hunter, but it results in him going OOM after 3 mobs, and staying OOM from then on.

I'm looking for a macro I can run when out of combat that will do the following:

If (mana < 15%) and (aspect of the hawk is active) then (cast aspect of the viper)
If (mana > 90%) and (aspect of the viper is active) then (cast aspect of the hawk)

I think this should be possible using a /script command, and I know it will only work out of combat.

Unfortunately I don't know enough wow scripts to write this myself.

Can anyone help please?