아이템과 스킬에 마우스오버 하고서 매크로 누르면 ID가 나옵니다.

/run local N,L,I=GameTooltip:GetItem();if N then _,I=strsplit(":",string.match(L,"item[%-?%d:]+"));else N,I=GameTooltip:GetSpell();end;if N then print(N.."  "..I)end



P.S. 아래는 상인 대화 시 법사의 이동 룬이 10개 이하라면 갯수를 보여주고, 마법 재료상과 대화하면 10개로 맞춰주는 스크립트입니다. 법사 키우다보니 필요해 보여서 만들었습니다. 이런 류의 애드온으로 Reagent Restocker 가 있는데 업데이트를 안 하네요.  애드온으로 쓰실 분은 첨부파일을 이용하세요.

CreateFrame("Frame", "BuyRune")
BuyRune:RegisterEvent("MERCHANT_SHOW")
BuyRune:SetScript("OnEvent", function(self, event, ...)
local rune = {17031, 17032};
for k = 1, #rune do
local count = GetItemCount(rune[k])
if (UnitClass"player" == "마법사" and count < 10) then
local runeName = GetItemInfo(rune[k])
print(runeName.." x 124cffffff00"..count.."124r")
for i = 1, GetMerchantNumItems() do
local merName = GetMerchantItemInfo(i)
if (merName == runeName) then
local quantity = 10 - count;
BuyMerchantItem(i, quantity)
end
end
end
end
end)