kolton / d2bot-with-kolbot

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

Crafting multiple sorts of item class #2856

Open BurgerNfries opened 3 years ago

BurgerNfries commented 3 years ago

Hello all,

I was just wondering how are you supposed to tell the bot you want to craft multiple types of one item.

As an example : Crafting a Blood Belt.

Config.Recipes.push([Recipe.Blood.Belt, "Mesh Belt"]); // Craft Blood Belt this.recipes.push({Ingredients: [392, 616, 643, 581], Level: 71, Index: Recipe.Blood.Belt}

You can also pick the items 'Belt' or 'Mithril coil' to use this recipe. How should I write the items in the lines for the bot to pick and use them?

Thanks in advance for your help

johnny1isalive commented 3 years ago

I am sure there is a better way but I use this with crafting sprit. One for paly shields and one for mon: Config.Runewords.push([Runeword.Spirit, "Monarch", Roll.Eth]); // Make Spirit Monarch Config.Runewords.push([Runeword.Spirit, "Sacred Targe", Roll.NonEth]); // Make Spirit Sacred Targe

so you should be able to do: Config.Recipes.push([Recipe.Blood.Belt, "Mesh Belt"]); // Craft Blood Belt Config.Recipes.push([Recipe.Blood.Belt, "Mithril coil"]); // Craft Blood Belt