if I may add, whenever you loot an item that doesn't exist in your inventory the numTotal is 0. to fix this issue I suggest an edit to the following lines


local numItems = GetItemCount(itemLink)...