harl

StackCount

Oct 17th, 2014 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.27 KB | None | 0 0
  1. GameTooltip:HookScript('OnTooltipSetItem', function(self)
  2.     local _, link = self:GetItem()
  3.     if link then
  4.         local _, _, _, _, _, _, _, count = GetItemInfo(link)
  5.         if count and count > 1 then
  6.             self:AddDoubleLine('Stacks to:', count, 0, 1, 1, 1, 1, 1, 0)
  7.         end
  8.     end
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment