kolton / d2bot-with-kolbot

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

Custom Exp Getter Thing Help #408

Closed JuicyGUm closed 6 years ago

JuicyGUm commented 6 years ago

I have this code so that when i press "." or.. the period on my far right on the keyboard, it will automatically run the code that searches for and gets an exp shrine before baal. I have it working but it doesn't teleport as fast as it should.. When i run it as a bot.. the bot teleports real fast but when i run the exp runner in Map and not Leader, it doesnt teleport through the level as fast.. Idk what's the problem maybe you can figure it out lol :) This script line i put in trunk\d2bs\kolbot\tools\ToolsThread.js

    case 110: // decimal point
            Pather.useWaypoint(4);
            Precast.doPrecast(true);

            for (i = 4; i > 1; i -= 1) {
                if (Misc.getShrinesInArea(i, 15, false)) {
                    break;
                }
            }
            Town.goToTown();
            if (i === 1) {
                Town.goToTown();
                Pather.useWaypoint(5);

                for (i = 5; i < 8; i += 1) {
                    if (Misc.getShrinesInArea(i, 15, false)) {
                        break;
                    }
                }
                Town.goToTown();
            }
RfBz commented 6 years ago

cool great idea il check it out see if i can help

JuicyGUm commented 6 years ago

Ok it fixed it self somehow idk but i guess a pc restart worked

gtoilet commented 6 years ago

heres the code I stuck together searches from tome highland to blood moor

this.findx = function (nick) { var i, areas = [2,3,4,5,6,7]; Pather.useWaypoint(1);

for (i = 0 ; i < areas.length ; i += 1) { Pather.journeyTo(areas[i]);

if (Misc.getShrinesInArea(me.area, 15, false)) { //say("!shrine up at " +getArea().name + ".") Pather.makePortal(); while (!Pather.usePortal(null, me.name)); break; }

   }
                     Town.move("waypoint");

};