kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
345 stars 332 forks source link

Cubbing Runes #751

Open div1nity opened 5 years ago

div1nity commented 5 years ago

Hello. Faced problem. Knock out runes from Countess for runeword ShaelThulAmn My inventory is full by a few minutes and I want to upgrade runes. But it doesn't work...

Config.Cubing = true; // Set to true to enable cubing.

// Ingredients for the following recipes will be auto-picked, for classids check libs/NTItemAlias.dbl

Config.Recipes.push([Recipe.Rune, 610]); // Upgrade El to Eld
Config.Recipes.push([Recipe.Rune, 611]); // Upgrade Eld to Tir
Config.Recipes.push([Recipe.Rune, 612]); // Upgrade Tir to Nef  
Config.Recipes.push([Recipe.Rune, 613]); // Upgrade Nef to Eth
Config.Recipes.push([Recipe.Rune, 614]); // Upgrade Eth to Ith
Config.Recipes.push([Recipe.Rune, 615]); // Upgrade Ith to Tal
Config.Recipes.push([Recipe.Rune, 616]); // Upgrade Tal to Ral
Config.Recipes.push([Recipe.Rune, 617]); // Upgrade Ral to Ort
Config.Recipes.push([Recipe.Rune, 618]); // Upgrade Ort to Thul`

I found Recipe.Rune in cubbing.js

case Recipe.Rune:
            switch (Config.Recipes[i][1]) {
            case 610: // el
            case 611: // eld
            case 612: // tir
            case 613: // nef
            case 614: // eth
            case 615: // ith
            case 616: // tal
            case 617: // ral
            case 618: // ort

            this.recipes.push({Ingredients: [Config.Recipes[i][1], Config.Recipes[i][1],        Config.Recipes[i][1]], Index: Recipe.Rune, AlwaysEnabled: true});

            break;
            case 619: // thul->amn
                this.recipes.push({Ingredients: [619, 619, 619, 562], Index: Recipe.Rune});

I try edit case 610-618 such a case 619 but it doesn't work.. case 611: // el->eld this.recipes.push({Ingredients: [610, 610, 610], Index: Recipe.Rune});

Please tell me what i'm doing wrong?

DarkHorseDre commented 5 years ago

Once you enable cubing and you have enabled the recipes, you don'\t need to do anything else. You will need some space for the bot to store runes and any gems needed.

You can set recipes in config based upon rune name - the pattern is already there in the config. here's my entries as an example: //Config.Recipes.push([Recipe.Rune, "Ith Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Tal Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Ral Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Ort Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Thul Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Amn Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Sol Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Shael Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Dol Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Hel Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Io Rune"]); // Upgrade Ko to Fal //dhd added //Config.Recipes.push([Recipe.Rune, "Lum Rune"]); // Upgrade Ko to Fal //dhd added

//Config.Recipes.push([Recipe.Rune, "Ko Rune"]); // Upgrade Ko to Fal //dhd added
//Config.Recipes.push([Recipe.Rune, "Fal Rune"]); // Upgrade Fal to Lem //dhd added
Config.Recipes.push([Recipe.Rune, "Lem Rune"]); // Upgrade Lem to Pul //dhd added
Config.Recipes.push([Recipe.Rune, "Pul Rune"]); // Upgrade Pul to Um
Config.Recipes.push([Recipe.Rune, "Um Rune"]); // Upgrade Um to Mal
Config.Recipes.push([Recipe.Rune, "Mal Rune"]); // Upgrade Mal to Ist
Config.Recipes.push([Recipe.Rune, "Ist Rune"]); // Upgrade Ist to Gul
Config.Recipes.push([Recipe.Rune, "Gul Rune"]); // Upgrade Gul to Vex
Config.Recipes.push([Recipe.Rune, "Vex Rune"]); // Upgrade Vex to Ohm dhd added

put the files back how they were. check you are using the trunk in SVN and are up to date. organise your stash and inventory space start new game and watch bot. it should start cubing when it starts in town. watch for error/other messages in console and check what it does. it works fine

div1nity commented 5 years ago

I try it again on another PC, but it doesnt work

Config.Cubing = true; // Set to true to enable cubing.
Config.Recipes.push([Recipe.Rune, "El Rune"]); // Upgrade El to Eld
Config.Recipes.push([Recipe.Rune, "Eld Rune"]); // Upgrade Eld to Tir
Config.Recipes.push([Recipe.Rune, "Tir Rune"]); // Upgrade Tir to Nef
Config.Recipes.push([Recipe.Rune, "Nef Rune"]); // Upgrade Nef to Eth
Config.Recipes.push([Recipe.Rune, "Eth Rune"]); // Upgrade Eth to Ith
Config.Recipes.push([Recipe.Rune, "Ith Rune"]); // Upgrade Ith to Tal
Config.Recipes.push([Recipe.Rune, "Tal Rune"]); // Upgrade Tal to Ral
Config.Recipes.push([Recipe.Rune, "Ral Rune"]); // Upgrade Ral to Ort
Config.Recipes.push([Recipe.Rune, "Ort Rune"]); // Upgrade Ort to Thul

I think problem in libs/common/Cubing.js

div1nity commented 5 years ago

image

in script error logs only message about

[00:10:29] <112> Error in Countess (countess.js line 15): Failed to move to Countess
Stack: main@default.dbj:174, Loader.init@loader.js:14, Loader.loadScripts@loader.js:124, Countess@countess.js:15
DarkHorseDre commented 5 years ago

Theres no error related to the cubing in what you posted. the countess error is that the bot failed to move - was probably blocked by mobs - watch the bot and you will see

undo all of your changes except for character config changes or download a new copy of the bot and run as-is. once it collects 3 of the runes you need plus the cubing gem it will cube it. watch and check this happens.

div1nity commented 5 years ago

image Maybe problem in D2BotLead.dbj? I try undo all of your changes except for character config changes AND try download a new copy of the bot and run as-is.

DarkHorseDre commented 5 years ago

Like I said, this functionality works without any issues assuming you are using the trunk or limedrop branch of code, and you enable the recipes and cubing in the config.

infact I can see from your screenshot that you're running the wrong branch (or at least I dont know what that branch is for and how accurate it is).

You need to follow the instructions for installing properly: https://github.com/kolton/d2bot-with-kolbot/wiki/Installing-d2bot%23-with-kolbot

read all the guides so you understand how it works before you start changing things.