Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. local orig = ItemRefTooltip:GetScript("OnTooltipSetItem")
  2. ItemRefTooltip:SetScript("OnTooltipSetItem", function(self, ...)
  3. stats = {}
  4. statsValue = 0.0
  5. local name, link = self:GetItem()
  6.  
  7. GetItemStats(link, stats)
  8. statsValue = statsValue + ((stats["ITEM_MOD_INTELLECT_SHORT"] or 0) * 1.00)
  9. statsValue = statsValue + ((stats["ITEM_MOD_AGILITY_SHORT"] or 0) * 0.0)
  10. statsValue = statsValue + ((stats["ITEM_MOD_STRENGTH_SHORT"] or 0) * 0.0)
  11. statsValue = statsValue + ((stats["ITEM_MOD_SPELL_POWER_SHORT"] or 0) * .8820)
  12. statsValue = statsValue + ((stats["ITEM_MOD_ATTACK_POWER_SHORT"] or 0) * 0.0)
  13. statsValue = statsValue + ((stats["ITEM_MOD_CRIT_RATING_SHORT"] or 0) * .5522)
  14. statsValue = statsValue + ((stats["ITEM_MOD_HASTE_RATING_SHORT"] or 0) * 0.5796)
  15. statsValue = statsValue + ((stats["ITEM_MOD_MASTERY_RATING_SHORT"] or 0) * 0.5210)
  16. statsValue = statsValue + ((stats["ITEM_MOD_CR_MULTISTRIKE_SHORT"] or 0) * .5749)
  17. statsValue = statsValue + ((stats["ITEM_MOD_VERSATILITY"] or 0) * .4863)
  18.  
  19. GameTooltip:AddLine("Actual Value: " .. statsValue, 0, 1, 0)
  20.  
  21. if orig then return orig(self, ...) end
  22. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement