切換
舊版
前往
大廳
主題

中斷、竊取及驅散法術通報(巨集版)

死鬥 | 2014-11-05 08:45:59 | 巴幣 2 | 人氣 771

-- for 8.0 COMBAT_LOG_EVENT_UNFILTERED事件不再傳入參數
,改以CombatLogGetCurrentEventInfo()函數取得
--太長了,呃...塞不進去, 所以重新縮了一下長度@@

以下巨集,進遊戲或/RL 後跑一次即可,避免洗頻


中斷法術通報

/跑 local L,f=GetSpellLink,CreateFrame"FRAME"f:RegisterEvent"COMBAT_LOG_EVENT"f:SetScript("OnEvent",function()p={CombatLogGetCurrentEventInfo()}if p[2]=="SPELL_INTERRUPT"then SendChatMessage(p[9]..L(p[15]).."被"..p[5]..L(p[12]).."中斷","say")end end)


竊取法術通報

/跑 local L,f=GetSpellLink,CreateFrame"FRAME"f:RegisterEvent"COMBAT_LOG_EVENT"f:SetScript("OnEvent",function()p={CombatLogGetCurrentEventInfo()}if p[2]=="SPELL_STOLEN"then SendChatMessage(p[9]..L(p[15]).."被"..p[5]..L(p[12]).."成功","say")end end)


驅散法術通報

/跑 local L,f=GetSpellLink,CreateFrame"FRAME"f:RegisterEvent"COMBAT_LOG_EVENT"f:SetScript("OnEvent",function()p={CombatLogGetCurrentEventInfo()}if p[2]=="SPELL_DISPEL"then SendChatMessage(p[9]..L(p[15]).."被"..p[5]..L(p[12]).."成功","say")end end)

創作回應

更多創作