Advertisement
Guest User

Untitled

a guest
Mar 6th, 2013
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.39 KB | None | 0 0
  1. local scanTooltip
  2. function GetTradeSkillReagentItemLink(skillIndex, reagentLink)
  3.     if not scanTooltip then
  4.         scanTooltip = CreateFrame("GameTooltip", "TSMCraftingScanTooltip", UIParent, "GameTooltipTemplate")
  5.         scanTooltip:SetOwner(UIParent, "ANCHOR_NONE")
  6.     end
  7.     scanTooltip:ClearLines()
  8.     scanTooltip:SetTradeSkillItem(skillIndex, reagentLink)
  9.     return select(2, scanTooltip:GetItem())
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement