Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to disable the warning-pop-ups about "looting this item will make it bind to you" #29

Open
dsidirop opened this issue Jan 7, 2024 · 0 comments · May be fixed by #35
Open

Comments

@dsidirop
Copy link
Owner

dsidirop commented Jan 7, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant