Page 1 of 1

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

PostPosted: Sun Dec 30, 2018 11:44 am
by slverbaur
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.

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")

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 to feed your pet. 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.