Help with macro

Hi,

I’m looking for a macro that will cast an ability on your mouse over target if there is one, or at your target if you have no mouse over target.

Both for a friendly and non friendly ability.

Any help would be appreciated.

Thanks

hi

#showtooltip
/cast [@mouseover,harm,nodead][@target,harm,nodead]Frostbolt

#showtooltip
/cast [@mouseover,help,nodead][@target,help,nodead][@player]Flash Heal

There’s a number of variations in the pins, with descriptions.