Assuming you have already made the variables (%lines.nick & %place.nick), you can just use...

Code:
on 1:TEXT:!rank*:#: {
  /msg $chan The nick $$2 is in the %place. [ $+ [ $$2 ] ] place with %lines. [ $+ [ $$2 ] ] $+ !
}


-KingTomato