@name NPC exterminator
@inputs 
@outputs  
@persist O:array C
@trigger all

interval(20)
findInSphere(vec(0,0,0),1000000)
findIncludeClass("npc")
O = findToArray()
if (first()) {C = 1}
Obj = O:entity(C)
if (O:count()>0) {Obj:remove()
}
C+=1
if (C>O:count()) {C=1}

