1. Checking if player is in an area:
Area a = new Area(1, 2, 3, 4);
Player p = myPlayer();
if(a.contains(p)) { //'contains' in the API refers to all entities - a player is a character, which is a type of entity
//do x
}
2. Walking / pathing
getWalking().webWalk(area or position); //or use a webwalkevent if you want
webwalking figures out the pathing for you and deals with common obstacles. If you don't need to deal with obstacles, it will be less intensive to use getWalking().walk() or just a regular walkingevent. if you dont want to do either of those, use explv.github.io (website) to figure out pathing and use getWalking().walkPath(list of positions gathered from the site).