This commit is contained in:
Horyoshi
2025-10-09 17:42:03 +02:00
parent d162367c21
commit 1f85d99874
4 changed files with 150 additions and 38 deletions
+3 -25
View File
@@ -140,29 +140,7 @@ end
-- Turn loot sounds on/off
-- Initialize loot sounds setting (default: enabled)
if sepgp_sound == nil then
sepgp_sound = 1
end
-- Slash command handler function
local function HandleLootSoundCommand(msg)
local command
if msg then
command = string.lower(msg)
else
command = ""
end
if command == "on" then
sepgp_sound = 1
DEFAULT_CHAT_FRAME:AddMessage("Loot sounds |cFF00FF00enabled|r")
elseif command == "off" then
sepgp_sound = 0
DEFAULT_CHAT_FRAME:AddMessage("Loot sounds |cFFFF0000disabled|r (" .. UnitName("player") .. ", you're boring)")
end
end
-- Register the slash commands
SLASH_LOOTSOUND1 = "/lootsound"
SlashCmdList["LOOTSOUND"] = HandleLootSoundCommand
sepgp_sound = 1
end