Package l2p.util

Examples of l2p.util.Location


      party.getPartyLeader().sendMessage("rooms are not free you has been registred try to use teleport function later");
      return;
    }
    for(L2Player member : party.getPartyMembers())
    {
      member.teleToLocation(new Location(teleloc[0], teleloc[1], teleloc[2]));
    }
    if(!isWaitingRoom2Free)
    {
      startBattle(getPartyInRoom1(), getPartyInRoom2());
    }
View Full Code Here


        for(L2Player member : party.getPartyMembers())
        {
          member.setTeam(1, true);
          //locOnBattleGroundToTelePlayers
          locOnBGToTP = _zone.getSpawns().get(3);
          member.teleToLocation(new Location(locOnBGToTP[0], locOnBGToTP[1], locOnBGToTP[2]));
        }
      }
      if(party2 != null)
      {
        for(L2Player member : party2.getPartyMembers())
        {
          member.setTeam(2, true);
          locOnBGToTP = _zone.getSpawns().get(4);
          member.teleToLocation(new Location(locOnBGToTP[0], locOnBGToTP[1], locOnBGToTP[2]));
        }
      }
    }
  }
View Full Code Here

            String var = p.getVar("backCoords");
            if(var == null || var.equals(""))
            {
              continue;
            }
            p.teleToLocation(new Location(var), 0);
            p.unsetVar("backCoords");
          }
        }
        DelusionChamber.this.collapse();
      }
View Full Code Here

      party.setDimensionalRift(this);
    }
    party.setReflection(this);
    _choosenRoom = room;
    checkBossRoom(_choosenRoom);
    Location coords = getRoomCoord(_choosenRoom);
    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

  {
    // При ошибке портанет во флоран
    if(_restartPoints == null)
    {
      _log.warning("L2Zone.getSpawn(): restartPoint not found for " + toString());
      return new Location(17817, 170079, -3530);
    }
    GArray<int[]> coords = _restartPoints.getCoords();
    int[] coord = coords.get(Rnd.get(coords.size()));
    return new Location(coord);
  }
View Full Code Here

      return getSpawn();
    }
    GArray<int[]> coords = _PKrestartPoints.getCoords();
    int rnd = Rnd.get(coords.size());
    int[] coord = coords.get(rnd);
    return new Location(coord);
  }
View Full Code Here

    if(temp != null)
    {
      fisher.sendPacket(Msg.YOU_HAVE_CAUGHT_A_MONSTER);
      try
      {
        Location def = fisher.getFishLoc();
        if(!GeoEngine.canMoveWithCollision(fisher.getX(), fisher.getY(), fisher.getZ(), def.x, def.y, def.z, fisher.getReflection().getGeoIndex()))
        {
          def = fisher.getLoc();
        }
        L2PenaltyMonsterInstance npc = new L2PenaltyMonsterInstance(IdFactory.getInstance().getNextId(), temp);
View Full Code Here

      for(int flagCastleId : castle.getFlags())
      {
        if(onlyOne == -1 || flagCastleId == onlyOne)
        {
          SiegeSpawn info = TerritorySiegeDatabase.getSiegeFlags().get(flagCastleId).get(0);
          Location loc = points.get(i).getLoc();
          L2TerritoryFlagInstance flag = new L2TerritoryFlagInstance(IdFactory.getInstance().getNextId(), NpcTable.getTemplate(info.getNpcId()));
          flag.setCurrentHpMp(flag.getMaxHp(), flag.getMaxMp(), true);
          flag.setXYZInvisible(loc.correctGeoZ());
          flag.setSpawnedLoc(flag.getLoc());
          flag.setHeading(loc.h);
          flag.setItemId(info.getValue());
          flag.setBaseTerritoryId(flagCastleId);
          flag.setCurrentTerritoryId(castle.getId());
View Full Code Here

  @Override
  public void setXYZ(int x, int y, int z)
  {
    super.setXYZ(x, y, z);
    updatePeopleInTheBoat(new Location(x, y, z));
    if(isClanAirShip() && !isDocked() && isArrived())
    {
      ((L2AirShip) this).tryToLand();
    }
  }
View Full Code Here

  @Override
  public void setXYZ(int x, int y, int z, boolean MoveTask)
  {
    super.setXYZ(x, y, z, MoveTask);
    updatePeopleInTheBoat(new Location(x, y, z));
    if(isClanAirShip() && !isDocked() && isArrived())
    {
      ((L2AirShip) this).tryToLand();
    }
  }
View Full Code Here

TOP

Related Classes of l2p.util.Location

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.