Last active
December 5, 2017 04:21
-
-
Save SafeteeWoW/dc023fb68582df5a0275b2b6f69d71e8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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