WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Raid notice not playing a sound (https://www.wowinterface.com/forums/showthread.php?t=56604)

zork 08-26-18 11:55 PM

Raid notice not playing a sound
 
I am currently looking into an issue that I think I have with raid notices from the Blizzard UI.

Example would be https://www.wowhead.com/spell=263246/lightning-shield used in this encounter https://www.wowhead.com/npc=133379/adderis#encounter

When lightning shield is cast I see a yellowish text with the word [Lightning Shield] in there near what I would guess is the raid notice frame. It sort of looks like a text with a spell link.

The text is in the chat frame too.

I think it is not playing a sound when applied and the function that might be called should be this one:
https://www.townlong-yak.com/framexm...arning.lua#139

If it is the raid notice frame I might be able to fix it with
Lua Code:
  1. local function RaidBossEmote(self,event,...)
  2.   print(event,...)
  3.   if event == "CLEAR_BOSS_EMOTES" then return end  
  4.   local text, playerName, displayTime, playSound = ...
  5.   if not playSound then
  6.     PlaySound(SOUNDKIT.RAID_WARNING)
  7.   end
  8. end
  9.  
  10. hooksecurefunc("RaidBossEmoteFrame_OnEvent", RaidBossEmote)

Has anyone worked on raid warnings/emote lately and has a clue?

*edit*

Forget that. The text is from DBM of one of my party members.


All times are GMT -6. The time now is 05:53 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI