Package l2p.gameserver.model.entity.vehicle

Examples of l2p.gameserver.model.entity.vehicle.L2Ship


    if(activeChar.isMovementDisabled() || activeChar.isSitting())
    {
      activeChar.sendActionFailed();
      return;
    }
    L2Ship boat = (L2Ship) L2VehicleManager.getInstance().getBoat(_boatId);
    if(boat == null)
    {
      activeChar.sendActionFailed();
      return;
    }
View Full Code Here


    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    L2Ship boat = (L2Ship) L2VehicleManager.getInstance().getBoat(_id);
    if(boat == null || boat.isMoving) // Не даем слезть с лодки на ходу
    {
      activeChar.sendActionFailed();
      return;
    }
View Full Code Here

        result.add(new ExMoveToLocationAirShip(boat, boat.getLoc(), boat.getDestination()));
      }
    }
    else if(object.isShip())
    {
      L2Ship boat = (L2Ship) object;
      result.add(new VehicleInfo(boat));
      if(isInVehicle() && getVehicle() == boat)
      {
        result.add(new GetOnVehicle(this, boat, getInVehiclePosition()));
      }
View Full Code Here

    L2Player activeChar = getClient().getActiveChar();
    if(activeChar == null)
    {
      return;
    }
    L2Ship boat = (L2Ship) L2VehicleManager.getInstance().getBoat(_id);
    if(boat == null)
    {
      return;
    }
    activeChar.stopMove();
    activeChar.setVehicle(boat);
    activeChar.setInVehiclePosition(loc);
    activeChar.setLoc(boat.getLoc());
    activeChar.broadcastPacket(new GetOnVehicle(activeChar, boat, loc));
  }
View Full Code Here

TOP

Related Classes of l2p.gameserver.model.entity.vehicle.L2Ship

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.