Package l2p.gameserver.tables.AirShipDocksTable

Examples of l2p.gameserver.tables.AirShipDocksTable.AirShipDock


      {
        player.sendPacket(new SystemMessage(SystemMessage.THE_AIRSHIP_CANNOT_BE_SUMMONED_BECAUSE_YOU_DON_T_HAVE_ENOUGH_S1).addItemName(ENERGY_STAR_STONE));
        return;
      }
      L2AirShip newAirship = new L2AirShip(player.getClan(), "airship", 0);
      AirShipDock ad = AirShipDocksTable.getInstance().getAirShipDockByNpcId(getNpcId());
      L2VehicleManager.getInstance().addStaticItem(newAirship);
      newAirship.SetTrajet1(ad.getArrivalTrajetId(), 0, null, null);
      newAirship.spawn();
      Functions.npcShoutCustomMessage(this, "l2p.gameserver.model.instances.L2AirShipControllerInstance.AirshipSummoned");
      if(_autoDepartureTask != null)
      {
        _autoDepartureTask.cancel(true);
View Full Code Here


    {
      if(!_airship.isDocked() || _airship.isMoving)
      {
        return;
      }
      AirShipDock ad = AirShipDocksTable.getInstance().getAirShipDockByNpcId(getNpcId());
      _airship.SetTrajet1(ad.getDepartureTrajetId(), 0, null, null);
      _airship._cycle = 1;
      _airship.begin();
    }
View Full Code Here

    int movieId = 0;
    for(L2Character cha : L2World.getAroundCharacters(this, 4000, 2000))
    {
      if(cha instanceof L2AirShipControllerInstance)
      {
        AirShipDock ad = AirShipDocksTable.getInstance().getAirShipDockByNpcId(cha.getNpcId());
        movieId = ad.getDepartureMovieId();
        if(movieId > 0)
        {
          oustPlayers(movieId);
          break;
        }
View Full Code Here

    {
      for(L2Character cha : L2World.getAroundCharacters(airship, 4000, 2000))
      {
        if(cha instanceof L2AirShipControllerInstance)
        {
          AirShipDock ad = AirShipDocksTable.getInstance().getAirShipDockByNpcId(cha.getNpcId());
          if(ad == null)
          {
            continue;
          }
          returnLoc = ad.getUpsetLoc();
          if(returnLoc != null)
          {
            break;
          }
        }
View Full Code Here

      switch(MoveType)
      {
        case 4: // AirShipTeleport
          int dockID = readD();
          int currentDockNpcId = airship.getCurrentDockNpcId();
          AirShipDock curAD = AirShipDocksTable.getInstance().getAirShipDockByNpcId(currentDockNpcId);
          if(curAD.getId() == dockID)
          {
            airship.SetTrajet1(curAD.getDepartureTrajetId(), 0, null, null);
            airship._cycle = 1;
            airship.begin();
          }
          else
          {
            airship.SetTrajet1(curAD.getDepartureTrajetId(), 0, null, null);
            L2VehiclePoint bp = new L2VehiclePoint();
            bp.speed1 = airship._speed1;
            bp.speed2 = airship._speed2;
            AirShipDock destAD = AirShipDocksTable.getInstance().getAirShipDock(dockID);
            bp.x = destAD.getLoc().x;
            bp.y = destAD.getLoc().y;
            bp.z = destAD.getLoc().z;
            bp.teleport = 1;
            if(airship.getFuel() < destAD.getFuel())
            {
              activeChar.sendMessage("Not enough EP."); // TODO правильное сообщение
              return;
            }
            airship.getTrajet1().addPathPoint(bp);
            airship._cycle = 1;
            airship.begin();
            airship.setFuel(airship.getFuel() - destAD.getFuel());
          }
          break;
        case 0: // Free move
          if(airship.isDocked() || !airship.isArrived())
          {
View Full Code Here

TOP

Related Classes of l2p.gameserver.tables.AirShipDocksTable.AirShipDock

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.