Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetQuestResetTime

Last wiki revision 2022-07-21

Returns the number of seconds until daily quests reset. nextReset = GetQuestResetTime

  • nextReset: - Number of seconds until the next daily quest reset.

A simple test case: print("init", GetQuestResetTime) local frame = CreateFrame("Frame") frame:RegisterEvent("PLAYER_LOGIN") frame:RegisterEvent("QUEST_LOG_UPDATE") frame:SetScript("OnEvent", function(self, event) print(event, GetQuestResetTime) end)

  • At the first UI load per login, this function returns the time since the Unix epoch instead. Appears to give the correct value as of the second event to occur after login.
  • In 6.x returned incorrect answers for players inside instances hosted on servers that use a different reset time (eg Oceanic and Brazilian players in US continental instance servers). Fixed in 7.x

Source

https://warcraft.wiki.gg/wiki/API_GetQuestResetTime · 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.