The ultimate One Button PET ATTACK / FOLLOW / SWITCH TARGET (Warlocks & Hunters)
Created by macro mastermind Aethryl (Alliance Mage Kronos) you should thank him, he's the f*cking man.
Description: Click this macro once to /petattack, once to /petfollow if already attacking, and once to /petattack your new target IF already currently /petattacking something else. This macro performs a very basic one button pet combat-management function, but as you can see it's quite long ><
Instructions: Replace YouNameHere (which is featured twice in the script below) with your ingame name. Do not delete the quotation marks. Then copy with ctrl-c and paste the macro ingame with ctrl-v, and like magic it's now yours to enjoy:
/script if UnitExists("target") then if a==0 then PetAttack(target) a=1 else if UnitExists("pettarget") and UnitIsUnit("target", "pettarget") then PetFollow("YourNameHere") a=0 else PetAttack(target) end;end; else PetFollow("YourNameHere") a=0 end;