Package com.l2jfrozen.gameserver.model

Examples of com.l2jfrozen.gameserver.model.L2NpcWalkerNode


     
      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;
      }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.model.L2NpcWalkerNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.