A suggestion would be to use a regex text event:
on $*:text:/^[!@]*/Si:#:{
and then put it all in 1 text event, $2 == findip etc etc.