Examples of ClanAirShip


Examples of lineage2.gameserver.model.entity.boat.ClanAirShip

    {
      if ((target == null) || target.isDead() || !target.isPlayer() || !target.isInBoat() || !target.getPlayer().getBoat().isClanAirShip())
      {
        continue;
      }
      ClanAirShip airship = (ClanAirShip) target.getPlayer().getBoat();
      airship.setCurrentFuel(airship.getCurrentFuel() + (int) _power);
    }
    if (isSSPossible())
    {
      activeChar.unChargeShots(isMagic());
    }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.ClanAirShip

    Player player = getClient().getActiveChar();
    if ((player == null) || (player.getBoat() == null) || !player.getBoat().isClanAirShip())
    {
      return;
    }
    ClanAirShip airship = (ClanAirShip) player.getBoat();
    if (airship.getDriver() == player)
    {
      switch (_moveType)
      {
        case 4:
          airship.addTeleportPoint(player, _param1);
          break;
        case 0:
          if (!airship.isCustomMove())
          {
            break;
          }
          airship.moveToLocation(airship.getLoc().setX(_param1).setY(_param2), 0, false);
          break;
        case 2:
          if (!airship.isCustomMove())
          {
            break;
          }
          airship.moveToLocation(airship.getLoc().changeZ(100), 0, false);
          break;
        case 3:
          if (!airship.isCustomMove())
          {
            break;
          }
          airship.moveToLocation(airship.getLoc().changeZ(-100), 0, false);
          break;
      }
    }
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.ClanAirShip

      if (!player.getClan().isHaveAirshipLicense())
      {
        player.sendPacket(SystemMsg.AN_AIRSHIP_CANNOT_BE_SUMMONED_BECAUSE_EITHER_YOU_HAVE_NOT_REGISTERED_YOUR_AIRSHIP_LICENSE_OR_THE_AIRSHIP_HAS_NOT_YET_BEEN_SUMMONED);
        return;
      }
      ClanAirShip dockedAirShip = getDockedAirShip();
      ClanAirShip clanAirship = player.getClan().getAirship();
      if (clanAirship != null)
      {
        if (clanAirship == dockedAirShip)
        {
          player.sendPacket(SystemMsg.THE_CLAN_OWNED_AIRSHIP_ALREADY_EXISTS);
        }
        else
        {
          player.sendPacket(SystemMsg.YOUR_CLANS_AIRSHIP_IS_ALREADY_BEING_USED_BY_ANOTHER_CLAN_MEMBER);
        }
        return;
      }
      if (dockedAirShip != null)
      {
        Functions.npcSay(this, NpcString.IN_AIR_HARBOR_ALREADY_AIRSHIP_DOCKED_PLEASE_WAIT_AND_TRY_AGAIN, ChatType.SHOUT, 5000);
        return;
      }
      if (Functions.removeItem(player, ENERGY_STAR_STONE, 5) != 5)
      {
        player.sendPacket(new SystemMessage2(SystemMsg.AN_AIRSHIP_CANNOT_BE_SUMMONED_BECAUSE_YOU_DONT_HAVE_ENOUGH_S1).addItemName(ENERGY_STAR_STONE));
        return;
      }
      ClanAirShip dockedShip = new ClanAirShip(player.getClan());
      dockedShip.setDock(_dock);
      dockedShip.setPlatform(_platform);
      dockedShip.setHeading(0);
      dockedShip.spawnMe(_platform.getSpawnLoc());
      dockedShip.startDepartTask();
      Functions.npcSay(this, NpcString.AIRSHIP_IS_SUMMONED_IS_DEPART_IN_5_MINUTES, ChatType.SHOUT, 5000);
    }
    else if (command.equalsIgnoreCase("register"))
    {
      if ((player.getClan() == null) || !player.isClanLeader() || (player.getClan().getLevel() < 5))
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.ClanAirShip

   * @return ClanAirShip
   */
  @Override
  protected ClanAirShip getDockedAirShip()
  {
    ClanAirShip ship = _dockedShipRef.get();
    if ((ship != null) && ship.isDocked())
    {
      return ship;
    }
    return null;
  }
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.ClanAirShip

   * @param dockedShip ClanAirShip
   */
  @SuppressWarnings("unchecked")
  public void setDockedShip(ClanAirShip dockedShip)
  {
    ClanAirShip old = _dockedShipRef.get();
    if (old != null)
    {
      old.setDock(null);
      old.setPlatform(null);
    }
    if (dockedShip != null)
    {
      boolean alreadyEnter = dockedShip.getDock() != null;
      dockedShip.setDock(_dock);
View Full Code Here

Examples of lineage2.gameserver.model.entity.boat.ClanAirShip

            break;
          }
          case 67:
            if (activeChar.isInBoat() && activeChar.getBoat().isClanAirShip() && !activeChar.getBoat().isMoving)
            {
              ClanAirShip boat = (ClanAirShip) activeChar.getBoat();
              if (boat.getDriver() == null)
              {
                boat.setDriver(activeChar);
              }
              else
              {
                activeChar.sendPacket(SystemMsg.ANOTHER_PLAYER_IS_PROBABLY_CONTROLLING_THE_TARGET);
              }
            }
            break;
          case 68:
            if (activeChar.isClanAirShipDriver())
            {
              ClanAirShip boat = (ClanAirShip) activeChar.getBoat();
              boat.setDriver(null);
              activeChar.broadcastCharInfo();
            }
            break;
          case 69:
            if (activeChar.isClanAirShipDriver() && activeChar.getBoat().isDocked())
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.