View Single Post
10-30-14, 09:54 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
You may want to reverse the order of looting to start with the last slot; otherwise you run the risk of the indices shifting as items move up to fill the slots already looted, and items getting skipped.

Code:
            for i = GetNumLootItems(), 1, -1 do
                LootSlot(i)
            end
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote