Level up sound on reputation rank up.
Currently trying to figure out how to add sound to reputation rank up. I can't seem to find a RegisterEvent thats related to reputation rank ups, similar to PLAYER_LEVEL_UP. I think in wow when you rank up reputation there is some sound file that plays, and an green level up animation that happens on your character. I am trying to change the sound that plays when this event takes place.
|
The animation you're referring to is in C code as it's actually rendered in-world and not by the UI system. The same applies to the sound played. Sound file replacements should still work, but I don't know what the path is for that specific sound.
|
I found this.
Code:
568016 sound/spells/reputationlevelup.ogg Code:
MuteSoundFile(568016) |
Here's an example I came up with. It's based off how ReputationFrame updates and keeps track of rep by ID to avoid name collisions.
Lua Code:
|
Holy addon spam :o
Would it be an idea to have a single "Better Level Up" addon where the player can select (and switch if they get bored of it) one of the many options? |
Quote:
I won't repeat exactly what my first words were when I saw the NEW addon list, but they were "adult language" :p |
Quote:
The end goal is in-fact a single addon with the option to choose which sound plays when you level up, and which sound plays when you rank up reputation, and maybe eventually a sound for ranking up in pvp. I'd also like to add the option to turn on and off the default sounds for level/rep rank up. -- I'm currently learning how to setup api keys and attaching git to addon distribution sites for auto packaging. -- I'm also trying to figure out how to set up the options menu and am struggling with drop down menus. |
Quote:
|
Lua Code:
Lua Code:
|
Quote:
Looks like the issue was with the hasrep flag. I assumed it was for all factions that show a reputation bar, but it only applies to headers. This adjusts accordingly. Replace this Code:
local _,_,newstanding,_,_,_,_,_,_,_,hasrep,_,_,faction=GetFactionInfo(i); Code:
local _,_,newstanding,_,_,_,_,_,isheader,_,hasrep,_,_,faction=GetFactionInfo(i); Also be sure to change PlaySoundFile("Interface\\AddOns\\YourAddOn\\YourSoundFile.ogg") to the path to the sound file you wish to play. This is relative to the client's install directory. Note YourAddOn and YourSoundFile.ogg are the parts to change accordingly. |
All times are GMT -6. The time now is 04:16 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI