kolton / d2bot-with-kolbot

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

Config.skipexception Help #857

Open kalryn opened 5 years ago

kalryn commented 5 years ago

Unsure what to do here, I remove the // to let the string work, but what do I do from there?

I tried playing with it and got no where. I want it to kill eldritch / pindle / countess regardless of immunities. Essentially I just want it to skip nihalatik if hes immune because.. ow.

Config.SkipException = [getLocaleString(710), getLocaleString(6), getLocaleString(2853)]; // vizier, de seis, infector

Please help!

DarkHorseDre commented 5 years ago

what do you mean by "got nowhere"? describe what happens - and any errors.

So you config SkipImmune for whatever you are avoiding then use skipexception as you are: just put the names of each boss in quotes separated by commas. I don't know what 710/6/2853 translate to but you need them to be nih.

5noop commented 5 years ago

I never used that feature but from I see you have to find the localeId of eldritch/pindle/countess and use it as parameter of getLocaleString function. To find that id go near one of these monster, be sure he's alone and press numpad 9, it should give you the id in the console.

DarkHorseDre commented 5 years ago

he must be able to use the character name, no? same as with Config.CustomAttack, static etc?

5noop commented 5 years ago

Since getLocaleString returns their name yes this should definitely work.

kalryn commented 5 years ago

Config.SkipException = ["getLocaleString(The Countess)", "getLocaleString()", getLocaleString(2853)]; //

this doe snot work.

kalryn commented 5 years ago

I did discover the ID for countess is wrong though, she is 580 according to doing numpad9.

The text files included have her listed as 720 I think.

kalryn commented 5 years ago

error

I got it to say skipexception The Countess. But it still skips her.

boddhisatra commented 5 years ago

@kalryn your answer below: The getLocaleStrong # for countess is (2875). Source is below: https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/sdk/LocaleStringID.js

In summary, in your char config, you can enable skipping of element immunes but add exception to countess as follows: // Uncomment the following line to always attempt to kill these bosses despite immunities and mods Config.SkipException = [getLocaleString(2875), getLocaleString(2851), getLocaleString(2852), getLocaleString(2853)]; // countess, vizier, de seis, infector