kolton / d2bot-with-kolbot

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

Going into baals room without delay after selling stuff in city? / varying messages to say to joining players? #2170

Closed loldermond closed 4 years ago

loldermond commented 4 years ago

1. hi guys. i found this for baal to clean junk before visiting him - can someone do a similar thing for diablo with like a different portalnumber?

if (Config.Baal.KillBaal) { Town.doChores(); Town.move("portalspot"); Pather.usePortal(131, null); if (Config.PublicMode) { say(Config.Baal.BaalMessage); }

2. i got Config.DroppedItemsAnnounce.Enable = true and 5,7,8 in it. why doesn't he call out uniques dropping from monsters by name though? is it only for items you drop yourself?

3. what symbols to put between messages for having a pool of different ones when someone for example gains a level in party?

thanks guys and girlguys

Fa-b commented 4 years ago

1.

Pather.usePortal(108, null); // any blue Portal that leads to Chaos Sanctuary

2. It's for items your bot drops after identifying them. What sense does it make for your leechers to know that there is some set ring (probably Cathan's Seal) where you killed mephisto before starting your Chaos run?

  1. ["Message 1", "Message 2", "Message 3"]; // comma
loldermond commented 4 years ago

Put it in between here somewhere?

if (Config.PublicMode) { say(Config.Diablo.DiabloMsg); }

this.diabloPrep(); Attack.kill(243); // Diablo Pickit.pickItems();

Pather.teleport = Pather._teleport;

return true; }

like

if (Config.PublicMode) { say(Config.Diablo.DiabloMsg); } > Town.doChores(); Town.move("portalspot"); Pather.usePortal(108, null); this.diabloPrep(); Attack.kill(243); // Diablo Pickit.pickItems();

Pather.teleport = Pather._teleport;

return true; }

?

loldermond commented 4 years ago

i figured it out, [ ] for talking after baal

InterestingIndeed commented 4 years ago

My guess: you need some brackets

Config.LastMessage = ["Baal is a dead man"];

loldermond commented 4 years ago

thanks. you or anyone can help out where and how exactly to set the text for using portal and selling junk before doing dia?

have a mild winterday

Fa-b commented 4 years ago

Why don't you try as you suggested?

InterestingIndeed commented 4 years ago

When exactly do you want your char to sell stuff? Remind yourself that things that trigger Baal and Diablo are different (clearing throne vs activating seals).

If you want your char to do town chores before Dia appears, i would put the "town chores" in before opening the last seals. This can be found in the baal.js script in line 467:

Attack.clear(30, 0, false, this.sort);
    this.vizierSeal();
    this.seisSeal();
    Precast.doPrecast(true);
    this.infectorSeal();

so it looks like this:

Attack.clear(30, 0, false, this.sort);
    this.vizierSeal();
    this.seisSeal();
Town.doChores();
Town.move("portalspot");
Pather.usePortal(108, null);
    Precast.doPrecast(true);
    this.infectorSeal();

the way you suggested will open a portal right before diablo spawns (all seals have been openend).

loldermond commented 4 years ago

thanks to all. wanted to ensure not to mess up

loldermond commented 4 years ago

bot is pretty much saying just the first sentence. how can i randomize him using them all ("sentence1","sentence2")?

ps where in d2botchannel.dbj do i configure to announce games in channel??

loldermond commented 4 years ago

if (Config.Baal.KillBaal) { Town.doChores(); Town.move("portalspot"); Pather.usePortal(131, null); if (Config.PublicMode) { say(Config.Baal.BaalMessage); } Pather.moveTo(15090, 5008); delay(5000); Precast.doPrecast(true); while (getUnit(1, 543)) { delay(500); }

if i change delay(5000) or delay(500) to 3000 / 300, would that be 3 seconds? or how to make him go in faster after selling stuff?

InterestingIndeed commented 4 years ago
  1. Dont change the topic every time a question is answered, that makes it hard for people who have the same question to find the post.
  2. yes, that should make it shorter.
  3. you can always try what your code does, its a good way to learn.
loldermond commented 4 years ago
  1. it still covers all the questions asked
  2. thanks
  3. okay
Fa-b commented 4 years ago

Usually the last few comments are the answer to the original question. if a question is answered, mark the issue as solved and/or close it. For a new question open a new issue. Edit: As a sidenote... since I answered to one of your questions, you‘re spamming my email folder too.

poisas commented 3 years ago

hi guys. i found this for baal to clean junk before visiting him - can someone do a similar thing for diablo with like a different portalnumber?

if (Config.Baal.KillBaal) { Town.doChores(); Town.move("portalspot"); Pather.usePortal(131, null); if (Config.PublicMode) { say(Config.Baal.BaalMessage); }

thanks man, i was looking for this, issue is that default baal script is stupid, because if you run default ball.js it picks lots of magic rares from minions acording pickit and it goes to kill ball kills ball throws message in console trying to make room for "Shako" and quits game... lol.. and for exampe if there is some more special loot you want to pick how to force bot to pick them, or folowers to pick them before leader quits game ?