Saturday, April 14, 2012

Addon that plays a sound file...

[:1]Anyone got a base (or a whole addon) that I can edit, I m not that good of a programer to make a addon from the base and up so looking for a addon that can be edited to play a sound file when a certain skill is used, I have been trying to modify the addon 'Get over here!' but without success, one of the things I want is to play a soundfile when the rogue skill "Killing spree" is used.

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,...)
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");
|||if not UnitIsDead("target") then

--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