Package l2p.util

Examples of l2p.util.Location.rnd()


  private static void entry(int npcId, L2Player player)
  {
    Location loc = FourSepulchersSpawn._startHallSpawns.get(npcId);
    for(L2Player mem : player.getParty().getPartyMembers())
    {
      mem.teleToLocation(loc.rnd(0, 80, false));
      Functions.removeItem(mem, ENTRANCE_PASS, 1);
      if(mem.getInventory().getItemByItemId(ANTIQUE_BROOCH) == null)
      {
        Functions.addItem(mem, USED_PASS, 1);
      }
View Full Code Here


    setReturnLoc(party.getPartyLeader().getLoc());
    setTeleportLoc(coords);
    for(L2Player p : party.getPartyMembers())
    {
      p.setVar("backCoords", getReturnLoc().toXYZString());
      DimensionalRiftManager.teleToLocation(p, coords.rnd(50, 100, false), this);
      p.setReflection(this);
    }
    createSpawnTimer(_choosenRoom);
    createTeleporterTimer();
  }
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.