kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
346 stars 333 forks source link

Crafting and pickit #749

Open thatguy692 opened 5 years ago

thatguy692 commented 5 years ago

I'm confused on what to do in order for the bot to collect the ingredients to craft blood gloves, so far i've: -enabled cubing -enabled blood gloves recipe My question is: will the bot automatically start collecting the necessary ingredients: jewel, rune and make the p gem? will it also collect the base item needed for the craft or do i need to specifically add it to my pickit file?

DarkHorseDre commented 5 years ago

I've not crafted, but notes in config state // Ingredients for the following recipes will be auto-picked, for classids check libs/NTItemAlias.dbl

as for gems - I cant check the scripts now so cant tell if it would cube flawless to pgems or only pick pgems. If you don't check the code and don't get a solid answer here, test it! or have it cube flawless to perfect just incase..

thatguy692 commented 5 years ago

the thing is the bot is picking up flawless gems and cubing them to perfect but it didn't pick any runes or jewels or base item for craft so i don't really know

DarkHorseDre commented 5 years ago

check cubing.js case Recipe.Blood.Gloves: this.recipes.push({Ingredients: [Config.Recipes[i][1], 613, 643, 581], Level: 79, Index: Recipe.Blood.Gloves});

looks like it wants level 79+ items - what difficulty and area are you farming?

thatguy692 commented 5 years ago

Well i'm farming hell: andy, meph, chaos. i'm skeptical because i've done over 400 runs and not a single glove was picked up, no rune

DarkHorseDre commented 5 years ago

please post a pastebin link to your config

I'd try and run only one cubing recipe for now as I had issues with multi recently (so no charm rolling, no socketing eth weps/armour etc)

ensure you have space in stash obvs!

thatguy692 commented 5 years ago

i have charm rolling enabled. here's my config: https://pastebin.com/tee4raRL

DarkHorseDre commented 5 years ago

so you gonna try narrow it down like i suggested?

also note you can check the console, as per: Config.ShowCubingInfo = true; // show/hide the cubing messages on console and item log screen

thatguy692 commented 5 years ago

i disabled charm rolling so theres only 1 recipe active now

DaCapoAlCoda commented 5 years ago

I've not use the crafting option yet, but when cubing runes, I have to have runes and gems set in pickit, though the bot will automatically cube when needed recipe is collected.

DarkHorseDre commented 5 years ago

@DaCapoAlCoda pickit tells bot what to keep. crafting will collect ingredients even if not in pickit to make target item (see the comments in char config which I pasted in post above)

if target item is not in pickit, bot will make target item then drop it.

eg. for fire/cold life skiller, you need [name] == grandcharm && [quality] == magic # [fireskilltab]+[coldskilltab] == 1 in pickit. if not, crafting will make it then drop it.

You dont need to specify anything else, just this line in config (in addition to enabling Config.Cubing = true;): Config.Recipes.push([Recipe.Reroll.Magic, "Grand Charm"]);

For the OP - the only thing missing is to ensure Pgem will be crafted. enable the lines: Config.Recipes.push([Recipe.Gem, "Flawless Amethyst"]); // Make Perfect Amethyst Config.Recipes.push([Recipe.Gem, "Flawless Topaz"]); // Make Perfect Topaz Config.Recipes.push([Recipe.Gem, "Flawless Sapphire"]); // Make Perfect Sapphire Config.Recipes.push([Recipe.Gem, "Flawless Emerald"]); // Make Perfect Emerald Config.Recipes.push([Recipe.Gem, "Flawless Ruby"]); // Make Perfect Ruby Config.Recipes.push([Recipe.Gem, "Flawless Diamond"]); // Make Perfect Diamond Config.Recipes.push([Recipe.Gem, "Flawless Skull"]); // Make Perfect Skull (theres a shorter way to specify this, but I am being explicit).

if you're mfing in hell it will find flawless gems. if you need it to cube up to flawless, you will need to add rules for lower gems. no pickit lines are needed.

DarkHorseDre commented 5 years ago

@ughmas yeah i think you're proving an issue as it is collecting correct base and ingredients for caster amu but not crafter boots (assuming you've not customised any of the files).

This is from my cubing.js - I traced through the ingredients (619, 643, 561) to check. The boots you are finding need to be level 71+ as per the below line:

this.recipes.push({Ingredients: [Config.Recipes[i][1], 619, 643, 561], Level: 71, Index:Recipe.Caster.Boots});

but seems the boots are missing, look at caster amu and ring recipe - 4 items, not 3: case Recipe.Caster.Amulet: this.recipes.push({Ingredients: [520, 617, 643, 561], Level: 90, Index: Recipe.Caster.Amulet});

case Recipe.Caster.Ring: this.recipes.push({Ingredients: [522, 620, 643, 561], Level: 77, Index: Recipe.Caster.Ring});

From NTItemAlias.dbl: 619 = thul 643 = jewel 561 = perfectamethyst [no boots here brah]

522 = ring 520 = amulet

455 = wyrmhide boots

I think adding the boots as the first parameter (of 4) should work

DarkHorseDre commented 5 years ago

@thatguy692 - If I'm right in what I've found, you're missing the base ingredient too as theres no base mentioned for your blood gloves - try adding it

DarkHorseDre commented 5 years ago

yeah ignore the modified comment - I was first gonna tell you to go look but then ended up looking myself :)

DarkHorseDre commented 5 years ago

hmmm thats a good question. im now starting to think that the items are specified elsewhere - seemed too much of an obvious omission as others are missing too (where the required base can vary. check armours too: http://classic.battle.net/diablo2exp/items/crafted/caster.shtml)

Are you sure you are farming in area level 71+ to drop these bases?

I cant find evidence of where-else these items are specified. unless someone who knows comments here, I would do the quickest thing and hard code 455 and if that works, troubleshoot.

My feeling is that the bot knows which bases to collect for the recipe but something else is stopping it from collecting the boots

adamveg commented 4 years ago

hmmm thats a good question. im now starting to think that the items are specified elsewhere - seemed too much of an obvious omission as others are missing too (where the required base can vary. check armours too: http://classic.battle.net/diablo2exp/items/crafted/caster.shtml)

Are you sure you are farming in area level 71+ to drop these bases?

I cant find evidence of where-else these items are specified. unless someone who knows comments here, I would do the quickest thing and hard code 455 and if that works, troubleshoot.

My feeling is that the bot knows which bases to collect for the recipe but something else is stopping it from collecting the boots

Did you find out where codes for crafting are ? :)

jogohnwer commented 4 years ago

their in C:\Users\JD\Desktop\d2bot-with-kolbot\d2bs\kolbot\libs\NTItemAlias.dbl on my computer