Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function OnTooltipSetItem(self)
- stats = {}
- statsValue = 0.0
- local name, link = self:GetItem()
- GetItemStats(link, stats)
- statsValue = statsValue + ((stats["ITEM_MOD_INTELLECT_SHORT"] or 0) * 1.00)
- statsValue = statsValue + ((stats["ITEM_MOD_AGILITY_SHORT"] or 0) * 0.0)
- statsValue = statsValue + ((stats["ITEM_MOD_STRENGTH_SHORT"] or 0) * 0.0)
- statsValue = statsValue + ((stats["ITEM_MOD_SPELL_POWER_SHORT"] or 0) * .8820)
- statsValue = statsValue + ((stats["ITEM_MOD_ATTACK_POWER_SHORT"] or 0) * 0.0)
- statsValue = statsValue + ((stats["ITEM_MOD_CRIT_RATING_SHORT"] or 0) * .5522)
- statsValue = statsValue + ((stats["ITEM_MOD_HASTE_RATING_SHORT"] or 0) * 0.5796)
- statsValue = statsValue + ((stats["ITEM_MOD_MASTERY_RATING_SHORT"] or 0) * 0.5210)
- statsValue = statsValue + ((stats["ITEM_MOD_CR_MULTISTRIKE_SHORT"] or 0) * .5749)
- statsValue = statsValue + ((stats["ITEM_MOD_VERSATILITY"] or 0) * .4863)
- GameTooltip:AddLine("Actual Value: " .. statsValue, 0, 1, 0)
- end
- GameTooltip:HookScript("OnTooltipSetItem", OnTooltipSetItem)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement