API GetPetFoodTypes
From WoW Classic Wiki
More actions
Template:Stub/Begin This article or section is a World of Warcraft API stub. You can help expand it by clicking edit this page above.
- Please see How to edit API pages for a list of boilerplates and page tags to use for different types of API related pages.
- Please be aware of the new rules of API pages as, we no longer just slap "{{WoW API}}" at the bottom of pages.
local PetFoodList = {GetPetFoodTypes()};
Returns
Returns a list with strings.
Possible strings
- Meat
- Fish
- Fruit
- Fungus
- Bread
- Cheese
Example
To print every string from the list into the default chatframe.
if(PetFoodList[1] ~= nil)then
local index, j;
for index, j in PetFoodList do
if (PetFoodList[index] ~= nil) then
DEFAULT_CHAT_FRAME:AddMessage(PetFoodList[index]);
end
end
end