Hey there,
I just tried to remove this annoying enlightened sound that plays at the startup of the game, if you login.
I can remove it for later calls if you do not logout again.
But the initial playing of the sound cannot be removed as it seems that the call will be done in local functions inside file ingame\centerannounce\centerannouncehandlers.lua:
Lua Code:
local function GetEnlightenedGainedAnnouncement()
local barParams = GetCurrentVeteranPointsBarParams()
return CSA_EVENT_COMBINED_TEXT, SOUNDS.ENLIGHTENED_STATE_GAINED, GetString(SI_ENLIGHTENED_STATE_GAINED_HEADER), GetString(SI_ENLIGHTENED_STATE_GAINED_DESCRIPTION), nil, nil, nil, barParams
end
CSH[EVENT_ENLIGHTENED_STATE_GAINED] = function()
if IsEnlightenedAvailableForCharacter() then
return GetEnlightenedGainedAnnouncement()
end
end
local firstActivation = true
CSH[EVENT_PLAYER_ACTIVATED] = function()
if firstActivation then
firstActivation = false
if IsEnlightenedAvailableForCharacter() and GetEnlightenedPool() > 0 then
return GetEnlightenedGainedAnnouncement()
end
end
end
Look at the "CSH[EVENT_PLAYER_ACTIVATED] = function()":
At the "first" player activated (which will be the one without any addons I guess, or the very firsta ddon that loads?) the sound will be played by using the local function GetEnlightenedGainedAnnouncement() :-(
As far as I know I cannot priorize my addon to be the first somehow so I can prevent this EVENT_PLAYER_ACTIVATED from being executed?
Any other ideas how to get there to stop this annoying sound from playing? It is really loud even if I turn down the game's sound. All other SFX is ok but this one sux!
And as explained above my addon's player activated or addon loaded will always be AFTER this local call to the sound palying announcement...
Thanks for any good news and help.