Why only the first 3 lines?
Is it a channel that you're already in? If so, you can just use $nick(#,%i) to iterate though them.
RAW 353:*: { } will fire for each line of names listings
RAW 366:*: { } will fire for End of /Names List.
Use /debug -p @debug