WoW:API GetPetFoodTypes

Revision as of 15:34, 29 October 2006 by WoWWiki>ScepraX
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

local PetFoodList = {GetPetFoodTypes()}; Returns a list with strings.

Possible strings: - Meat - Fish - Fruit - Fungus - Bread - Cheese

To print every string from the list in 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