You can create this script with RealmRelay. I think there is already a script for Auto Heal with priest, but none for paladin or warrior buffs.....
Edit:
I created one in combination with the multoboxing script some time ago... maybe ill adept it into a script with only pala and warri buffs....