Hi, semlar
Yes, the idea is to detect when any high level (raid) boss-like loot has been found, being in raid and in master looter mode.
Since i've posted the original post, i've made a little more investigation and found that BAG_OPEN event refers to lootable objects being opened. So, i have replicated the code under LOOT_OPENED event to see if it can help me:
Code:
elseif (event == "BAG_OPEN") then
local bagId = (...)
local raidID = UnitInRaid("player")
local masterID = select(3, GetLootMethod())
if (raidID and masterID and raidID == masterID) then
if (bagId == 248513) then -- Cofre de vínculo vil, Krossus
RILoot_ManageOpen("inRaid")
end
end
I knew about GetLootSourceInfo() but I thought that it was deprecated, I dont know why.
Pittyfully, loot funtions are hard to test since its conditions are hardly repeatable, i have to wait to be in raid, be masterlooter and kill a boss whose loot come from an object. I will try both methods next week, when we kill Krosus again.
Thank you very much!!