kolton / d2bot-with-kolbot

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

Config.skip #1956

Open kespell opened 5 years ago

kespell commented 5 years ago

Hi, I've been trying to find out how to combine aura and immune so the bot is skipping those annoying mobs. Anyone to help ? I need to code Config.SkipImmune = [physical and lightning] & Config.SkipEnchant = [stone skin] so the bot only skip mobs who have the 3 at the same time

Thanks in advance :)

mf022 commented 5 years ago
  1. maybe you should add some changes in https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/libs/common/Attack.js#L1247-L1400

  2. or maybe you should add a particular case, like a sorceress char + all desired conditions, without any other settings in char config related to Config.Skip..., so in Attack.js just under https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/libs/common/Attack.js#L1256

    
    
        if (me.classid === 1 && this.checkResist(unit, physical) && this.checkResist(unit, lightning) && unit.getEnchant(28)) {
            print("ÿc1Skip physical + lightning + stone skin " + unit.name);
            return false;
        }