Lore archive · Warcraft Wiki, 2023 dump
API GetPetFoodTypes
Last wiki revision 2022-06-09
Returns the food types the pet can eat. petFoodList = { GetPetFoodTypes }
multiple Strings (not a table)
- Meat
- Fish
- Fruit
- Fungus
- Bread
- Cheese
To print every string from the list into the default chatframe.
local petFoodList = { GetPetFoodTypes }; if #petFoodList > 0 then local index, foodType; for index, foodType in pairs(petFoodList) do DEFAULT_CHAT_FRAME:AddMessage(foodType); end else DEFAULT_CHAT_FRAME:AddMessage("No pet food types available."); end
Source
https://warcraft.wiki.gg/wiki/API_GetPetFoodTypes · retrieved 2023-11-13 · CC BY-SA 4.0
Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.
This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.