Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Modified Versions

Modified Versions Your modified version of ShestakUI.

Advertising

 
Thread Tools
Old 30.05.2013, 20:17   #1
 Elder Member User Information

Lanseb's Avatar
Post Whisper sound hotfix for oQueue

Hello,

Could these modifications please be made to Modules/Chat/Sounds.lua:
Quote:
SoundSys:HookScript("OnEvent", function(self, event, msg, ...)
if event == "CHAT_MSG_WHISPER" or event == "CHAT_MSG_BN_WHISPER" then
--[[ oqueue update ]]--
if (msg:sub(1,3) == "OQ,") then return false, msg, ... ; end
--[[ oqueue update ]]--
PlaySoundFile(C.media.whisp_sound, "Master")
end
end)
It mutes only the whisper sound from background whispers generated by the oQueue addon. I would really appreciate the implementation of this code since it would save me from having to update the file manually every time.

Thanks so much!
<3
Say Thank:
Shestak (24.11.2013)
Old 30.05.2013, 20:17   #1.5 - Disable Ads

Advertise on this site

Old 31.05.2013, 09:10   #2
Wetxius
 Assistant User Information

Wetxius's Avatar
Implemented
Say Thank:
Shestak (03.06.2013)
Old 12.06.2013, 10:57   #3
tiny
 Junior Member User Information

tiny's Avatar
Code [Select]:
 SoundSys:RegisterEvent("CHAT_MSG_BN_WHISPER")
 SoundSys:HookScript("OnEvent", function(self, event, ...)
   if event == "CHAT_MSG_WHISPER" or event == "CHAT_MSG_BN_WHISPER" then
    if (msg:sub(1,3) == "OQ,") then return false, msg, ... end
     PlaySoundFile(C.media.whisp_sound, "Master")
   end
 end)
i believe 'msg' would be undefined in this function, or at least ill defined (it could hold a previous value)

this would prolly work better:
Code [Select]:
 SoundSys:RegisterEvent("CHAT_MSG_BN_WHISPER")
 SoundSys:HookScript("OnEvent", function(self, event, msg, ...)
   if event == "CHAT_MSG_WHISPER" or event == "CHAT_MSG_BN_WHISPER" then
    if (msg:sub(1,3) == "OQ,") then return false, msg, ... end
     PlaySoundFile(C.media.whisp_sound, "Master")
   end
 end)
hope that helps,
tiny
Says Thank:
Shestak (24.11.2013), Wetxius (12.06.2013)
Old 12.06.2013, 11:12   #4
Wetxius
 Assistant User Information

Wetxius's Avatar
Fixed
Say Thank:
Shestak (12.06.2013)

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Fixed] Chat whisper opens Armory window anj Bugs Reports 1 03.04.2011 14:31


Mobile Style Русский English Deutsch Italian Chinese