WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   FeastDrop Issue (sound not playing with 8.0.1) (https://www.wowinterface.com/forums/showthread.php?t=56382)

Kyrgune 07-18-18 05:37 PM

FeastDrop Issue (sound not playing with 8.0.1)
 
I recently took over an addon called Dinnerbell which would play a sound when feasts are dropped. Ever since 8.0.1 no sounds are being made when someone puts down a feast.

I am no LUA expert, I really updated the addon since I enjoyed it back in the day but it hasn't been updated in years. If someone could maybe help me out here I would really appreciate it. All spell IDs are correct, just not sure what I am missing if something has changed. The link to the FeastDrop addon is down below.

http://www.wowinterface.com/download...FeastDrop.html

Thankyou,

Kyrgune

Xrystal 07-19-18 02:59 AM

My understanding is that custom sounds aren't possible and built in sounds are now using the SOUNDKIT table.

https://www.townlong-yak.com/framexm...tConstants.lua

PlaySound(SOUNDKIT.xxxxx) or PlaySound(SOUNDKIT[xxxx])

VincentSDSH 07-19-18 04:12 AM

PlaySoundFile() works just fine. The problem with that addon is that it expects COMBAT_LOG_EVENT_UNFILTERED to provide arguments but it doesn't anymore -- not the ones you want. You have to get them from CombatLogGetCurrentEventInfo().

If I'm reading it right, in Addon:COMBAT_LOG_EVENT_UNFILTERED(), as the first line add:
local _, eventtype, _, _, _, _, _, _, _, _, _, spellid = CombatLogGetCurrentEventInfo()

and remove the line "local _,_,_,_,_,_,_,_,_,spellid = ..."

Kyrgune 07-19-18 12:36 PM

Thanks VincentSDSH, that did the trick.


All times are GMT -6. The time now is 11:31 AM.

vBulletin © 2020, Jelsoft Enterprises Ltd
© 2004 - 2020 MMOUI