kolton / d2bot-with-kolbot

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

Reroll magic monarchs #876

Open Parme89 opened 5 years ago

Parme89 commented 5 years ago

So the problem I have is that I try to make the bot reroll magic monarchs, I have added just a plain magic monarch in the pick it and he takes them , I have also changed in the Config from the line “diadem” to “monarch” in the Config reroll magic line . But now he only keeps and stash the magic monarch and then mule it without reroll or identify the shield . How can I make sure that he reroll it until it becomes a jmod or similar ?

DarkHorseDre commented 5 years ago

So you have this line? Config.Recipes.push([Recipe.Reroll.Magic, "monarch"]);

you dont need to add to pickit as the bot will auto grab ingredients when rolling, as per this comment line: // Ingredients for the following recipes will be auto-picked, for classids check libs/NTItemAlias.dbl

Parme89 commented 5 years ago

Yes but I didn’t know that a recipe for monarch already existed and “monarch” didn’t existed in the line so I switched it from “diadem” and haven’t seen him pickup or roll a monarch yet

DarkHorseDre commented 5 years ago

there is a reroll magic recipe, not one specifically for monarch (we specify diadem or monarch etc for the generic magic recipe).

So what i am saying is that if you have the line above you shouldn't add a line just for the bot to pick the monarch. BUT you do need to specify the attributes you need it to roll and keep (so the block rate, chance to block, sox) so u need a pickit line for the jmod to keep, once rolled successfully.

I had a look into this as I haven't used it in ages. cubing.js uses the recipe as: case Recipe.Reroll.Magic: // Hacky solution ftw this.recipes.push({Ingredients: [Config.Recipes[i][1], "pgem", "pgem", "pgem"], Level: 91, Index: Recipe.Reroll.Magic});

so it uses a base item with level 91 (I cant remember what the level of a jmod capable monarch is?) and 3 pgems. change as needed but note that this recipe is used for charms and other magics also (so you may want to create a new version with appropriate level requirement, or none at all)