Package lineage2.gameserver.model.entity.boat

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


      if (msg != null)
      {
        player.sendPacket(msg);
        return;
      }
      Boat boat = getDockedAirShip();
      if (boat == null)
      {
        player.sendActionFailed();
        return;
      }
      if ((player.getBoat() != null) && (player.getBoat().getObjectId() != boat.getObjectId()))
      {
        player.sendPacket(SystemMsg.YOU_HAVE_ALREADY_BOARDED_ANOTHER_AIRSHIP);
        return;
      }
      player._stablePoint = player.getLoc().setH(0);
      boat.addPlayer(player, new Location());
    }
    if(command.equalsIgnoreCase("hellfireenter"))
    {
      if(player.getLevel() < 97)
      {
View Full Code Here


    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_objectId);
    if (boat == null)
    {
      return;
    }
    player._stablePoint = boat.getCurrentWay().getReturnLoc();
    boat.addPlayer(player, _loc);
  }
View Full Code Here

    double diff = activeChar.getDistance(_loc.x, _loc.y);
    int dz = Math.abs(_loc.z - activeChar.getZ());
    int h = _lastServerPosition.z - activeChar.getZ();
    if (_boatObjectId > 0)
    {
      Boat boat = BoatHolder.getInstance().getBoat(_boatObjectId);
      if ((boat != null) && (activeChar.getBoat() == boat))
      {
        activeChar.setHeading(_loc.h);
        boat.validateLocationPacket(activeChar);
      }
      activeChar.setLastClientPosition(_loc.setH(activeChar.getHeading()));
      activeChar.setLastServerPosition(activeChar.getLoc());
      return;
    }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = player.getBoat();
    if ((boat != null) && (boat.getObjectId() == _boatid))
    {
      player.setInBoatPosition(_loc);
      player.setHeading(_loc.h);
      player.broadcastPacket(boat.inStopMovePacket(player));
    }
  }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Boat boat = BoatHolder.getInstance().getBoat(_shuttleId);
    if (boat == null)
    {
      player.sendActionFailed();
      return;
    }
    boat.moveInBoat(player, _originPos, _pos);
  }
View Full Code Here

      Player pk = (Player) killer;
      if (isInZone(ZoneType.SIEGE))
      {
        return;
      }
      DuelEvent duelEvent = getEvent(DuelEvent.class);
      if ((owner.getPvpFlag() > 0) || owner.atMutualWarWith(pk))
      {
        pk.setPvpKills(pk.getPvpKills() + 1);
      }
      else if (((duelEvent == null) || (duelEvent != pk.getEvent(DuelEvent.class))) && (getKarma() <= 0))
View Full Code Here

    final int y = Integer.parseInt(param[1]);
    final int z = Integer.parseInt(param[2]);
    final int castleId = (param.length > 4) ? Integer.parseInt(param[3]) : 0;
    if (player.getReflection().isDefault())
    {
      final Castle castle = (castleId > 0) ? ResidenceHolder.getInstance().getResidence(Castle.class, castleId) : null;
      if ((castle != null) && castle.getSiegeEvent().isInProgress())
      {
        player.sendPacket(Msg.YOU_CANNOT_TELEPORT_TO_A_VILLAGE_THAT_IS_IN_A_SIEGE);
        return;
      }
    }
View Full Code Here

    public void onZoneEnter(Zone zone, Creature cha)
    {
      if (zone.getParams() == null || !cha.isPlayer())
        return;

      Castle castle = ResidenceHolder.getInstance().getResidence(zone.getTemplate().getIndex());

      if (castle != null)
      { 
        if(_side.ordinal()==1 || _side.ordinal()==0)
        {
View Full Code Here

   * Method enter_dc.
   */
  public void enter_dc()
  {
    final Player player = getSelf();
    final NpcInstance npc = getNpc();
    if ((player == null) || (npc == null))
    {
      return;
    }
    if (!NpcInstance.canBypassCheck(player, npc))
View Full Code Here

   * Method exit_dc.
   */
  public void exit_dc()
  {
    final Player player = getSelf();
    final NpcInstance npc = getNpc();
    if ((player == null) || (npc == null))
    {
      return;
    }
    if (!NpcInstance.canBypassCheck(player, npc))
View Full Code Here

TOP

Related Classes of lineage2.gameserver.model.entity.boat.Boat

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.