kolton / d2bot-with-kolbot

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

No baal/helper/chanter!?!? #1743

Open BotWaldo opened 5 years ago

BotWaldo commented 5 years ago

fairwarning probably not the right place to post this but who cares :) OK so, I have literally not left my computer once I got my hands on this program. Well done and I will be donating to this.

With that being said, I wanted to make a chanter for some time and I had the FG to get the 10 skillers i needed to get a lvl 40 fire enchanter going. She is fantastic! BUT I didn't want her to be JUST in normal's adding dmg to lowbies.. i wanted her to kick but making baals faster too! adding DMG to everyone (barring that they aren't fire immune).

but there wasn't any option to make her enchant anyone else other than herself and her merc naturally.

so I added the "autochant" function to the baalhelper.js function. and IT doesn't work :( fixing it now

you need to load it as: Scripts.BaalChanter = true; Config.BaalHelper.Wait = 120; // Seconds to wait for a runner to be in Throne Config.BaalHelper.KillNihlathak = false; // Kill Nihlathak before going to Throne Config.BaalHelper.FastChaos = false; // Kill Diablo before going to Throne Config.BaalHelper.DollQuit = false; // End script if Dolls (Undead Soul Killers) are found. Config.BaalHelper.KillBaal = true; // Kill Baal. If set to false, you must configure Config.QuitList or the bot will wait indefinitely. Config.BaalHelper.SkipTP = false; // Don't wait for a TP, go to WSK3 and wait for someone to go to throne. Anti PK measure. Config.Enchant.AutoChant = true; // Automatically enchant nearby players and their minions

Here is the edit I made in the txt file: If you want to save it you will need to rename it as a "BaalChanter.js"

//UPDATED BaalChanter.txt

5noop commented 5 years ago

Does it really work though ?^^ Because you copied the function but it's never called.

BotWaldo commented 5 years ago

Beep bop ... fail... you are right

BotWaldo commented 5 years ago

I've added it to the "case 1-5" so it does it before the first wave and the third wave

You are smart man! I will learn from your wisdom!

//not gooder at codering//

Does this look right ?

`
switch (this.checkThrone()) { case 1: Attack.clear(40);

        tick = getTickCount();

        Precast.doPrecast(true);

        this.autoChant();

        break;`
5noop commented 5 years ago

Yeah it does look better.

You should also remove if (Config.Enchant.AutoChant) or put it elsewhere. I would just remove it, no point in using BaalChanter if you dont chant right ?

BotWaldo commented 5 years ago

You should also remove if (Config.Enchant.AutoChant) or put it elsewhere. I would just remove it, no point in using BaalChanter if you dont chant right ?

I was leaving it in, as an on off switch... but yea it takes just as much effort to turn on BaalHelper instead of BaalChanter...

This is good! Its casting a ton now which means its DEF working. i think what I originally saw was the "precast" that was doing the normal enchant to you and your merc....

BotWaldo commented 5 years ago

Off to add this to the chaosHelper now :) thanks for your help @5noop

BotWaldo commented 5 years ago

And that was super easy to do... now there is a chanter for both :)

DiabloChanter.txt

BotWaldo commented 5 years ago

I had a thought it should enchant when I BO at the beginning of the run before they all split off and do their own little MF run to waste time. So I've added this to the BattleOrders.js... its now a BattleOrdersChant.js :) Same idea just in the right spot now

its nice to have in the chaos and baal runs incase i want to run it without a password and people join throughout the game it will chant them when they get to the specific areas. easy peasy lvl 42 enchantzy add 3K dps to all that aren't fire immune.

5noop commented 5 years ago

Btw you could simply put it in Precast. Open Precast.js, copy the autoChant function (or include enchant.js) and in the function doPrecast after case 1: // Sorceress you write:

if (me.getSkill(52, 0)) {
    this.autoChant();
}
gtoilet commented 5 years ago

sorry i didnt see this post i did something similar in the diablo and diablo helper script put this after town chores < addEventListener("chatmsg", this.chatEvent);

this.chatEvent = function (nick, msg) { if (nick !== me.name) { switch (msg) { case "bo": if (me.classid == 4) { //Barb say("get over here"); delay(1250); Precast.doPrecast(true); } break;

                }
                }
                    };

or put this instead of the precast for barb Skill.cast(52, 0, player); and change the
(me.classid == 1 ) { //Sorc and change the case "bo" to "chant"

and when you chat command bo/chant