Meme Sound Update
This commit is contained in:
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.
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.
Binary file not shown.
Binary file not shown.
@@ -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
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user