What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

auto accept bind on pick up addon?

Yohaiw

Member
Joined
Aug 13, 2012
Messages
143
Reaction score
4
Or plug in? for legendary items farming/mounts etc

i looked but didnt find, any help fellas?
 
Don't know of any myself.
But you can just attach to a Lua event.

PHP:
	local frame = CreateFrame("Frame")
	frame:RegisterEvent("LOOT_BIND_CONFIRM")
	frame:SetScript("OnEvent", function(self, event, ...)
		ConfirmBindOnUse();
	end)

This can be ran in a profile with Misc\RunLua as well so it just runs with the profile.



Or, you can attach it with the HB-API.
This is a total hack because I don't know much at all about HB-API
PHP:
<CustomBehavior File="RunCode"><![CDATA[
	Lua.Events.AttachEvent("LOOT_BIND_CONFIRM", ConfirmBind);
]]>
</CustomBehavior>

<CustomBehavior File="RunCode" Type="Definition" ><![CDATA[
	public static void ConfirmBind(object sender = null, LuaEventArgs args = null)
	{
		Lua.DoString("ConfirmBindOnUse();");
	}
]]>
</CustomBehavior>
 
Last edited:
Back
Top