Add option to disable the warning-pop-ups about "looting this item will make it bind to you"
Opened this issue · 0 comments
dsidirop commented
Inspired from Leatrix_Plus.lua:
local function eventHandler(self, event, arg1, arg2, ...)
// ...
----------------------------------------------------------------------
-- Disable loot warnings
----------------------------------------------------------------------
-- Disable warnings for attempting to roll Need on loot
if event == "CONFIRM_LOOT_ROLL" then
ConfirmLootRoll(arg1, arg2)
StaticPopup_Hide("CONFIRM_LOOT_ROLL")
return
end
-- Disable warning for attempting to loot a Bind on Pickup item
if event == "LOOT_BIND_CONFIRM" then
ConfirmLootSlot(arg1, arg2) <--- this is not supported by WoW 1.12 have a look below
StaticPopup_Hide("LOOT_BIND", ...)
return
end
pfUI uses this for solo-looting:
-- auto accept BoP loot in solo mode
if C.loot.autopickup == "1" and GetNumPartyMembers() == 0 and GetNumRaidMembers() == 0 then
if event == "LOOT_BIND_CONFIRM" then
LootSlot(arg1)
StaticPopup1Button1:Click()
elseif event == "LOOT_OPENED" and pfUI.client <= 11200 then
for i=1,GetNumLootItems() do
LootSlot(i)
end
end
end