Pet Feeding Macro
This macro will automatically feed your pet with one click. You will need to keep the pet's food in your 3rd bag (second from the left) and in the 1st slot of the bag for it to work. You can substitute 1-4 for 3 in the script if you'd like to store the food in a different bag. Change the 1 to whatever you'd like if you'd rather not store the food in the first slot. Note that you should manually enter this script instead of copying/pasting or it may not work properly. Also, keep it all on one line (don't hit Enter).
- Code: Select all
/script if (not PlayerFrame.inCombat) then if (not GetContainerItemLink(3, 1)) then OpenBag(3); else CastSpellByName("Feed Pet"); PickupContainerItem(3, 1); end end
EDIT: Changed the 4 in the script to a 3.