From c7ead640dd2e9b8cd12eec1f1fe80ec5c8af4ec6 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Wed, 27 Jan 2016 14:04:52 +0100 Subject: [PATCH] sound changes --- npcscan.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/npcscan.lua b/npcscan.lua index 0d43a43..e65b725 100644 --- a/npcscan.lua +++ b/npcscan.lua @@ -22,8 +22,11 @@ do function npcscan.play_sound() if not last_played or GetTime() - last_played > 10 then -- 8 - PlaySoundFile('Interface\\AddOns\\npcscan\\Event_wardrum_ogre.ogg', 'Master') - PlaySoundFile('Interface\\AddOns\\npcscan\\scourge_horn.ogg', 'Master') + local orig = GetCVar('MasterSoundEffects') + SetCVar('MasterSoundEffects', 0) + SetCVar('MasterSoundEffects', 1) + PlaySoundFile([[Interface\AddOns\npcscan\Event_wardrum_ogre.ogg]], 'Master') + PlaySoundFile([[Interface\AddOns\npcscan\scourge_horn.ogg]], 'Master') last_played = GetTime() end end @@ -259,7 +262,7 @@ end function npcscan.log(msg) if DEFAULT_CHAT_FRAME then - DEFAULT_CHAT_FRAME:AddMessage('[npcscan]: '..msg, 1, 1, 0) + DEFAULT_CHAT_FRAME:AddMessage('[npcscan] '..msg, 1, 1, 0) end end