Hey,
so I implemented a banking feature in my addon. But it's not really reliable since sometimes there are 1 or 2 items that appear to be stuck.
I added a 200ms delay between Item move requests. Is that too little or is my basic thought wrong?
This is my function to move items which Im calling in a loop.
Code:
function MoveItem(sourceBag, sourceSlot, destBag)
if not DoesBagHaveSpaceFor(destBag, sourceBag, sourceSlot) then
return false
end
local destSlot = FindFirstEmptySlotInBag(destBag)
if not destSlot then
return false
end
CallSecureProtected("RequestMoveItem", sourceBag, sourceSlot, destBag, destSlot, 1)
return true
end
Thanks for any help in advance