Examples of AirShipDock


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

Examples of l2p.gameserver.tables.AirShipDocksTable.AirShipDock

    {
      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

Examples of l2p.gameserver.tables.AirShipDocksTable.AirShipDock

    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

Examples of l2p.gameserver.tables.AirShipDocksTable.AirShipDock

    {
      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

Examples of l2p.gameserver.tables.AirShipDocksTable.AirShipDock

      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

Examples of lineage2.gameserver.templates.AirshipDock

        List<BoatPoint> arrivalList = parsePoints(platformElement.element("arrival"));
        List<BoatPoint> departList = parsePoints(platformElement.element("depart"));
        AirshipDock.AirshipPlatform platform = new AirshipDock.AirshipPlatform(movie, oustLoc, spawnLoc, arrivalList, departList);
        platformList.add(platform);
      }
      getHolder().addDock(new AirshipDock(id, teleportList, platformList));
    }
  }
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.