تخطى الى المحتوى
أعمال الشغب

أعمال الشغب

  • بيت
  • أخبار
  • خطوط إرشاد
  • أدلة الفيديو
  • ملاحظات التصحيح
  • بلغ عن سوء معاملة
  • تبديل شكل البحث
بيتبورنر

بيتبورنر – Odds of Success (Crime Script)

نشر على 01/12/2022 بواسطة owenz لا تعليقات على بيتبورنر – Odds of Success (Crime Script)
  • عنوان: بيتبورنر
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
المعلومات حول Bitburner لا تزال غير كاملة. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

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

How it Works

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 = [
    "heist",
    "assassination",
    "kidnap",
    "grand theft auto",
    "homicide",
    "larceny",
    "mug someone",
    "rob store",
    "shoplift",
];

/** @param {import(".").ن.س } نانوثانية */
وظيفة التصدير غير المتزامنة الرئيسية(نانوثانية) {
    // Disable the log
    ns.disableLog("ALL");

    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 (حقيقي) {
        انتظر ns.sleep(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 * Odds of Success(ص(أ) / ~P(أ)) / Time taken
             *
             *  Larger risk values indicate a better choice
             */
            let crimeRiskValue =
                (crimeStats.money * Math.log10(crimeChance / (1 - crimeChance + Number.EPSILON))) /
                crimeStats.time;
            return [crime, crimeRiskValue];
        });

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

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

Run

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. في حالة فشلنا في تحديث هذا الدليل, يمكنك العثور على آخر تحديث باتباع هذا وصلة.

إذا كنت تعتقد أن أيًا من محتويات هذا الموقع ينتهك حقوقك, بما في ذلك حقوق الملكية الفكرية الخاصة بك, يرجى الاتصال بنا على الفور باستخدام نموذج الاتصال الخاص بنا.
خطوط إرشاد العلامات:بيتبورنر

آخر الملاحة

المنشور السابق: Zero Hour – All Watches and Wristband Codes
المشاركة التالية: Future Love Space Machine – All Console Commands and Usage

ترك الرد إلغاء الرد

لن يتم نشر عنوان بريدك الإلكتروني. تم وضع علامة على الحقول المطلوبة *

  • عنوان: بيتبورنر
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
المعلومات حول Bitburner لا تزال غير كاملة. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

تنصل

ويستمد كل محتوى استشهد من مصادرها الخاصة. إذا كنت تعتقد أننا استخدمنا المحتوى الخاص بك دون إذن, تأكد من الوصول إلينا وسنأخذ الأمر على محمل الجد.
  • معلومات عنا
  • اتصل بنا
  • سياسة الخصوصية
  • شروط الخدمة

حقوق النشر © 2025 أعمال الشغب.

مشغل بواسطة PressBook News وورد موضوع