2018년 6월 5일 화요일

주문 이벤트 경보 (Spell Alert)

BfA
Lua
--Spell Alert
local alert=CreateFrame("Frame")
alert:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
alert:SetScript("OnEvent", function(...)
local _,combatEvent,hideCaster,sourceGUID,sourceName,sourceFlags,sourceRaidFlags,destGUID,destName,destFlags, destRaidFlags,spellID,spellName,_,param1,_,_,param4 = CombatLogGetCurrentEventInfo()

if sourceGUID == UnitGUID("player") and combatEvent=="SPELL_INTERRUPT" then
    print("\124cffff0000차단\124r : "..destName.."의 "..GetSpellLink(param1)) -- 차단 Interrupt
elseif sourceGUID == UnitGUID("player") and combatEvent=="SPELL_DISPEL" and (bit.band(destFlags,COMBATLOG_OBJECT_REACTION_FRIENDLY)==COMBATLOG_OBJECT_REACTION_FRIENDLY) then
    print("\124cff00ff00해제\124r : "..destName.."의 "..GetSpellLink(param1)) -- 해제(아군) Dispel(friendly)
elseif sourceGUID == UnitGUID("player") and combatEvent=="SPELL_DISPEL" and (bit.band(destFlags,COMBATLOG_OBJECT_REACTION_HOSTILE)==COMBATLOG_OBJECT_REACTION_HOSTILE) then
    print("\124cffff0000해제\124r : "..destName.."의 "..GetSpellLink(param1)) -- 해제(적) Dispel(hostile)
elseif sourceGUID == UnitGUID("player") and combatEvent=="SPELL_STOLEN" then
    print("\124cffff0000훔치기\124r : "..destName.."의 "..GetSpellLink(param1)) -- 훔치기 Steal
elseif destGUID == UnitGUID("player") and combatEvent=="SPELL_MISSED" and param1=="REFLECT" then
    print("\124cffff0000반사\124r : "..sourceName.."의 "..GetSpellLink(spellID)) -- 반사 Reflect
end
end)


차단 해제 마훔 반사 등등 이벤트 발생시 개인 채팅창으로 알림
이벤트 : ㅁㅁ의 기술명 형식으로 출력

Example








참조 : 차단 성공/ 실패, 쿨기 사용

댓글 3개:

Unknown :

정말 도움 많이됬습니다 ㅠㅠ 감사합니다

익명 :

감사합니다.

얌츤츤 :

안녕하세요. 본인 외에 파티원의 해제나 쿨기(자연의군대나 투신 등) 을 추적하려면 어떻게 해야 할까요?

댓글 쓰기