Thread Tools Display Modes
12-11-13, 12:00 AM   #1
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Gem/Enchants Showing Scaled Values

Hi,

I have, like a lot of other players, a banker pg of level 1 or 2.

When I use it on AH to buy gems or enchants for my others pg, which are level 90, I find very difficult to find the right thing because I see the scaled value of the obj to my level 1 and not seeing anymore (after patch 5.4) the stats the obj will have when used by a pg of level 90.
Considering that I am using an italian client (which have no translation in wowhead and others help site) you should realize that trying to buy something advertised and suggested in english site (like icy-veins, noxxic.com and so on) is a real nightmare and it is a very faulty process :-)

Now I ask... Is there or could be useful to have an addon that shows the values of the obj also for level different from the one of the pg is checking it ?

Thanks for help/suggestions/tips and tricks.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote
12-11-13, 02:31 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
I don't know of any addon that will solve your problem, but:

Originally Posted by gmarco View Post
Considering that I am using an italian client (which have no translation in wowhead and others help site) you should realize that trying to buy something advertised and suggested in english site (like icy-veins, noxxic.com and so on) is a real nightmare and it is a very faulty process :-)
Even though Wowhead doesn't have an Italian localization, you can still click the "Links" button on the English Wowhead page and paste the provided link in-game. The link itself will appear with the item's English name, but if you click on it in-game, the tooltip will show it in your language, so you can make sure the item you're buying is the item you're supposed to be buying.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-11-13, 07:19 AM   #3
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,360
Drycoded and untested
Code:
local pLevel = UnitLevel("player")
local maxLevelTip = function(frame,type,index)
  if GameTooltip:IsOwned(frame) then
    local item, link = GameTooltip:GetItem()
    if item and link and pLevel < MAX_PLAYER_LEVEL and IsAltKeyDown() then
      local modlink = gsub(link,":(%d+)(:%d+:%d+\124h%[)",format(":%d%%2",MAX_PLAYER_LEVEL))
      print(modlink) -- debug
      GameTooltip:SetHyperlink(modlink)
      GameTooltip:SetOwner(frame,"ANCHOR_RIGHT")
      GameTooltip:Show()
    end
  end
end
if IsAddOnLoaded("Blizzard_AuctionUI") then
  hooksecurefunc("AuctionFrameItem_OnEnter",maxLevelTip)
else
  local e = CreateFrame("Frame")
  e.addon_loaded = function(_,_,addon)
    if addon == "Blizzard_AuctionUI" then
      e:UnregisterEvent("ADDON_LOADED")
      hooksecurefunc("AuctionFrameItem_OnEnter",maxLevelTip)
    end
  end
  e:RegisterEvent("ADDON_LOADED")
  e:SetScript("OnEvent",e.addon_loaded)
end
Might work if Blizzards lets enchant and gem links scale same as Heirlooms.
What this code does is it replaces the linklevel field with the max_level if player level is below that.
You could obviously customize it for any level.

Like I said the constructed link should be proper but I'm not sure the game will respect it.
  Reply With Quote
12-12-13, 12:18 PM   #4
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
Thanks Phanx & Dridzt for the kind replies.

I'll give a try to Dridzt's code to study it a little bit more in the weekend :-)

Thanks again ... really appreciated.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Gem/Enchants Showing Scaled Values


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off