KoKR
EnUS--Spell Alert
local _SAt = {}
local _SAn = {}
local _SAch = IsInGroup(2) and "INSTANCE_CHAT" or IsInRaid() and "RAID" or IsInGroup(1) and "PARTY" or "YELL"
_SAt = {
--[spellID] = true, --spellName
[47788] = true, --수호 영혼
[33206] = true, --고억
} --타게팅
_SAn = {
--[spellID] = true, --spellName
[62618] = true, --방벽
[64843] = true, --천찬
} --논타겟
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 combatEvent=="SPELL_CAST_SUCCESS" and sourceGUID == UnitGUID("player") then
if _SAt[spellID] and destGUID ~= UnitGUID("player") then
SendChatMessage(destName.." 님께 "..GetSpellLink(spellID), _SAch)
elseif _SAn[spellID] then
SendChatMessage(GetSpellLink(spellID).." 사용!", _SAch)
end
end
end)
--Spell Alert
local _SAt = {}
local _SAn = {}
local _SAch = IsInGroup(2) and "INSTANCE_CHAT" or IsInRaid() and "RAID" or IsInGroup(1) and "PARTY" or "YELL"
_SAt = {
--[spellID] = true, --spellName
[47788] = true, --Guardian Spirit
[33206] = true, --Pain Suppression
} --targeting spells
_SAn = {
--[spellID] = true, --spellName
[62618] = true, --Power Word: Barrier
[64843] = true, --Divine Hymn
} --non targeting spells
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 combatEvent=="SPELL_CAST_SUCCESS" and sourceGUID == UnitGUID("player") then
if _SAt[spellID] and destGUID ~= UnitGUID("player") then
SendChatMessage(GetSpellLink(spellID).." on "destName, _SAch)
elseif _SAn[spellID] then
SendChatMessage(GetSpellLink(spellID).." up!", _SAch)
end
end
end)
댓글 없음:
댓글 쓰기