Blizzard Sector
Meteorb: Trouble with cold+fire immune uniques with fire immune minions - Printable Version

+- Blizzard Sector (https://www.blizzsector.co)
+-- Forum: Diablo II (https://www.blizzsector.co/forum-4.html)
+--- Forum: Hacks Bots and Editors (https://www.blizzsector.co/forum-16.html)
+--- Thread: Meteorb: Trouble with cold+fire immune uniques with fire immune minions (/thread-47078.html)



Meteorb: Trouble with cold+fire immune uniques with fire immune minions - raded - 02-18-2011

Is there any way to make my sorc start attacking other monsters instead of launching fireballs/meteors at a fire+cold immune monster when everything around it is fire immune? My merc doesn't always get to it right away and sometimes makes me waste all of my potions then chicken.


Meteorb: Trouble with cold+fire immune uniques with fire immune minions - Blue - 02-19-2011

If it the bot works in that sequence then I would just try having orb as the primary skill. See if that works, if it doesn't I'm sure a person well more knowledgeable in code should be able to help you. laugh:


Meteorb: Trouble with cold+fire immune uniques with fire immune minions - Jammer74 - 02-20-2011

Blue Wrote:If it the bot works in that sequence then I would just try having orb as the primary skill. See if that works, if it doesn't I'm sure a person well more knowledgeable in code should be able to help you. laugh:
your way is easier Blue, but if he wants to try something else he can use.

In your NTAttack file located D2NT31_NTBot42\D2NT\scripts\libs\common ctrl+f this next line of script
Code:
if(firstorder && NTConfig_AttackSkill[0] > 0 &&  NTA_GetResistance(target, _NTA_SkillDamage[0]) < 100 &&  me.GetSkillStatus(NTConfig_AttackSkill[0]) != 8)
and right above it put this next line of text
Code:
if(NTA_GetResistance(target, NTA_DAMAGE_COLD) > 90 && NTA_GetResistance(target, NTA_DAMAGE_FIRE) > 90 )
return 1;
this will skip all dual cold/fire immunes

if you don't want to skip a particular boss because your merc is badass and can kill him easily then just use this next line of text instead of the one right above
Code:
if((target.name != "Pindleskin") && (NTA_GetResistance(target, NTA_DAMAGE_COLD) > 90 && NTA_GetResistance(target, NTA_DAMAGE_FIRE) > 90 )
return 1;
this will not skip pindleskin if he is cold/fire dual immune. Just insert the properly spelt boss name where pindleskin is.And if you don't want to skip multiple bosses that are dual immune then use this next line of code
Code:
if((target.name != "Pindleskin || target.name != Threshsocket") && (NTA_GetResistance(target,  NTA_DAMAGE_COLD) > 90 && NTA_GetResistance(target,  NTA_DAMAGE_FIRE) > 90 )
return 1;
I hope this helps you do what you want to do


Credit goes to Evram for teaching me how to do this


Meteorb: Trouble with cold+fire immune uniques with fire immune minions - raded - 03-02-2011

Sorry for the late response to this.

By "skipping" that particular boss, will it literally walk away for the boss or will it simply focus on nearby enemies?
Code:
    NTConfig_AttackSkill[0] = 56;    // First skill. Set to 0 if you won't
    NTConfig_AttackSkill[1] = 56;    // Primary skill to boss.
    NTConfig_AttackSkill[2] = 47;    // Primary untimed skill to boss. Set to 0 if you won't
    NTConfig_AttackSkill[3] = 56;    // Primary skill to others.
    NTConfig_AttackSkill[4] = 47;    // Primary untimed skill to others. Set to 0 if you won't
    NTConfig_AttackSkill[5] = 64;    // Secondary skill in case monster is immune to primary skill. Set to 0 if you won't
    NTConfig_AttackSkill[6] = 0;    // Secondary untimed skill. Set to 0 if you won't

That's the setup that makes my meteorb sorc strongest against all enemies. Meteor is used more often than ice orb.

Code:
    NTConfig_AttackSkill[0] = 56;    // First skill. Set to 0 if you won't
    NTConfig_AttackSkill[1] = 64;    // Primary skill to boss.
    NTConfig_AttackSkill[2] = 47;    // Primary untimed skill to boss. Set to 0 if you won't
    NTConfig_AttackSkill[3] = 64;    // Primary skill to others.
    NTConfig_AttackSkill[4] = 47;    // Primary untimed skill to others. Set to 0 if you won't
    NTConfig_AttackSkill[5] = 56;    // Secondary skill in case monster is immune to primary skill. Set to 0 if you won't
    NTConfig_AttackSkill[6] = 47;    // Secondary untimed skill. Set to 0 if you won't
This forces the bot to use ice orb instead of meteor as a primary attack, but will attack dual immunes with ice orb and fireball instead of meteor and fireball. This kills everything around the dual immune monster, letting my merc go to work, but it keeps me from doing the tougher areas.


Meteorb: Trouble with cold+fire immune uniques with fire immune minions - bugme143 - 03-03-2011

it just won't attack that boss. it will focus on the other monsters in the area. If you kill them too fast, i think you may have a problem with it teleporting away too fast for your merc to do its work tho....