Skip to content

Instantly share code, notes, and snippets.

@SafeteeWoW
Last active December 5, 2017 04:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SafeteeWoW/dc023fb68582df5a0275b2b6f69d71e8 to your computer and use it in GitHub Desktop.
Save SafeteeWoW/dc023fb68582df5a0275b2b6f69d71e8 to your computer and use it in GitHub Desktop.
local id = 0
while not GetItemInfoInstant(id) do
id = math.random(1, 200000)
end
local frame = _G.TestGetItemInfo or CreateFrame("Frame", "TestGetItemInfo")
frame:RegisterEvent("GET_ITEM_INFO_RECEIVED")
frame:SetScript("OnEvent", function(self, event, id)
print(GetTime(), event, id)
print("-----")
end)
DEFAULT_CHAT_FRAME:AddMessage(GetTime().." requestinfo "..id.." "..tostring(GetItemInfo(id) or ""))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment