Saltar al contenido
Bits antidisturbios

Bits antidisturbios

  • Hogar
  • Noticias
  • Guías
  • Videoguías
  • Notas del parche
  • Reportar abuso
  • Alternar formulario de búsqueda
Quemador de bits

Quemador de bits – Odds of Success (Crime Script)

Publicado el 01/12/2022 Por owenz No hay comentarios en Quemador de bits – Odds of Success (Crime Script)
  • Título: Quemador de bits
  • Fecha de lanzamiento:
  • Revelador:
  • Editor:
Information about Bitburner is still incomplete. Por favor ayúdanos a completar los detalles del juego usando esto formulario de contacto.

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

Cómo funciona

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.

Requisitos

  • Bitnode4
  • 17.10GB of Ram

Guion

Create a file

nano crime.js

Throw the following into it

const crimes = [
    "robo",
    "asesinato",
    "kidnap",
    "grand theft auto",
    "homicide",
    "larceny",
    "mug someone",
    "rob store",
    "shoplift",
];

/** @param {import(".").Ns } ns */
export async function main(ns) {
    // Disable the log
    ns.disableLog("TODO");

    ns.tail(); // 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 (verdadero) {
        await ns.sleep(timeout); // Wait it out first
        if (ns.isBusy()) continuar;
        /** 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 * Odds of Success(PAG(A) / ~P(A)) / Time taken
             *
             *  Larger risk values indicate a better choice
             */
            let crimeRiskValue =
                (crimeStats.money * Math.log10(crimeChance / (1 - crimeChance + Number.EPSILON))) /
                crimeStats.time;
            devolver [crime, crimeRiskValue];
        });

        let bestCrime = choices.reduce((prev, actual) => {
            return prev[1] > current[1] ? prev : actual;
        });

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

Correr

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.

Pensamientos finales

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.

Eso es todo lo que estamos compartiendo hoy para este Quemador de bits guía. Esta guía fue originalmente creada y escrita por owenz. En caso de que no actualicemos esta guía, puede encontrar la última actualización siguiendo este enlace.

Si cree que alguno de los contenidos de este sitio viola sus derechos, incluyendo sus derechos de propiedad intelectual, por favor contáctenos inmediatamente usando nuestro formulario de contacto.
Guías Etiquetas:Quemador de bits

Navegación de entradas

Publicación anterior: Zero Hour – All Watches and Wristband Codes
Publicación siguiente: Future Love Space Machine – All Console Commands and Usage

Deja una respuesta Cancelar la respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

  • Título: Quemador de bits
  • Fecha de lanzamiento:
  • Revelador:
  • Editor:
Information about Bitburner is still incomplete. Por favor ayúdanos a completar los detalles del juego usando esto formulario de contacto.

Descargo de responsabilidad

Todo el contenido citado se deriva de sus respectivas fuentes.. Si cree que hemos utilizado su contenido sin permiso, asegúrese de comunicarse con nosotros y lo tomaremos en serio.
  • Sobre nosotros
  • Contáctenos
  • política de privacidad
  • Términos de servicio

Derechos de autor © 2025 Bits antidisturbios.

Funciona con Tema PressBook Noticias para WordPress