Jump to content

Recommended Posts

Hey,

I just noticed that the bot wont loot items that are BOP. 
I set my bot to grind for Sharptalon's Claw in a quester profile. Once he gets that item he should start the quest.
The thing is, the bot wont loot this item, cause when it does you get this confirmation box saying something like: "Looting xxxx will bind it to you   OK    CANCEL"
The bot does not automatically say "OK"  here.

Is there a way to fix this?

Link to post
Share on other sites

Made an addon myself to get this to work:
 

<NAMEOFADDON>.OnLoad= function ()
  	this:RegisterEvent("LOOT_OPENED");
	this:RegisterEvent("LOOT_BIND_CONFIRM"); 
end;

<NAMEOFADDON>.OnEvent = function () 
	if (event == "LOOT_BIND_CONFIRM") then
    		LootSlot(arg1) 
    		StaticPopup_OnClick(StaticPopup1, 1)      
	end  
	if (event == "LOOT_OPENED") then
		for i=1,GetNumLootItems() do                 
			LootSlot(i)          
		end
	end
end

 

Link to post
Share on other sites
  • 2 weeks later...
  • 3 years later...

if you run this once while ingame, it will only trigger once LOOT_BIND_CONFIRM is started.

local f = CreateFrame("Frame")
f:RegisterEvent("LOOT_BIND_CONFIRM")
f:SetScript("OnEvent", function(self, event, ...)
    StaticPopup1Button1:Click();
end)

 

Link to post
Share on other sites
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...