diff --git a/bids.lua b/bids.lua index 28e9b70..b5b67e0 100644 --- a/bids.lua +++ b/bids.lua @@ -70,22 +70,25 @@ function sepgp_bids:Toggle(forceShow) end function sepgp_bids:announceWinnerMS(name, pr) - if GetNumRaidMembers()>0 then - SendChatMessage(string.format("Winning Mainspec Bid: %s (%.03f PR)",name,pr),"RAID") - end + --if GetNumRaidMembers()>0 then + sepgp:widestAudience(string.format("Winning Mainspec Bid: %s (%.03f PR)",name,pr)) + --SendChatMessage(string.format("Winning Mainspec Bid: %s (%.03f PR)",name,pr),"RAID") + --end end function sepgp_bids:announceWinnerOS(name, pr) - if GetNumRaidMembers()>0 then - SendChatMessage(string.format("Winning Offspec Bid: %s (%.03f PR)",name,pr),"RAID") - end + --if GetNumRaidMembers()>0 then + sepgp:widestAudience(string.format("Winning Offspec Bid: %s (%.03f PR)",name,pr)) + --SendChatMessage(string.format("Winning Offspec Bid: %s (%.03f PR)",name,pr),"RAID") + --end end function sepgp_bids:countdownCounter() self._counter = (self._counter or 6) - 1 if GetNumRaidMembers()>0 and self._counter > 0 then self._counterText = C:Yellow(tostring(self._counter)) - SendChatMessage(tostring(self._counter),"RAID") + sepgp:widestAudience(tostring(self._counter)) + --SendChatMessage(tostring(self._counter),"RAID") self:Refresh() end end diff --git a/shootyepgp.lua b/shootyepgp.lua index 8589d46..9f731a3 100644 --- a/shootyepgp.lua +++ b/shootyepgp.lua @@ -98,6 +98,7 @@ function sepgp:AceEvent_FullyInitialized() -- SYNTHETIC EVENT, later than PLAYER for i=1,4 do table.insert(UISpecialFrames,string.format("Tablet20DetachedFrame%d",i)) end + sepgp:RegisterChatCommand({"/shooty","/sepgp","/shootyepgp"},function() sepgp_standings:Toggle() end) end function sepgp:OnEnable() -- PLAYER_LOGIN (2) @@ -309,11 +310,14 @@ function sepgp:LootFrameItem_OnClick(button,data) local itemLink = GetLootSlotLink(slot) if (itemLink) then if button == "LeftButton" then - SendChatMessage(string.format("Whisper + for %s (mainspec)",itemLink),"RAID") + self:widestAudience(string.format("Whisper + for %s (mainspec)",itemLink)) + --SendChatMessage(string.format("Whisper + for %s (mainspec)",itemLink),"RAID") elseif button == "RightButton" then - SendChatMessage(string.format("Whisper - for %s (offspec)",itemLink),"RAID") + self:widestAudience(string.format("Whisper - for %s (offspec)",itemLink)) + --SendChatMessage(string.format("Whisper - for %s (offspec)",itemLink),"RAID") elseif button == "MiddleButton" then - SendChatMessage(string.format("Whisper + or - for %s",itemLink),"RAID") + self:widestAudience(string.format("Whisper + or - for %s",itemLink)) + --SendChatMessage(string.format("Whisper + or - for %s",itemLink),"RAID") end end end diff --git a/shootyepgp.toc b/shootyepgp.toc index a84d969..e22e4a3 100644 --- a/shootyepgp.toc +++ b/shootyepgp.toc @@ -3,7 +3,7 @@ ## Notes: Effort Points/Gear Points Loot System ## Author: Roadblock ## X-Credits: shooty for original version -## Version: 3.14 +## Version: 3.15 ## OptionalDeps: Ace2 ## SavedVariables: sepgp_saychannel,sepgp_groupbyclass,sepgp_raidonly,sepgp_decay,sepgp_reservechannel,sepgp_main,sepgp_progress,sepgp_discount ## SavedVariablesPerCharacter: sepgp_log, sepgp_dbver