배틀리
2018-07-21 21:23
조회: 11,624
추천: 25
첨부파일 Notice.zip [2Kb]
차단 알림 스크립트 소격아용 임시 대응※8.2.5패치로 필드에서 애드온 스크립트의 SendChatMessage() 함수 사용을 막은 것으로 보여 수정합니다. 차단 알림 관련해서 애드온이나 매크로 쓰는 분들 계실텐데 저처럼 스크립트를 이용한 개인애드온을 사용한다면 소격아가 시작되어 작동이 안 될 수 있습니다. 게임사에서 방법을 바꿨기에 그에 맞는 방법을 찾아봤고 이상 없이 되는 것 같아서 적습니다. 기준이 되는 스크립트는 강남쌍칼님이 올려주셨던 글입니다. 위 링크의 첨부파일 내용을 메모장 같은 편집프로그램으로 열면 아래의 내용입니다. local si=CreateFrame("Frame") si:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") si:SetScript("OnEvent", function (_,_,_,combatEvent,_,_,sourceName,_,_,_,destName,_,_,spellID,spellName,_,xSpellID) if sourceName==UnitName("player") and combatEvent=="SPELL_INTERRUPT" then SendChatMessage(GetSpellLink(spellID).." 차단 "..destName.."의 "..GetSpellLink(xSpellID), "say") elseif sourceName==UnitName("player") and combatEvent=="SPELL_DISPEL" then SendChatMessage(GetSpellLink(spellID).." 해제 "..destName.."의 "..GetSpellLink(xSpellID), "say") end; end) 이를 아래처럼 바꾸면 되겠습니다. (수정: 2019.11.28) local function send(text, ch) if (not IsInGroup() or select(3, GetInstanceInfo()) == 0) then print(GameTime_GetTime(1), text) else SendChatMessage(text, ch) end end local si=CreateFrame("Frame") si:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED") si:SetScript("OnEvent",function () local _,combatEvent,hideCaster,sourceGUID,sourceName,sourceFlags,sourceRaidFlags,destGUID,destName,destFlags, destRaidFlags,spellID,spellName,_,param1,_,_,param4 = CombatLogGetCurrentEventInfo() if (not combatEvent) then return end --local channel = IsInGroup(2)and"INSTANCE_CHAT"or IsInRaid()and"RAID"or IsInGroup(1)and"PARTY"or"SAY"; local ch = "SAY"; if sourceGUID == UnitGUID("pet") and combatEvent == "SPELL_INTERRUPT" then -- 소환수 차단 알림 send("Pet's"..GetSpellLink(spellID).."▶"..destName.."의 "..GetSpellLink(param1),ch) elseif sourceGUID==UnitGUID("player") and combatEvent=="SPELL_INTERRUPT" then send(GetSpellLink(spellID).." ▶ "..destName.."의 "..GetSpellLink(param1),ch) elseif sourceGUID==UnitGUID("player") and combatEvent=="SPELL_DISPEL" then send(GetSpellLink(spellID).." ▶ "..destName.."의 "..GetSpellLink(param1),ch) end; end) P.S. 제가 사용중인 스크립트를 첨부합니다. 잡다한 걸 다 넣었으므로 쓰실 분만 쓰세요. |
인벤 공식 앱
댓글 알람 기능 장착! 최신 게임뉴스를 한 눈에 보자