Originally Posted by Banknorris
This script eliminate the use of #showtooltip:
Lua Code:
hooksecurefunc(GameTooltip,"SetAction",function(self,action) local action_type,macro_id = GetActionInfo(action) if action_type=="macro" then local _,_,spell_id = GetMacroSpell(macro_id) if spell_id then GameTooltip:SetSpellByID(spell_id) else local _,link = GetMacroItem(macro_id) if link then local item_id = tonumber(link:match("item:(%d+)")) GameTooltip:SetItemByID(item_id) end end GameTooltip:Show() end end)
|
You should use
GameTooltip:SetHyperlink(Link) instead of
GameTooltip:SetItemByID(ID). This will include suffixes and the associated stats for items that have them.