Link to home
Start Free TrialLog in
Avatar of WeThotUWasAToad
WeThotUWasAToad

asked on

.lua files in World of Warcraft and adding .ogg files converted from .mp3

Hello,

A while back, I installed an addon for World of Warcraft (WoW) which causes an audio alert to occur each time my character casts a Critical Strike. The addon is called CritSound and I downloaded it from here.

The addon works as expected but I don't like the default sound(s) -- which are human voice announcements. Instead  I'd like it to produce simple audio signals such as a bong or ding, etc. The addon does not come with alternate sound options but the author mentions how to add them in the description on the download page which I'm including here:

——————————————————————————————
plays a sound when you perform a critical hit or healing.
includes your physical damage ,spell damage, ranged damage, healing and your damage shield.
CritSound includes three mode:
1.single mode: always plays the first sound in the list.
2.sequence mode: plays the sounds in the list one by one when you perform a critical hit continually.
3.random mode: plays the sounds in the list randomly.
Use /cs or /critsound to open the controlpanel.
if you use the sequence mode, you can modify the aging time for collecting your critical hits.
you can edit CritSound.lua to delete or add sounds.
for example, in the line 5 to 11:
spell = {
            "CriticalDamage.ogg",    --first time
            "Dominating.ogg",        --second time
            "Unstoppable.ogg",        --etc.
            "Wickedsick.ogg",
            "Godlike.ogg",
},
if you want to add xxx.ogg just add it below the last sound, but don't forget to add a comma after the new lines.
from WoD, you 'must' use ogg instead of mp3.
spell = {
            "CriticalDamage.ogg",    --first time
            "Dominating.ogg",        --second time
            "Unstoppable.ogg",        --etc.
            "Wickedsick.ogg",
            "Godlike.ogg",
xxx.ogg,
},
——————————————————————————————

"WoD" = Warlords of Draenor (WoW's most recent major expansion)

Also, the installed addon folder is located here:

    C:\Program Files (x86)\World of Warcraft\Interface\AddOns\CritSound

and it contains two files:
    CritSound.toc
    CritSound.loa

...neither of which I can open.

Can someone explain:
    • (briefly) .lua, .toc, & .ogg files.
    • How to convert .mp3 files to .ogg.
    • Specifically, the steps to add other sounds to this addon and how to designate when they occur.


Thanks
ASKER CERTIFIED SOLUTION
Avatar of ☠ MASQ ☠
☠ MASQ ☠

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial