@@ -45,7 +45,7 @@ local DEFAULTS = {
4545 minimap = true , -- minimap button
4646 minimapAngle = 220 , -- its position around the minimap (degrees)
4747 sound = true , -- play a sound when a quest objective completes
48- soundChoice = " quest " , -- key in QUEST_SOUNDS
48+ soundChoice = " coins " , -- key in QUEST_SOUNDS
4949}
5050-- Saved layout: CSCoderQuestIndicatorDB = { version, language, profiles = { name = settings },
5151-- chars = { "Name - Realm" = profile name }, savedCVars }.
@@ -587,39 +587,16 @@ end
587587local objectiveTexts = {} -- { text = lower case objective, kind = quest kind }
588588local objectiveStates = {} -- questID -> { [objective index] = finished }, to hear one complete
589589
590- -- Sounds for "objective complete": sound kit IDs that every client has.
591- local QUEST_SOUNDS = { quest = 878 , ping = 3175 , ready = 8960 , warning = 8959 , levelup = 888 }
592- local QUEST_SOUND_ORDER = { " quest" , " ping" , " ready" , " warning" , " levelup" }
590+ -- Sounds for "objective complete" (sound kit IDs), picked by ear in game on 2026-11-09 from a
591+ -- longer list. The old choices (ping, ready, warning, level up) fall back to the default.
592+ local QUEST_SOUNDS = { coins = 120 , auction = 5274 , auctionclose = 1204 , worldquest = 44295 , bell = 6674 , quest = 878 }
593+ local QUEST_SOUND_ORDER = { " coins" , " auction" , " auctionclose" , " worldquest" , " bell" , " quest" }
593594
594595local function PlayQuestSound ()
595- local id = QUEST_SOUNDS [db .soundChoice ] or QUEST_SOUNDS . quest
596+ local id = QUEST_SOUNDS [db .soundChoice ] or QUEST_SOUNDS [ DEFAULTS . soundChoice ]
596597 if PlaySound then pcall (PlaySound , id , " Master" ) end
597598end
598599
599- -- TEMPORARY: /cqi sound plays candidate sounds one by one, to pick a better list for the menu
600- -- (some may not exist on this client and stay silent). Remove once the list is chosen.
601- local SoundAudition
602- do
603- local candidates = {
604- { 878 , " Quest complete" }, { 875 , " Quest log open" }, { 847 , " Quest failed" }, { 888 , " Level up" },
605- { 8960 , " Ready check" }, { 8959 , " Raid warning" }, { 3175 , " Map ping" }, { 3081 , " Whisper" },
606- { 12867 , " Alarm clock 2" }, { 12889 , " Alarm clock 3" }, { 416 , " Murloc" }, { 120 , " Coins" },
607- { 5274 , " Auction house open" }, { 8458 , " PvP queue" }, { 8459 , " PvP queue ready" }, { 880 , " Group invite" },
608- { 18019 , " Battle.net toast" }, { 31578 , " Epic loot toast" }, { 44295 , " World quest complete" },
609- { 23404 , " Dig site complete" }, { 12891 , " Achievement" }, { 3337 , " Mail" }, { 1204 , " Auction close" },
610- { 6674 , " Bell toll" },
611- }
612- local index = 0
613- function SoundAudition (arg )
614- index = tonumber (arg ) or (index % # candidates + 1 )
615- local c = candidates [index ]
616- if not c then return end
617- if PlaySound then pcall (PlaySound , c [1 ], " Master" ) end
618- print (string.format (" |cffffd200%s|r sound %d/%d: %s (%d). Type /cqi sound for the next one, or /cqi sound <number>." ,
619- TITLE , index , # candidates , c [2 ], c [1 ]))
620- end
621- end
622-
623600local function RebuildObjectiveTexts ()
624601 wipe (objectiveTexts )
625602 if not (C_QuestLog and C_QuestLog .GetQuestObjectives ) then return end
@@ -769,6 +746,7 @@ local function FillDefaults(profile)
769746 profile .cursor = nil -- removed option
770747 profile .style = OLD_STYLES [profile .style ] or profile .style
771748 if not VALID_STYLE [profile .style ] then profile .style = DEFAULT_STYLE end
749+ if not QUEST_SOUNDS [profile .soundChoice ] then profile .soundChoice = DEFAULTS .soundChoice end
772750 for _ , key in ipairs ({ " anchor" , " objectAnchor" }) do
773751 if not ICON_ANCHORS [profile [key ]] then profile [key ] = " top" end
774752 end
@@ -2434,8 +2412,6 @@ SlashCmdList.CSCODERQUESTINDICATOR = function(msg)
24342412 ApplySettings ()
24352413 RefreshControls ()
24362414 print (" |cffffd200" .. TITLE .. " |r " .. (db .active and L .ON or L .OFF ))
2437- elseif cmd == " sound" then
2438- SoundAudition ((msg or " " ):match (" ^%S+%s+(%d+)" ))
24392415 elseif cmd == " setup" then
24402416 ShowWizard ()
24412417 elseif cmd == " plate" then
0 commit comments