reader = new FileReader(fileData);
buff = new BufferedReader(reader);
lnr = new LineNumberReader(buff);
L2NpcWalkerNode route;
String line = null;
//format:
// route_id;npc_id;move_point;chatText;move_x;move_y;move_z;delay;running
while((line = lnr.readLine()) != null)
{
//ignore comments
if(line.trim().length() == 0 || line.startsWith("#"))
{
continue;
}
route = new L2NpcWalkerNode();
StringTokenizer st = new StringTokenizer(line, ";");
int route_id = Integer.parseInt(st.nextToken());
int npc_id = Integer.parseInt(st.nextToken());
String move_point = st.nextToken();
String chatText = st.nextToken();
int move_x = Integer.parseInt(st.nextToken());
int move_y = Integer.parseInt(st.nextToken());
int move_z = Integer.parseInt(st.nextToken());
int delay = Integer.parseInt(st.nextToken());
boolean running = Boolean.parseBoolean(st.nextToken());
route.setRouteId(route_id);
route.setNpcId(npc_id);
route.setMovePoint(move_point);
route.setChatText(chatText);
route.setMoveX(move_x);
route.setMoveY(move_y);
route.setMoveZ(move_z);
route.setDelay(delay);
route.setRunning(running);
_routes.add(route);
route = null;
}