kolton / d2bot-with-kolbot

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

DiabloHelper error - bot leaves before Diablo spawns due to immune last seal #2571

Open Danmanjo opened 4 years ago

Danmanjo commented 4 years ago

Error in DiabloHelper (diablohelper.js #227) Diablo not found (Area: 108, Ping:125, Game: *****)

Cold and Fire sorc usually head to star early because last seal is cold/fire immune so they wait an extra 5 seconds or so for Light sorc to kill. Diablo doesn't spawn within timer so they leave which results in no Diablo kill.

I know why it's happening, but is there any way to lengthen the wait time for Diablo to appear before the bots decide it's an error that he's not spawning and they leave? Need them to stay to help kill in Hell.

facee321 commented 3 years ago

I know ur post is from 2020, but when i google this issue it pulls this post right up. My fix for it was an easy work around, I put static field as my attack if immune section. Now my fire sorc statics everything staying with the group. U could also have her use any other skill. Just something to stay with the party and not move on. That being said the real solution is to adjust the timer for how long she stays at diablo in the diablohelper.js. Sadly I don't know what line to alter.

Config.AttackSkill[0] = -1; // Preattack skill.
Config.AttackSkill[1] = 56; // Primary skill to bosses.
Config.AttackSkill[2] = 47; // Primary untimed skill to bosses. Keep at -1 if Config.AttackSkill[1] is untimed skill.
Config.AttackSkill[3] = 56; // Primary skill to others.
Config.AttackSkill[4] = 47; // Primary untimed skill to others. Keep at -1 if Config.AttackSkill[3] is untimed skill.
Config.AttackSkill[5] = 42; // Secondary skill if monster is immune to primary.
Config.AttackSkill[6] = 42; // Secondary untimed skill if monster is immune to primary untimed.