Hey guys! How are you doing? I've been playing warmane, so i've been digging up some old lua scripts from 2009-2012 (some of them still work wonders with Lium unlocker)
But since they're so old, it's very hard to documente about them and understand some of the code. So i hoped maybe some of you could help?
Here's an exemple
for i=1,40 do _,_,_,_,_,_,_,_,_,_,id=UnitDebuff("Target",i) if id==96294 then DO WHATEVER HERE end end
What does "i" do exactly? i've been seeing it everywhere and i don't understand the 1,40...
Here's another one
/run i=1 while(i<=40)do a={UnitDebuff("target",i)} if(a[1]=="Rip" and a[8]=="player") then break elseif(i==40) and p>4 then RunMacroText("/cast Rip") i=i+1 else i=i+1 end end
it's no longer 1,40 now it's i=1 while(i<=40), and there's i=i+1? what does that do? can someone walk me through this?