I tested that in this
Code:
on *:text:!search *:#: {
  $iif(%flood_checking,return,set -u10 %flood_checking 1)
  filter -ffc[color:green] FILE.TXT[/color] tmp $replace($+(*,$2-,*),$chr(32),$chr(42)) 
  if ($filtered) .play -m1q3 $nick tmp $calc($lines(tmp) * 80)
}


worked fine (replacing FILE.TXT with an actual file)