View Single Post
05-26-22, 09:43 AM   #5
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,878
Kanegasi mentioned that PutItemInBag requires a bag id. (InventorySlotId) not a bag number and these start at 20 (bag 1+19 = 20).

Using the table keeps track of where you put the last item instead of using the event method. Checking GetContainerItemID in a tight loop can return nil for a slot that has only just been filled in the previous loop(s) until the system catches up and sends the event which could cause a "Bag is full" message.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 05-26-22 at 10:44 AM.
  Reply With Quote