Formatting
(Formatting) |
|||
| Line 20: | Line 20: | ||
==Example== | ==Example== | ||
local i=1 | |||
while (GetQuestLogTitle(i) ~= nil) do | |||
local questTitle, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily = GetQuestLogTitle(i) | |||
if isHeader ~= 1 then | |||
DEFAULT_CHAT_FRAME:AddMessage(questTitle .. " [" .. level .. "]") | |||
end | |||
i = i + 1 | |||
end | end | ||
===Result=== | ===Result=== | ||
Prints the name and the level of all quests in your quest log. | Prints the name and the level of all quests in your quest log. | ||