Feed Pet Macro (THE BEST ONE!) - Requires SuperMacro

Feed Pet Macro (THE BEST ONE!) - Requires SuperMacro

by slverbaur » Sun Dec 30, 2018 11:44 am

This is the best "Feed Pet" macro (requires SuperMacro).

Why is this the best? Because you no longer have to care about where your food is in your bags. All that matters is that you have it. This macro scans all your bags for the specific food you tell it to and automatically feeds it to your pet, no matter where it is. Forget about keeping food in the right bag slot.

Literally one click and the pet starts eating

Put this in "Extended Lua Code" (right side in SuperMacro).

Code: Select all
function FeedPetByName(x)
   for b=0,4 do
      for s=1,GetContainerNumSlots(b) do
         if (string.find(GetContainerItemLink(b,s) or " ", x)) then
            PickupContainerItem(b,s) DropItemOnUnit("pet")
            b=4
            break
         end
      end
   end
end


Put this in the "Macro Commands" (left side in SuperMacro)


Code: Select all
/script FeedPetByName("Name of Food");


Change Name of Food to the food you want - KEEP THE " ". Lets say you want to feed your pet Roasted Quail change it to:


Code: Select all
/script FeedPetByName("Roasted Quail");



If you no longer want to feed your pet Roasted Quail you simply change the name to the food you want to feed it. Very simple.
slverbaur
Private
Private
 

Return to Hunter

cron