배틀리
2017-01-20 07:02
조회: 3,333
추천: 5
루팅 아이템의 레벨과 부위 알림몹에서 아이템을 루팅하거나 퀘스트(전역퀘 포함) 완료 시 마우스오버나 클릭하여 나오는 툴팁을 보는 게 좀 귀찮아서 채팅창에 나오는 아이템링크를 통해 몇가지 정보를 표시하는 게 어떨까 생각되어 찾아봤고 별 문제없이 되는 것 같아 남깁니다. local function loot_filter(self, event, msg, ...) local loot = msg:find("아이템을 받았습니다") or msg:find("아이템을 획득했습니다") or msg:find("추가 전리품을 획득했습니다") if loot then local link = msg:match(": (.-|c.-|h|r.*)") if link then local _,_,quality,level,_,_,subtype,_,slot = GetItemInfo(link) if (not slot:find("INVTYPE_") and subtype ~= "유물 성물") then return end if (not quality or quality < 4) then return end local _, nim = msg:find("님이 ") if nim then msg = msg:sub(1, nim).."획득: "..link end subtype = subtype == "기타" and " " or " |cffffbdc0"..subtype.."|r " slot = _G[slot] or "" local info = " |cffffffff"..level..subtype..slot PlaySound("AuctionWindowOpen") print("|cff00ff00"..msg.."|r"..info) return true, msg, ... end end end ChatFrame_AddMessageEventFilter("CHAT_MSG_LOOT", loot_filter) ChatFrame_AddMessageEventFilter("UNIT_QUEST_LOG_CHANGED", loot_filter) ※ 2017.1.27 위 스크립트가 가방에 있는 아이템의 레벨을 표시한다는 부분에서 애드온 자료실에 제가 올린 CheckiLvl 애드온의 목적과 일치한다는 판단으로 애드온에 포함시켰습니다. |
인벤 공식 앱
댓글 알람 기능 장착! 최신 게임뉴스를 한 눈에 보자