Package lineage2.gameserver.utils

Examples of lineage2.gameserver.utils.Location


    {
      manageCastleController(1);
      for(Player player : getPlayers())
        player.sendPacket(new ExShowScreenMessage(NpcString.FREYA_HAS_STARTED_TO_MOVE, 4000, ScreenMessageAlign.MIDDLE_CENTER, true));
      //Spawning Freya Throne
      NpcInstance freyaTrhone = addSpawnWithoutRespawn(FreyaThrone, new Location(114720, -117085, -11088, 15956), 0);
      freyaTrhone.addListener(_deathListener);
      firstStageGuardSpawn = ThreadPoolManager.getInstance().scheduleAtFixedRate(new GuardSpawnTask(4), 2000L, 50000L);
    }
View Full Code Here


  protected void onEvtAttacked(Creature attacker, int damage)
  {
    final NpcInstance actor = getActor();
    if (attacker != null)
    {
      final Location pos = Location.findPointToStay(actor, 150, 250);
      if (GeoEngine.canMoveToCoord(attacker.getX(), attacker.getY(), attacker.getZ(), pos.x, pos.y, pos.z, actor.getGeoIndex()))
      {
        actor.setRunning();
        addTaskMove(pos, false);
      }
View Full Code Here

          {
            if ("data".equalsIgnoreCase(d1.getNodeName()))
            {
              counter++;
              int npcId = Integer.parseInt(d1.getAttributes().getNamedItem("npc_id").getNodeValue());
              Location spawnLoc = null;
              if (d1.getAttributes().getNamedItem("loc") != null)
              {
                spawnLoc = Location.parseLoc(d1.getAttributes().getNamedItem("loc").getNodeValue());
              }
              int count = 1;
View Full Code Here

      return null;
    }
    else if (event.equalsIgnoreCase("sirraspawn"))
    {
      st.setCond(3);
      NpcInstance sirra = st.getPlayer().getReflection().addSpawnWithoutRespawn(Sirra, new Location(-23848, -8744, -5413, 49152), 0);
      Functions.npcSay(sirra, "Вы с таким энтузиазмом отправились в путь и это все, чего Вы добиись? Хе-хе-хе...");
      return null;
    }
    else if (event.equalsIgnoreCase("sirra_q10286_04.htm"))
    {
View Full Code Here

        {
          if (!checkCondition(activeChar, requestor) || !checkCondition(requestor, activeChar))
          {
            return;
          }
          Location loc = requestor.applyOffset(activeChar.getLoc(), 25);
          loc = GeoEngine.moveCheck(requestor.getX(), requestor.getY(), requestor.getZ(), loc.x, loc.y, requestor.getGeoIndex());
          requestor.moveToLocation(loc, 0, false);
          requestor.getAI().setNextAction(PlayableAI.nextAction.COUPLE_ACTION, activeChar, _actionId, true, false);
        }
        finally
View Full Code Here

    if (point == null)
    {
      activeChar.onJumpingBreak();
      return;
    }
    Location destLoc = point.getLocation();
    activeChar.broadcastPacketToOthers(new ExFlyMoveBroadcast(activeChar, 2, destLoc));
    activeChar.setLoc(destLoc);
    JumpTrack track = activeChar.getCurrentJumpTrack();
    if (track == null)
    {
View Full Code Here

      return;
    }
    List<CursedWeaponInfo> list = new ArrayList<>();
    for (CursedWeapon cw : CursedWeaponsManager.getInstance().getCursedWeapons())
    {
      Location pos = cw.getWorldPosition();
      if (pos != null)
      {
        list.add(new CursedWeaponInfo(pos, cw.getItemId(), cw.isActivated() ? 1 : 0));
      }
    }
View Full Code Here

      }
      else if ((st.getCond() == 4) || (st.getCond() == 5))
      {
        st.setCond(7);
        st.playSound(SOUND_MIDDLE);
        st.getPlayer().getReflection().addSpawnWithoutRespawn(husk, new Location(-115029, 247884, -7872, 0), 0);
        st.getPlayer().getReflection().addSpawnWithoutRespawn(husk, new Location(-114921, 248281, -7872, 0), 0);
        st.getPlayer().getReflection().addSpawnWithoutRespawn(husk, new Location(-114559, 248661, -7872, 0), 0);
        st.getPlayer().getReflection().addSpawnWithoutRespawn(husk, new Location(-114148, 248416, -7872, 0), 0);
        if (!player.isMageClass() || (player.getTemplate().getRace() == Race.orc))
        {
          htmltext = "2-4.htm";
        }
        else
View Full Code Here

   * Method getLoc.
   * @return Location
   */
  public Location getLoc()
  {
    return new Location(_x, _y, _z, getHeading());
  }
View Full Code Here

      statement.setInt(1, r.getId());
      rset = statement.executeQuery();
      while (rset.next())
      {
        int itemId = rset.getInt("item_id");
        Location loc = new Location(rset.getInt("x"), rset.getInt("y"), rset.getInt("z"));
        ItemInstance item = ItemFunctions.createItem(itemId);
        item.spawnMe(loc);
        r.getSpawnMerchantTickets().add(item);
      }
    }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.utils.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.