Open croboy opened 5 years ago
It's untested but you can try this:
if (unit.classid === 707 && unit.hp / 128 * 100 < 30 && me.getSkill(112, 1) && me.getSkill(113, 1)) {
attackSkill = 112;
aura = 113;
}
Put it in Paladin.js (under libs/common/Attacks) in the function doAttack just before that line: result = this.doCast(unit, attackSkill, aura);
Dude, you are a legend. Gonna add it to my script now and see how it goes.
Hey guys
Just started D2 again, and setup a botting Pally. All is good, he mules items fine, and I've set him to get Organs for me, but he struggles to kill Lilith.
I've set a custom attack for her so instead of using Hammer/Conc my pally uses Smite/Fana, but i only have 25% Crushing blow on my Goblin toe boots, the rest of the gear is a Hammerdin Setup.
Is there a way to add a line into Attack.js so that when Lilith's life is below 30% to switch to Hammer/Concentration again. Im only doing 900dmg with Smite and fanaticism and its reaching the 300 max attack limit. I am gonna make it a 500 attack limit but still would be better if I could add a line to switch from smite to hammers when her life is <30%.
Can anyone help me with this? I just need a bit of help on what code to write to set skill if condition is met.
Any help appreciated