isid0re / SoloLeveling

The original multi-class single character leveling script for Kolbot. Blizzhackers / Kolbot from level 1 to 99. After the initial setup, the bot will operate without user involvement.

Home Page:https://buymeacoffee.com/isid0re

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trapsin missed his first respec

janinyman1 opened this issue · comments

Hi, sometimes character might fail to respec. Im not sure what happened for my trapster, but she did not respec at level 30 when she should. She started new run to diablo at level 31 and she did not use any skills. I found that she had missed his respec. Akara respec was still available in town and code said that she should respec at level 30.

I found that Quest.js has characterRespec function on line 381. I quick fixed this for my self in the following manner:

first i removed if respec.me object exist return true from start of function.

second change was:
if (me.charlvl === SetUp.respecOne || me.charlvl === SetUp.respecTwo()) {
to
if ((me.charlvl >= SetUp.respecOne && me.respec === 0) || (me.charlvl >= SetUp.respecTwo() && me.respec === 1)) {

after that trapster did his respec and started to work again. No idea if i broken something with that, but just let you know this very rare issue @isid0re.

Thanks for awesome project. It has been very awesome to examine the code and etc.

in fact my second Witchyzon amazon had missed also his respec. Noticed it at level 31. I do not have edited any code except that quickfix. I already reverted it, because i noticed that in nightmare it try to respec. Seems that me.respec is count of open respecs from quests?

Please update to the latest push. I've added a call in towncheck to trigger respec and not be dependent on external factors to call townchecks

Atleast all my new chars have used their first respect on right level after that fix. Amazon, barbarian, paladin, sorc and necro.