Originally Posted by
voron23
Try use LootSlot() or make macro for it
This would work too, hook the Lua_DoString functions and simply send:
Code:
'for i = 1, GetNumLootItems() do LootSlot(i);ConfirmLootSlot(i);end'
This should loot (and confirm the items that are BoP) after looting the corpse 
If you really wanted to be picky, you could also use this to only loot items by ID:
Code:
'for i = 1, GetNumLootItems() do if GetLootSlotLink(i) = 'Specific ID here!' then LootSlot(i);ConfirmLootSlot(i);end;end'
And again, here's if you wanted to make you loot only a specific item by name. This is used well for a user to define the item to loot:
Code:
'for i = 1, GetNumLootItems() do local ItemName = GetItemInfo(GetLootSlotLink(i)); if ItemName == 'Item Name here!' then LootSlot(i);ConfirmLootSlot(i);end;end'
Hope that helped!