Skip to content

Instantly share code, notes, and snippets.

@jesseadams
Created June 12, 2011 06:13
Show Gist options
  • Save jesseadams/1021295 to your computer and use it in GitHub Desktop.
Save jesseadams/1021295 to your computer and use it in GitHub Desktop.
Abandon All Quests
function PurgeQuestLog()
print("Purging Quest Log...")
numEntries, numQuests = GetNumQuestLogEntries()
for i=1,numEntries do
questTitle, level, questTag, suggestedGroup, isHeader, isCollapsed, isComplete, isDaily, questID = GetQuestLogTitle(i);
if not isHeader then
print("Abandoning: " .. questTitle)
SelectQuestLogEntry(i)
SetAbandonQuest()
AbandonQuest()
end
end
end
SLASH_PURGEQUESTS1 = '/purgeq';
SlashCmdList["PURGEQUESTS"] = PurgeQuestLog;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment