|
5#
![](static/image/common/ico_lz.png)
楼主 |
发表于 2016-6-24 18:02:26
|
只看该作者
对,手动开时我也重过,鼠标晃一晃能分出,bot开得太齐了。但一次我看他拿钥匙重开一次(其实门还是那个门,钥匙也没反应),bot能进。我是想让他开的时候,离点距离,这个不知在文件里能修改吗?
// Open a red portal. Mode 0 = mini ubers, mode 1 = Tristram
this.openPortal = function (mode) {
var portal,
item1 = mode === 0 ? me.findItem("pk1", 0) : me.findItem("dhn", 0),
item2 = mode === 0 ? me.findItem("pk2", 0) : me.findItem("bey", 0),
item3 = mode === 0 ? me.findItem("pk3", 0) : me.findItem("mbr", 0);
Town.goToTown(5);
Town.doChores();
if (Town.openStash() && Cubing.emptyCube()) {
if (!Storage.Cube.MoveTo(item1) || !Storage.Cube.MoveTo(item2) || !Storage.Cube.MoveTo(item3)) {
return false;
}
if (!Cubing.openCube()) {
return false;
}
transmute();
delay(1000);
portal = getUnit(2, "portal");
if (portal) {
do {
switch (mode) {
case 0:
if ([133, 134, 135].indexOf(portal.objtype) > -1 && this.doneAreas.indexOf(portal.objtype) === -1) {
this.doneAreas.push(portal.objtype);
return copyUnit(portal);
}
break;
case 1:
if (portal.objtype === 136) {
return copyUnit(portal);
}
break;
}
} while (portal.getNext());
}
}
return false;
};
// Do mini ubers or Tristram based on area we're already in
this.pandemoniumRun = function () {
var i, findLoc, skillBackup;
switch (me.area) {
case 133: // Matron's Den
Precast.doPrecast(true);
Pather.moveToPreset(133, 2, 397, 2, 2);
Attack.kill(707);
//Attack.clear(5);
Pickit.pickItems();
Town.goToTown();
break;
case 134: // Forgotten Sands
Precast.doPrecast(true);
findLoc = [20196, 8694, 20308, 8588, 20187, 8639, 20100, 8550, 20103, 8688, 20144, 8709, 20263, 8811, 20247, 8665];
for (i = 0; i < findLoc.length; i += 2) {
Pather.moveTo(findLoc[i], findLoc[i + 1]);
delay(500);
if (getUnit(1, 708)) {
break;
}
}
Attack.kill(708);
Pickit.pickItems();
Town.goToTown();
break;
case 135: // Furnace of Pain
Precast.doPrecast(true);
Pather.moveToPreset(135, 2, 397, 2, 2);
Attack.kill(706);
Pickit.pickItems();
Town.goToTown();
break;
case 136: // Tristram
Pather.moveTo(25068, 5078);
Precast.doPrecast(true);
findLoc = [25040, 5101, 25040, 5166, 25122, 5170];
for (i = 0; i < findLoc.length; i += 2) {
Pather.moveTo(findLoc[i], findLoc[i + 1]);
}
Skill.setSkill(125, 0);
this.lure(704);
Pather.moveTo(25129, 5198);
Skill.setSkill(125, 0);
this.lure(704); |
|