Thread Tools Display Modes
Prev Previous Post   Next Post Next
08/28/21, 08:25 AM   #1
ownedbynico
AddOn Author - Click to view addons
Join Date: Nov 2019
Posts: 9
Moving items and unequipping gear not reliable

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
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Moving items and unequipping gear not reliable


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off