Skip to content

Instantly share code, notes, and snippets.

@SafeteeWoW
Last active December 5, 2017 01:33
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/ccfa4e6f3fef81d36f9e69b9ed5fb7bb to your computer and use it in GitHub Desktop.
Save SafeteeWoW/ccfa4e6f3fef81d36f9e69b9ed5fb7bb to your computer and use it in GitHub Desktop.
local NH_1st_boss_links = {
[1]="|cffa335ee|Hitem:140840::::::::110:103::5:1:3524:::|h[Chittering Mandible]|h|r",
[2]="|cffa335ee|Hitem:140815::::::::110:103::5:1:3524:::|h[Infused Chitin Fragment]|h|r",
[3]="|cffa335ee|Hitem:140827::::::::110:103::5:1:3524:::|h[Manatoxin Gland]|h|r",
[4]="|cffa335ee|Hitem:140901::::::::110:103::5:1:3524:::|h[Vintage Suramar Nobility Hat]|h|r",
[5]="|cffa335ee|Hitem:140898::::::::110:103::5:1:3524:::|h[Radiant String of Scorpid Eyes]|h|r",
[6]="|cffa335ee|Hitem:140875::::::::110:103::5:1:3524:::|h[Arcanochitin Hauberk]|h|r",
[7]="|cffa335ee|Hitem:140902::::::::110:103::5:1:3524:::|h[Jagged Carapace Wristclamps]|h|r",
[8]="|cffa335ee|Hitem:140876::::::::110:103::5:1:3524:::|h[Stinger Resistant Bracers]|h|r",
[9]="|cffa335ee|Hitem:140888::::::::110:103::5:1:3524:::|h[Scorpid Handler's Gloves]|h|r",
[10]="|cffa335ee|Hitem:140849::::::::110:103::5:1:3524:::|h[Antiquated Highborne Cinch]|h|r",
[11]="|cffa335ee|Hitem:140862::::::::110:103::5:1:3524:::|h[Gnawed Nightfallen Britches]|h|r",
[12]="|cffa335ee|Hitem:140884::::::::110:103::5:1:3524:::|h[Leystone-Toe Kickers]|h|r",
[13]="|cffa335ee|Hitem:140789::::::::110:103::5:1:3524:::|h[Animated Exoskeleton]|h|r",
[14]="|cffa335ee|Hitem:140790::::::::110:103::5:1:3524:::|h[Claw of the Crystalline Scorpid]|h|r"
}
local count = 0
for _, l in pairs(NH_1st_boss_links) do
if not GetItemInfo(l) then
count = count + 1
end
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)
end)
print(count, GetTime())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment