3 in 1 macro
if target is enemy = charge
if target is friendly = intervene
if your in meelerange on an enemy = hamstring
#showtooltip
/cast [harm,nodead] Charge; [help,nodead][@player] Intervene
/cast Hamstring
hamstring can be replaced by Victory Rush if you want