And I dont want someone to make the whole thing for me, its fun to think things out by your self but this went way over my head. ^^|||'Get over here' should be perfect, just change the spell it looks for to killing spree, and change the sound file.
Show us what you have tried|||really really simple
change
local spellName = GetSpellInfo(49576)
to
local spellName = GetSpellInfo(51690)
yeah it looks simple but i had to ask 3 independent sources for help :D|||Hi!
I was looking for an addon helps me track Lock and load procs via sound alert.
BBQMeister's LockandLoad looked ok to start with. I've ripped all the unneeded spells and added Serpent Sting fade as an event.
It works like charm but on target death the serpent sting autofades ofc and i get the alert. So i should check target status and disable warning on dead target. Problem is i have no idea how to add that check (no lua XP here).
Any help appreciated.
Code:
function GetOverHere_OnEvent(self,event,...)|||if not UnitIsDead("target") then
local myGUID = UnitGUID("player")
if event == "COMBAT_LOG_EVENT_UNFILTERED" then
local _, desc, srcGUID, srcName, _, destGUID = select(1, ...)
if desc == "SPELL_AURA_APPLIED" then
local spellID, spellName = select(9, ...)
if srcGUID == myGUID then
if spellID == 56453 then -- Lock and Load
PlaySoundFile("Interface\\AddOns\\LockAndLoad\\mp3\\lockandload.mp3")
end
end
end
if desc == "SPELL_AURA_REMOVED" then
local spellID, spellName = select(9, ...)
if srcGUID == myGUID then
if spellID == 49001 then -- Serpent Sting
PlaySoundFile("Interface\\AddOns\\LockAndLoad\\mp3\\snakehiss.mp3")
end
end
end
end
end
local frame = CreateFrame("Frame", "GetOverHereFrame");
frame:SetScript("OnEvent", GetOverHere_OnEvent);
frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED");
--Serpent sting stuff
end|||Quote:
if not UnitIsDead("target") then
--Serpent sting stuff
end
Thx for the help, but it doesn't work, still plays the sound on target death. I think the aura autofades just before the mob dies. Maybe is should check health or dunno.
No comments:
Post a Comment