Meme Sound Update

This commit is contained in:
Cinecom
2025-08-15 20:06:54 +02:00
parent b8c71d9059
commit 51b2ad4ee0
27 changed files with 37 additions and 4 deletions
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+30
View File
@@ -81,3 +81,33 @@ ChatFrame_OnEvent = function(event)
-- Call original handler for all other messages
originalChatFrame_OnEvent(event)
end
if event == "ADDON_LOADED" then
-- default ON
if sepgp_sound == nil then sepgp_sound = true end
-- seed RNG once per session
math.randomseed(GetTime() * 1000)
math.random(); math.random(); math.random()
-- /epgp sound on|off
SLASH_EPGP1 = "/epgp"
SlashCmdList["EPGP"] = function(msg)
msg = (msg or ""):lower()
local cmd, arg = msg:match("^(%S+)%s*(.*)$")
if cmd == "sound" then
if arg == "on" then
sepgp_sound = true
DEFAULT_CHAT_FRAME:AddMessage("|cffffcc00EPGP: sound ON|r")
elseif arg == "off" then
sepgp_sound = false
DEFAULT_CHAT_FRAME:AddMessage("|cffffcc00EPGP: sound OFF|r")
else
DEFAULT_CHAT_FRAME:AddMessage("|cffffcc00Usage: /epgp sound on|off|r")
end
else
DEFAULT_CHAT_FRAME:AddMessage("|cffffcc00Usage: /epgp sound on|off|r")
end
end
end
+5 -2
View File
@@ -987,8 +987,11 @@ function sepgp:bidPrint(link, masterlooter, need, greed, bid)
-- Start with a string that has placeholders for all three
local msg = string.format(L["Click $MS or $PRIOOS or $OS for %s"], link)
local randomSound = math.random(1, 6)
PlaySoundFile("Interface\\AddOns\\shootyepgp\\Sounds\\loot-" .. randomSound .. ".wav")
math.randomseed(GetTime() * 1000)
if sepgp_sound then
local randomSound = math.random(1, 24)
PlaySoundFile("Interface\\AddOns\\shootyepgp\\Sounds\\loot-" .. randomSound .. ".wav")
end
-- Decide which placeholders to keep/remove based on need/greed/bid
if (need and greed) or bid then
+2 -2
View File
@@ -7,10 +7,10 @@
## X-Website: https://github.com/cinecom/shootyepgp/
## X-Category: Guild
## X-Credits: shooty, Qcat(zhCN)
## Version: 10.07 <ERROR>
## Version: 10.08 <ERROR>
## X-Alpha:
## OptionalDeps: Ace2
## SavedVariables: sepgp_saychannel, sepgp_groupbyclass, sepgp_groupbyarmor, sepgp_groupbyrole, sepgp_raidonly, sepgp_dbver, sepgp_debug, sepgp_fubar
## SavedVariables: sepgp_saychannel, sepgp_groupbyclass, sepgp_groupbyarmor, sepgp_groupbyrole, sepgp_raidonly, sepgp_dbver, sepgp_debug, sepgp_fubar, sepgp_sound
## SavedVariablesPerCharacter: sepgp_main, sepgp_log, sepgp_looted, sepgp_decay, sepgp_minep, sepgp_reservechannel, sepgp_progress, sepgp_discount, sepgp_altspool, sepgp_altpercent
Libs\AceLibrary\AceLibrary.lua