Playing sounds with a macro

I had a macro that plays Illidan’s “You are not prepared” line from BT whenever I pressed Metamorph:

#showtooltip Metamorphosis
/cast Metamorphosis
/yell YOU ARE NOT PREPARED!
/script PlaySoundFile(“Sound\Creature\Illidan\BLACK_Illidan_04.ogg”, “Dialog”)

However, it recently stopped playing the line. I haven’t changed anything about the macro itself or my sound settings. Is there a way to fix it to allow the sound to play again?

A recent patch removed the ability to use PlaySoundFile for the sounds included with the game.

You’ll need to use PlaySound with the numeric soundKitID. You can look up the IDs at wow.tools.
It looks like that file has the ID 11466 so it should be

#showtooltip Metamorphosis
/cast Metamorphosis
/yell YOU ARE NOT PREPARED!
/run PlaySound(11466, “Dialog”)
2 Likes

Ah, thanks. I’ll give it a go.

Edit: Nope. Sound’s still not playing.

Edit 2: Got it working. Had to change the quotation marks to get it to recognize the Dialogue channel.

That said, I have to wonder why they got rid of PlaySoundFile.

They didn’t get rid of PlaySoundFile, they changed it to only accept FileDataIDs. The equivalent would be PlaySoundFile(552503)

  • https://wow.tools/files/#search=black_illidan_04
  • https://wow.gamepedia.com/API_PlaySoundFile
4 Likes

Sorry to ask but where can I find those IDs for the sounds? Couldnt find it in wow.tools
The ID 11466 of Illidan’s “You’re not Prepared” works in game, but in wow.tools it shows its a undercity audio called undercity_047.wmo

Thanks in advance!

/run PlaySoundFile(552503)

Retail.

Found using Leatrix Sounds addon.