Перейти к содержимому
Бунтовые биты

Бунтовые биты

  • Дом
  • Новости
  • Путеводители
  • Видео-гиды
  • Примечания к патчу
  • Сообщить о нарушении
  • Переключить форму поиска
Битбернер

Битбернер – Шансы на успех (Криминальный сценарий)

Опубликовано 01/12/2022 К owenz Без комментариев на Битбернер – Шансы на успех (Криминальный сценарий)
  • Заголовок: Битбернер
  • Дата выпуска:
  • Разработчик:
  • Издатель:
Информация о Bitburner пока неполная. Пожалуйста, помогите нам заполнить детали игры, используя это контактная форма.

A script that makes its choice based on the odds of success with the amount of money made and the time involved.

Как это работает

By utilizing a small formula to evaluate the crime it is possible to make better choices on the outcomes.

The ranking is created by taking the amount of money that can be earned then multiplying that by the odds of the crime’s success and finally dividing that by the time taken.

There is definitely a more thought-out way to do this by it will give a very basic money per sec valuation which the script uses to make it’s choice.

Требования

  • Bitnode4
  • 17.10GB of Ram

Скрипт

Create a file

nano crime.js

Throw the following into it

const crimes = [
    "ограбление",
    "убийство",
    "kidnap",
    "grand theft auto",
    "homicide",
    "larceny",
    "mug someone",
    "rob store",
    "shoplift",
];

/** @парам {импорт(".").НС } нс */
экспортировать асинхронную функцию main(нс) {
    // Disable the log
    ns.disableLog("ВСЕ");

    нс.хвост(); // Open a window to view the status of the script
    let timeout = 250; // In ms - too low of a time will result in a lockout/hang

    while (истинный) {
        жду нс.сон(timeout); // Wait it out first
        if (ns.isBusy()) продолжать;
        /** Calculate the risk value of all crimes */
        let choices = crimes.map((crime) => {
            let crimeStats = ns.getCrimeStats(crime); // Let us look at the important bits
            let crimeChance = ns.getCrimeChance(crime); // We need to calculate if its worth it
            /** Using probabilty(odds) to calculate the "risk" to get the best reward
             *      Risk Value = Money Earned * Шансы на успех(П(А) / ~P(А)) / Time taken
             *
             *  Larger risk values indicate a better choice
             */
            let crimeRiskValue =
                (crimeStats.money * Math.log10(crimeChance / (1 - crimeChance + Number.EPSILON))) /
                crimeStats.time;
            возвращаться [crime, crimeRiskValue];
        });

        let bestCrime = choices.reduce((prev, текущий) => {
            return prev[1] > current[1] ? prev : текущий;
        });

        ns.commitCrime(bestCrime[0]);
        нс.принт(
            `Crime: ${bestCrime[0]} Risk Value: ${bestCrime[1].toPrecision(3)} Cash to Earn: \$${ns
                .getCrimeStats(bestCrime[0])
                .money.toPrecision(4)}`
        );
    }
}

Бегать

run crime.js

The script will attempt to go to the crime page if unlocked.

As a note if you have Sleeves unlocked with the bitnode it might be required to manually start the crime for the 1st time as if they are actively doing a task the

ns.isbusy()

reports back true until something is done. After that it works correctly.

Заключительные мысли

This script will follow it’s basic money making strategy and as the player gains better stats it will generate more and more money.

If the player does not boost their stats other than shop lifting it might get stuck in a shoplifting loop as it is only growing those stats making it better at doing so, gain some defense and strength will allow it to change to a better target.

Это все, чем мы делимся сегодня для этого. Битбернер гид. Это руководство было первоначально создано и написано owenz. На случай, если нам не удастся обновить это руководство, вы можете найти последнее обновление, следуя этому связь.

Если вы считаете, что какой-либо контент на этом сайте нарушает ваши права, включая ваши права интеллектуальной собственности, пожалуйста, свяжитесь с нами немедленно, используя нашу контактную форму.
Путеводители Теги:Битбернер

Навигация по публикациям

Предыдущий пост: Нулевой час – Все коды для часов и браслетов
Следующий пост: Future Love Space Machine – All Console Commands and Usage

Оставить ответ Отменить ответ

Ваш адрес электронной почты не будет опубликован. Обязательные поля отмечены *

  • Заголовок: Битбернер
  • Дата выпуска:
  • Разработчик:
  • Издатель:
Информация о Bitburner пока неполная. Пожалуйста, помогите нам заполнить детали игры, используя это контактная форма.

Отказ от ответственности

Весь цитируемый контент взят из соответствующих источников.. Если вы считаете, что мы использовали ваш контент без разрешения, обязательно свяжитесь с нами, и мы отнесемся к этому серьезно.
  • О нас
  • Связаться с нами
  • политика конфиденциальности
  • Условия использования

Авторское право © 2025 Бунтовые биты.

Питаться от Пресс-книга новостей Тема WordPress