diff --git a/Sounds/loot-1.wav b/Sounds/loot-01.wav similarity index 100% rename from Sounds/loot-1.wav rename to Sounds/loot-01.wav diff --git a/Sounds/loot-2.wav b/Sounds/loot-02.wav similarity index 100% rename from Sounds/loot-2.wav rename to Sounds/loot-02.wav diff --git a/Sounds/loot-3.wav b/Sounds/loot-03.wav similarity index 100% rename from Sounds/loot-3.wav rename to Sounds/loot-03.wav diff --git a/Sounds/loot-4.wav b/Sounds/loot-04.wav similarity index 100% rename from Sounds/loot-4.wav rename to Sounds/loot-04.wav diff --git a/Sounds/loot-5.wav b/Sounds/loot-05.wav similarity index 100% rename from Sounds/loot-5.wav rename to Sounds/loot-05.wav diff --git a/Sounds/loot-6.wav b/Sounds/loot-06.wav similarity index 100% rename from Sounds/loot-6.wav rename to Sounds/loot-06.wav diff --git a/Sounds/loot-7.wav b/Sounds/loot-07.wav similarity index 100% rename from Sounds/loot-7.wav rename to Sounds/loot-07.wav diff --git a/Sounds/loot-8.wav b/Sounds/loot-08.wav similarity index 100% rename from Sounds/loot-8.wav rename to Sounds/loot-08.wav diff --git a/Sounds/loot-9.wav b/Sounds/loot-09.wav similarity index 100% rename from Sounds/loot-9.wav rename to Sounds/loot-09.wav diff --git a/Sounds/loot-26.wav b/Sounds/loot-26.wav new file mode 100644 index 0000000..54c7099 Binary files /dev/null and b/Sounds/loot-26.wav differ diff --git a/Sounds/loot-27.wav b/Sounds/loot-27.wav new file mode 100644 index 0000000..3e5161c Binary files /dev/null and b/Sounds/loot-27.wav differ diff --git a/Sounds/loot-28.wav b/Sounds/loot-28.wav new file mode 100644 index 0000000..3f458ec Binary files /dev/null and b/Sounds/loot-28.wav differ diff --git a/extra_features.lua b/extra_features.lua index f22b6f5..0d7710e 100644 --- a/extra_features.lua +++ b/extra_features.lua @@ -1,60 +1,4 @@ --- SYSMSG -local function GetGuildRankForPlayer(name) - if not IsInGuild() then return nil end - - GuildRoster() -- Update guild data - local numMembers = GetNumGuildMembers(true) - - for i = 1, numMembers do - local memberName, rank = GetGuildRosterInfo(i) - local shortName = memberName - local dashPos = string.find(memberName or "", "-") - if dashPos then - shortName = string.sub(memberName, 1, dashPos - 1) - end - - if shortName == name then - return rank - end - end - return nil -end - - -local frame = CreateFrame("Frame", "FakeSysFrame") -frame:RegisterEvent("CHAT_MSG_ADDON") - - -frame:SetScript("OnEvent", function() - if event == "CHAT_MSG_ADDON" then - if arg1 == "FakeSys" then - -- Display the fake system message - DEFAULT_CHAT_FRAME:AddMessage(arg2, 1.0, 1.0, 0.0) - end - end -end) - --- Slash command handler -local function FakeSysHandler(msg) - -- Check if player is an officer - local playerName = UnitName("player") - local rank = GetGuildRankForPlayer(playerName) - - if not rank or (rank ~= "Officer") then - return - end - - if msg and msg ~= "" then - SendAddonMessage("FakeSys", msg, "GUILD") - end -end - --- Register the slash command -SLASH_FAKESYS1 = "/fakesys" -SlashCmdList["FAKESYS"] = FakeSysHandler - - -- PARSE ID SLASH_PARSEID1 = "/parseid" diff --git a/shootyepgp.toc b/shootyepgp.toc index cc8086f..25ebff7 100644 --- a/shootyepgp.toc +++ b/shootyepgp.toc @@ -7,7 +7,7 @@ ## X-Website: https://github.com/cinecom/shootyepgp/ ## X-Category: Guild ## X-Credits: shooty, Qcat(zhCN) -## Version: 10.11 +## Version: 10.12 ## X-Alpha: ## OptionalDeps: Ace2 ## SavedVariables: sepgp_saychannel, sepgp_groupbyclass, sepgp_groupbyarmor, sepgp_groupbyrole, sepgp_raidonly, sepgp_dbver, sepgp_debug, sepgp_fubar, sepgp_sound