daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local id = 0
  2. while not GetItemInfoInstant(id) do
  3.    id = math.random(1, 200000)
  4. end
  5.  
  6. local frame = _G.TestGetItemInfo or CreateFrame("Frame", "TestGetItemInfo")
  7. frame:RegisterEvent("GET_ITEM_INFO_RECEIVED")
  8. frame:SetScript("OnEvent", function(self, event, id)
  9.       print(GetTime(), event, id)
  10.       print("-----")
  11. end)
  12.  
  13. DEFAULT_CHAT_FRAME:AddMessage(GetTime().." requestinfo  "..id.."  "..tostring(GetItemInfo(id) or ""))
RAW Paste Data
Top