@ FR users
Unfortunatly, it will not work for french wow client because the name returned by GetItemInfo is not the correct one for the InteractUnit call...
So create your own ability with the code:
Code:
local egg = GetItemInfo(45072)
local gotloot = GetNumLootItems()
-- Auto open eggs
if GetItemCount(45072) > 0 then UseItemByName(egg) end
-- Auto pick closer eggs
if GetUnitSpeed("player") == 0 and not UnitCastingInfo("player") and gotloot == 0
then InteractUnit("Œuf vivement coloré") end
-- Auto loot
if gotloot > 0 then for i = 1,gotloot do LootSlot(i) end end
And then create a rotation with this new ability.
Hope that helps and +rep Sheuron for the idea