I tried search, but could not get it to work.
I would like to get the bot to auto equip better gears looted during botting. But for BOE item, it cannot get around the binding confirmation.
I tried ConfirmBindOnUse(). I did not work. The lua function is like this:
Code:
Lua_DoString(string.Format(@"(function()
PickupContainerItem({0}, {1});
EquipCursorItem({2});
end)()", slotInBag.bagIndex, slotInBag.slotIndex + 1, getSlotID(slot)));
Thread.Sleep(100);
Lua_DoString(string.Format(@"(function()
ConfirmBindOnUse();
--PickupContainerItem({0}, {1});
end)()", slotInBag.bagIndex, slotInBag.slotIndex + 1, getSlotID(slot)));
where, the slotInBag is the better gear looted, getSlotID get the ID of the slot, like 1 for headerslot.
The code tries to equip the gear but failed due to the binding confirmation.
Any suggestions?
thanks,