kolton / d2bot-with-kolbot

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

Leader/leecher issue: trying to get leader to last hit boss to get better mf. #1143

Open PennySTI opened 5 years ago

PennySTI commented 5 years ago

My sorc is my main character and she has the highest mf out of my 3 characters. But I cant find the command to make the other characters stop attacking at a certain % of life so that my sorc can kill the boss. Can anyone help? I was using etal before and I know there was a line in the script for that..

thanks

DarkHorseDre commented 5 years ago

AFAIK theres no feature for this in Kolbot.

I assume you're using mfhelper? you'd have to amend the attack/kill command in the script to do a if not config.leader; while target.hp >= x (attack.kill)

DarkHorseDre commented 5 years ago

I just tested and seems to work - mfhelper:

var i, target; target = getUnit(1, split); //dhd added while (target.hp / 128 * 100 > 15) { //dhd hardcode 15% stop attack print("*** DHD inside while: mob life: " + target.hp + " ***") Attack.kill(split); } horrible code but makes the point :) remove print line when done debugging