Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if not dreambg then
- CreateFrame("Frame","bg")
- bg:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
- bg:SetScript("OnEvent",function(self,event,...)
- local arg={...}
- local buff={
- 1784, --Незаметность
- 58427, --Бойня
- 14177,
- 57978, --Нейтрализующий яд
- 57975, --Нейтрализующий яд
- 57970, --Смертельный яд
- 3409, --Калеч яд
- 11305, --спринт
- 51724, --Сап ошеломление
- 51723, --Веер клинков
- 1833, --подлый трюк
- 48676, --гаррота
- 2094, --blind
- 48660, --кровоизлияние
- 31665, --мастер скрытности
- }
- for k,i in ipairs(buff) do
- if arg[2]=="SPELL_AURA_APPLIED"
- -- or arg[2]=="SPELL_AURA_REMOVED"
- -- or arg[2]=="SPELL_CAST_START"
- --or arg[2]=="SPELL_DAMAGE"
- and arg[4]
- and UnitIsEnemy("player",arg[4])
- and arg[10]==GetSpellInfo(i) then
- -- print(" "..arg[4].." "..arg[10].." "..arg[9].." ")
- if UnitBuffID("player",2893) == nil then Cast(2893,"player") end; -->Антияды по player
- end
- end
- end)
- dreambg = true end
- for i = 1, GetNumRaidMembers() do
- local name, realm = UnitName("raid"..i)
- return name
- end
- for i = 1, GetNumRaidMembers(), 1 do
- local unitname, unitrealm = UnitName("raid"..i)
- if unitname == name and unitrealm == realm then
- return "raid"..i
- end
- end
- -- or arg[2]=="SPELL_CAST_SUCCESS"
- --49016 Истерия
- --1038 Сальва
- -- and arg[7]==myname
- -- local myname=UnitName("player")
- -- local focusname=UnitName("focus")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement