kolton / d2bot-with-kolbot

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

Diablo Helper Problem #1680

Open Jtc9289 opened 5 years ago

Jtc9289 commented 5 years ago

So infector layout 1 (the i) seal my sorc stands pretty much right in front of the spawn when leader hits the seal. ive been tryin to move it up in line with the seal

i saw older topics with same issue but the fix didnt work for me

i tried to edit

this.infectorSeal = function () {
    this.followPath(this.infLayout === 1 ? this.starToInfA : this.starToInfB, this.sort);

    if (this.infLayout === 1) {
        delay(1);
    } else {
        Pather.moveTo(7896, 5292); // temp
    }

    if (!this.getBoss(getLocaleString(2853))) {
        throw new Error("Failed to kill Infector");
    }

    if (Config.FieldID) {
        Town.fieldID();
    }

    return true;
};

but it doesnt work

MasterofBots commented 5 years ago

I would change the move to code. when bot is running, type getMouseCoords(1); at the spot u want than change it and u will have a better life hopefully. ( Type in command menu in game )

Jtc9289 commented 5 years ago

Pather.moveTo(7896, 5292); // temp is where i wanna be

Pather.moveTo(7928, 5295); // temp is what came in kolbot

MasterofBots commented 5 years ago

Pather.moveTo(7896, 5292); // temp is where i wanna be

Pather.moveTo(7928, 5295); // temp is what came in kolbot

ok so now go into diablo script and find the seal part your looking for and change the path code

Jtc9289 commented 5 years ago

i did that this.infectorSeal = function () { this.followPath(this.infLayout === 1 ? this.starToInfA : this.starToInfB, this.sort);

if (this.infLayout === 1) {
    delay(1);
} else {
    Pather.moveTo(7896, 5292); // temp
}

if (!this.getBoss(getLocaleString(2853))) {
    throw new Error("Failed to kill Infector");
}

if (Config.FieldID) {
    Town.fieldID();
}

return true;

}; it doesn't work

Spoofzor commented 5 years ago

I might be misunderstanding your question, but looking at your code I noticed something.

If you are trying to move to that location for Infector Seal 1, you should move Pather.moveTo up 2 lines, like this:

this.infectorSeal = function () {
this.followPath(this.infLayout === 1 ? this.starToInfA : this.starToInfB, this.sort);

if (this.infLayout === 1) {
    delay(1);
        Pather.moveTo(7896, 5292); // your temp coords, move here for infLayout 1
} else {
    Pather.moveTo(7928, 5295); // original from my Diablo.js, move here for infLayout 2
}

if (!this.getBoss(getLocaleString(2853))) {
    throw new Error("Failed to kill Infector");
}

if (Config.FieldID) {
    Town.fieldID();
}

return true;
};