Make masterlooter loot related messages go to the highest available channel (RW > raid).

Add a '/shooty' chat command for opening the standings for members that have hidden minimap icons.
This commit is contained in:
Road-block
2017-10-15 00:28:23 +03:00
parent 099f7d4561
commit 95560748b8
3 changed files with 18 additions and 11 deletions
+10 -7
View File
@@ -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
+7 -3
View File
@@ -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
+1 -1
View File
@@ -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