-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lustfeld.lua
21 lines (20 loc) · 889 Bytes
/
Lustfeld.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
local Lust_EventFrame = CreateFrame("Frame")
Lust_EventFrame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
Lust_EventFrame:SetScript("OnEvent",
function(self, event, ...)
local args1, args2, args3, args4, args5, args6, args7, args8, args9, args10, args11, args12, args13 = ...
spells = {"Bloodlust", "Time Warp", "Heroism", "Ancient Hysteria", "Netherwinds", "Drums of Fury"}
for i, v in ipairs(spells) do
if(args2 == "SPELL_AURA_APPLIED" and args9 == UnitName("Player") and args13 == v) then
Lust_EventFrame:BLOODLUST()
end
end
for i, v in ipairs(spells) do
if(args2 == "SPELL_AURA_REMOVED" and args9 == UnitName("Player") and args13 == v) then
StopSound(soundHandle, 2000)
end
end
end)
function Lust_EventFrame:BLOODLUST()
willPlay, soundHandle = PlaySoundFile("Interface\\AddOns\\Lustfeld\\Seinfeld Theme.mp3")
end