1. #1

    Custom audio in a macro or during Avenging Wrath

    Heya,

    I have been trying to do the following: play a custom made .mp3 file in a macro. I want to play a sound I have on mp3 when I cast Avenging Wrath, but frankly I have no idea how to do that. The sound would only play for 20 seconds, that's the duration of Avenging Wrath. I have tried using the addon Soundtrack, but that didn't work out. I'd love to hear some suggestions.

    Thanks in advance.

  2. #2

    Re: Custom audio in a macro or during Avenging Wrath

    Never thought about doing this before, but it sounds interesting.
    Keen to see how/if it can be done

  3. #3

    Re: Custom audio in a macro or during Avenging Wrath

    You could put the sound directly in to the wow folders with all the other sounds such as boss voices etc. and play it straight from there using a /script play file etc. command, although you'd need to get someone more technically capable to tell you exactly how to do this.
    Learn the rules so you know how to break them properly

    http://maggeddon.blogspot.com/
    http://twitter.com/#!/JSMcGough

  4. #4

    Re: Custom audio in a macro or during Avenging Wrath

    Note that adding files to your Warcraft data may be illegal and ban-able.

  5. #5

    Re: Custom audio in a macro or during Avenging Wrath

    Having a sound file play something when you use an ability is no different to running any other addon surely?

  6. #6

    Re: Custom audio in a macro or during Avenging Wrath

    Quote Originally Posted by Maggeddon
    You could put the sound directly in to the wow folders with all the other sounds such as boss voices etc. and play it straight from there using a /script play file etc. command, although you'd need to get someone more technically capable to tell you exactly how to do this.
    Physically inserting the file into the folders to use in the game is not possible, because they are not indexed with the others. Through an addon is by all means possible, and there are several addons that can accomplish this feat.

  7. #7

    Re: Custom audio in a macro or during Avenging Wrath

    It's probably very possible with Power Auras. If you can deal with a visual aid instead of audio aid then it's definitely doable.

  8. #8

    Re: Custom audio in a macro or during Avenging Wrath

    It can be done with Mik's Scrolling Combat Text (I use it to play a sound when I get a clearcast proc as a druid) and I think it gives an option to upload your own custom sounds, although the default ones were fine for what I needed.
    Only users lose drugs.

  9. #9

    Re: Custom audio in a macro or during Avenging Wrath

    Quote Originally Posted by droozle
    Note that adding files to your Warcraft data may be illegal and ban-able.
    With this logic addons would be illegal too.

    To the OP, make a macro similar to this:

    /cast Avenging Wrath
    /run PlaySoundFile("MySounds\\mysound.wav")

    Path is relative to the World of Warcraft directory. You have to use double backslash (\).

    More on Wowwiki: http://www.wowwiki.com/API_PlaySoundFile

    However that's a "cheap" solution. Better way would be to look for an event that confirms spell has been casted and then play it.

  10. #10
    Scarab Lord
    15+ Year Old Account
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    4,040

    Re: Custom audio in a macro or during Avenging Wrath

    Just use the "AfterCast" addon - it lets you set up things to go off if a spell actually casts. I'm certain you can use a /script PlaySoundFile with AfterCast.

  11. #11
    The Patient Bamahut's Avatar
    10+ Year Old Account
    Join Date
    Aug 2009
    Location
    The Entropy
    Posts
    335

    Re: Custom audio in a macro or during Avenging Wrath

    Quote Originally Posted by Taryble
    Just use the "AfterCast" addon - it lets you set up things to go off if a spell actually casts. I'm certain you can use a /script PlaySoundFile with AfterCast.
    Back in Vanilla bad BC is was using an addon called Soudtrack, really good addon. You could set tons of music/sound effects to just about anything you wanted, eg: when you mount up, when you get in Shattras, zone in BT. Very flexible addon, I wonder if it's updated to work in Wrath! I stopped using it about 2 years ago when I changed PC, got a bit tired of it lol!

    Edit: it is updated to work in Wrath, here's the link for it on curse.com

    http://wow.curse.com/downloads/wow-a...oundtrack.aspx

    Have fun!
    Yep I'm guild-less because of toxic elite-jerks in my old top raiding guild. Why can't we all get along like normal human beings?

  12. #12

    Re: Custom audio in a macro or during Avenging Wrath

    Why stop there? Let's come up with sounds for many things.

    Divine Shield - http://www.youtube.com/watch?v=VTFHhpZl3Uk
    Upon dying - http://www.youtube.com/watch?v=CWQMfJxABZ0
    When logging out - http://www.youtube.com/watch?v=Cp6pBbLw820

  13. #13
    Scarab Lord
    15+ Year Old Account
    Join Date
    Aug 2008
    Location
    Texas
    Posts
    4,040

    Re: Custom audio in a macro or during Avenging Wrath

    Fail, actually, totally legal, as long as you're not altering the .mpq files.

    Sound files in WoW are inside the MPQ files, but are still treated by WoW as being a file in a subfolder of the game folder. This means you can do things like change the game fonts without an addon by naming your fonts properly (FRITZQ__.ttf, Skurri.ttf, etc) and putting them in a "Fonts" folder under the WoW folder - WoW\Fonts\Skurri.ttf, for example. This can also be used to alter any sound in the game - silence the loading screen dragon, etc.

    However, for what he wants to do, you just put the sound files you want to use in a subfolder of WoW - Mysounds is a good one. WoW\Mysounds\mymusicfile.mp3, for an example path/filename. This way, WoW will let you use that sound in an addon or scripted command - /script PlaySoundFile, PlayMusicFile, etc. (The difference? Infinite loop when used with PlayMusicfile, until you use another script to stop it - PlaySoundFile only plays the sound once, and it's not possible to stop it early).

  14. #14

    Re: Custom audio in a macro or during Avenging Wrath

    Quote Originally Posted by Robin64
    Why stop there? Let's come up with sounds for many things.

    Divine Shield - http://www.youtube.com/watch?v=VTFHhpZl3Uk
    I laughed.

    Hard.

    To the OP, stick with an addon as others are saying, I wouldn't try anything else

  15. #15

    Re: Custom audio in a macro or during Avenging Wrath

    You can have a folder for sounds, even using a similar method to replace the in-game ones by providing substitutes.
    A similar method is used for images too to effectively reskin the UI without the need for an addon.
    http://www.soundwizardry.com/?p=244 explains the approach for doing so with sounds.
    It does not involve an addon, a macro nor any modification of game files.
    Quote Originally Posted by DeadmanWalking View Post
    Your forgot to include the part where we blame casuals for everything because blizzard is catering to casuals when casuals got jack squat for new content the entire expansion, like new dungeons and scenarios.
    Quote Originally Posted by Reinaerd View Post
    T'is good to see there are still people valiantly putting the "Ass" in assumption.

  16. #16

    Re: Custom audio in a macro or during Avenging Wrath

    MSBT

  17. #17
    High Overlord Yaminho's Avatar
    15+ Year Old Account
    Join Date
    May 2008
    Location
    Kosice, Slovakia
    Posts
    141

    Re: Custom audio in a macro or during Avenging Wrath

    Quote Originally Posted by Robin64
    Why stop there? Let's come up with sounds for many things.

    Divine Shield - http://www.youtube.com/watch?v=VTFHhpZl3Uk
    Upon dying - http://www.youtube.com/watch?v=CWQMfJxABZ0
    When logging out - http://www.youtube.com/watch?v=Cp6pBbLw820
    try this :P
    http://wow.curse.com/downloads/wow-a...fwarcraft.aspx

  18. #18

    Re: Custom audio in a macro or during Avenging Wrath

    Thanks all for the replies, it works now. What I did was cut the mp3 file to the length that I wanted, 20 seconds. Then I placed it in Interface -> Addons -> SoundtrackMusic and use the /script Playsound. I will upload the result to Youtube soon. I'm using this sound when I pop wings: http://www.youtube.com/watch?v=BQeKOAzHw28 (yes, I'm a MW2 fan :P ).

    The macro is as following:

    /cast Avenging Wrath
    /cast Aura Mastery
    /script PlaySoundFile("Interface\\AddOns\\SoundtrackMusic\\mw.mp3")

    Thnx again!

  19. #19

    Re: Custom audio in a macro or during Avenging Wrath

    That is very fitting for wings actually. ;D

    Does it cause any game performance issues? If not I think I might try it.

  20. #20

    Re: Custom audio in a macro or during Avenging Wrath

    Think I might try MSBT. Got priest and warrior AE fears macro'ed to play with one of Marwens sound bites (hint, not the one about despair) and sometimes I really jam the action in pvp leaving me unable to here anything apart from a stuttering deathknight for 6 seconds
    RETH

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •