Originally Posted by wille480
Ah okey thank you! , i always imagine doing a foor loop like.
For i=0, 2 do
local name, _, _, _, _, duration, expires = UnitDebuff("raid1",debuffs[i])
|
for i=1, 2 do
...
end
lua is 1 based but that would have worked also as the keys will be created when you add items to the table. If you print the key in the pairs loop it will print 1, 2 etc.