Examples of RestartPoint


Examples of lineage2.gameserver.templates.mapregion.RestartPoint

        }
        if (PKrestartPoints.isEmpty())
        {
          PKrestartPoints = restartPoints;
        }
        RestartPoint rp = new RestartPoint(name, bbs, msgId, restartPoints, PKrestartPoints);
        restartPoint.put(name, rp);
      }
    }
    for (Pair<Territory, Map<Race, String>> ra : restartArea)
    {
      Map<Race, RestartPoint> restarts = new HashMap<>();
      for (Map.Entry<Race, String> e : ra.getValue().entrySet())
      {
        RestartPoint rp = restartPoint.get(e.getValue());
        if (rp == null)
        {
          throw new RuntimeException("RestartPointParser: restart_loc not found : " + e.getValue() + "!");
        }
        restarts.put(e.getKey(), rp);
View Full Code Here

Examples of lineage2.gameserver.templates.mapregion.RestartPoint

    }
   
    RestartArea ra = MapRegionManager.getInstance().getRegionData(RestartArea.class, player);
    if (ra != null)
    {
      RestartPoint rp = ra.getRestartPoint().get(player.getRace());
      return rp.getBbs();
    }
   
    return 0;
  }
View Full Code Here

Examples of lineage2.gameserver.templates.mapregion.RestartPoint

      }
    }
    RestartArea ra = MapRegionManager.getInstance().getRegionData(RestartArea.class, from);
    if (ra != null)
    {
      RestartPoint rp = ra.getRestartPoint().get(player.getRace());
      Location restartPoint = Rnd.get(rp.getRestartPoints());
      Location PKrestartPoint = Rnd.get(rp.getPKrestartPoints());
      return player.isChaotic() ? PKrestartPoint : restartPoint;
    }
    _log.warn("Cannot find restart location from coordinates: " + from + "!");
    return DEFAULT_RESTART;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.