kolton / d2bot-with-kolbot

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

Bot attacking priority issue #499

Open franva opened 6 years ago

franva commented 6 years ago

The bot seems that attacks monsters far away rather than the ones which are closer to it.

How can we fix it?

tgats commented 6 years ago

go to your char config and find this at the very bottom of the script.

Config.Dodge = true; // Move away from monsters that get too close. Don't use with short-ranged attacks like Poison Dagger. Config.DodgeRange = 15; // Distance to keep from monsters. Config.DodgeHP = 40; // Dodge only if HP percent is less than or equal to Config.DodgeHP. 100 = always dodge. Config.BossPriority = false; // Set to true to attack Unique/SuperUnique monsters first when clearing Config.ClearType = 0xF; // Monster spectype to kill in level clear scripts (ie. Mausoleum). 0xF = skip normal, 0x7 = champions/bosses, 0 = all Config.TeleStomp = true; // Use merc to attack bosses if they're immune to attacks, but not to physical damage

and set it to ur liking.

franva commented 6 years ago

Config.ClearType = 0xF;

I want to clear all monsters, what should I use in this line of code?

Thanks

franva commented 6 years ago

hello there?

rhoxthebeast commented 6 years ago

that line of code tells you exactly what you are asking about...

"0xF = skip normal, 0x7 = champions/bosses, 0 = all"

On Tue, Jul 3, 2018 at 8:58 AM Winston Fan notifications@github.com wrote:

hello there?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kolton/d2bot-with-kolbot/issues/499#issuecomment-402167047, or mute the thread https://github.com/notifications/unsubscribe-auth/AYCsTj4VO2QejuUBTXExdQCJhyJ7Uuduks5uC3iLgaJpZM4U_bHz .

winston-fan-webjet commented 6 years ago

@rhoxthebeast

Config.ClearType=0 means kill all ? I was confused about the word "skip", I thought 0 means skipping all.

war3zlod3r commented 6 years ago

I've configured this but it doesn't seem to work for me, bot kills bosses but not normal enemies

Config.BossPriority = false; // Set to true to attack Unique/SuperUnique monsters first when clearing
Config.ClearType = 0; // Monster spectype to kill in level clear scripts (ie. Mausoleum). 0xF = skip normal, 0x7 = champions/bosses, 0 = all

Scripts.ClearAnyArea = true; // Clear any area. Uses Config.ClearType to determine which type of monsters to kill.
    Config.ClearAnyArea.AreaList = [4]; // List of area ids to clear. See sdk/areas.txt