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));
}