가끔 아이템을 파괴하고 어느 것을 파괴했는지 기억이 안나서 열 받은 적이 있는데 그걸 대비해서 시스템 메시지로 표시하면 어떨까 해서 만들었는데 공유하고자 남깁니다. 


1. 희귀 이상 아이템을 파괴할 때 [지금파괴] 버튼을 누르면 메시지 표시
hooksecurefunc(StaticPopupDialogs["DELETE_GOOD_ITEM"], "OnShow", function(self)
if (not self.delBox) then
self.delBox = CreateFrame("Button", "$parentDelete", self.editBox, "StaticPopupButtonTemplate")
self.delBox:SetSize(100, 38)
self.delBox:SetPoint("LEFT", self.editBox, "RIGHT", 20, 0)
self.delBox:SetText(DELETE_ITEM_CONFIRM_STRING)
end
self.delBox:SetScript("OnClick", function()
self.editBox:SetText(DELETE_ITEM_CONFIRM_STRING)
local link = select(3,GetCursorInfo())
if (link) then
C_Timer.After(0, function()
StaticPopup1Button1:Click()
print(GameTime_GetTime(true).." |cffff0000지금파괴: |r"..link)
RaidNotice_AddMessage(RaidBossEmoteFrame, "지금파괴: "..link, ChatTypeInfo["YELL"], 5)
end)
end
end)
end)

2. 고급 이하 아이템을 파괴할 때 메시지 표시
hooksecurefunc("StaticPopup_Show", function(f, sender)
if f == "DELETE_ITEM" then
local link = select(3,GetCursorInfo())
print(GameTime_GetTime(true).." |cffff0000지금파괴: |r"..link)
RaidNotice_AddMessage(RaidBossEmoteFrame, "지금파괴: "..link, ChatTypeInfo["YELL"])
end
end)