>
<>
function LootAnnounce()
local chattype
if (GetNumRaidMembers() >= 4) then
chattype = "RAID"
elseif (GetNumPartyMembers() >= 1) then
chattype = "PARTY"
end
for index =1, GetNumLootItems(), 1 do
if (LootSlotIsItem(index)) then
local iteminfo = GetLootSlotLink(index);
SendChatMessage(iteminfo, chattype);
elseif (LootSlotIsCoin(index)) then
local _,lootName, _,_ = GetLootSlotInfo(index);
SendChatMessage(string.gsub(lootName, "\n", " "), chattype);
end
end
end
<>
## Interface: 11000
## Author: |cff00a800Zeryl|r
## Title: LootAnnounce
## Dependencies:
LootAnnounce.xml