NPC Code:
if (playerx |x1,x2| && playery |y1,y2| ) {
setplayerprop #c,;
}
.... i think?
that would make a 10 square tile box with corners x1,y1 and x2,y2... i'm sure somebody in here will correct my syntax errors, i've never used "in"... the principle is the same though.