搜索

[端游] 三国群英传OL单机六职业一键端(修订2022.1.5),WIN-XP-7-10-11通用

  [复制链接]
楼主: yuyutu320

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 04:38:39 | 显示全部楼层
办理VIP,免金币下载游戏!
//点怪
setInterval(function () {
    document.getElementsByClassName('enemy')[0].click();
}, 50);

//农场
setInterval(function () {
App.game.farming.plantAll(FarmController.selectedBerry());
App.game.farming.harvestAll();
} , 1000);


//收蛋
setInterval(function () {
App.game.breeding.hatchPokemonEgg(0)
App.game.breeding.hatchPokemonEgg(1)
App.game.breeding.hatchPokemonEgg(2)
App.game.breeding.hatchPokemonEgg(3)
} , 1000);

//副本函数
var testTime = -1;
function fb(time,boss,playe){//1
var yss;
boss=boss?boss:[0,0];
playe =playe?playe: [1,1];
if(document.getElementsByClassName("dungeon-board")[0])
document.getElementsByClassName("dungeon-board")[0].getElementsByTagName("tr")[playe[0]].getElementsByTagName("td")[playe[1]].click();

if(DungeonRunner.map.board()[boss[0]][boss[1]].type() != 4 || DungeonRunner.map.board()[playe[0]][playe[1]].hasPlayer != true) //判断boss与playe的位置
for(var i = 0; i<DungeonRunner.map.board().length;i++){//2
    for(var j=0;j<DungeonRunner.map.board()[0].length;j++){//3
       if(DungeonRunner.map.board()[i][j].type() == 4) boss = [i,j];
       if(DungeonRunner.map.board()[i][j].hasPlayer == true)playe = [i,j];
        //console.log(i,j,": [",DungeonRunner.map.board()[i][j].isVisible,DungeonRunner.map.board()[i][j].hasPlayer,DungeonRunner.map.board()[i][j].type(),"]");
    }//3
}//2
if(DungeonRunner.map.board()[playe[0]][playe[1]].type() != 2 && DungeonRunner.map.board()[playe[0]][playe[1]].type() != 4){//2
     if(boss[0] != playe[0]){
     playe[0] = playe[0] > boss[0] ? playe[0] -= 1: playe[0] += 1;
     } else if(boss[1] != playe[1] ){
     playe[1] = playe[1] > boss[1] ? playe[1] -= 1: playe[1] += 1;
     }
   
}//2
if(document.getElementsByClassName("dungeon-board")[0])
document.getElementsByClassName("dungeon-board")[0].getElementsByTagName("tr")[playe[0]].getElementsByTagName("td")[playe[1]].click();
if(DungeonRunner.map.board()[playe[0]][playe[1]].type() == 4 || document.getElementsByClassName("progress timer")[0] == undefined){
    if(document.getElementsByClassName("progress timer")[0] != undefined && document.getElementsByClassName("btn btn-danger dungeon-button")[0])
    document.getElementsByClassName("btn btn-danger dungeon-button")[0].click();
   

if(document.getElementsByClassName("progress timer")[0] == undefined){
testTime += 1;
if(testTime != time){
DungeonRunner.initializeDungeon(player.town().dungeon)//点开副本
console.log("副本完成了:",testTime,",正在打第",testTime+1,"局副本;");
} else {
console.log("副本完成了:",testTime,",完成了!");
}
}
}
if(testTime == time){clearTimeout(yss);testTime = -1;} else {yss = setTimeout(function(){fb(time,boss,playe)},50)}
}//1
//document.getElementsByClassName("city currentTown")[0].dataset.town //player.town
function dg(num1){
    var yss;
    if(document.getElementsByClassName('list-group')[1].getElementsByClassName("btn")[0] !=undefined&&document.getElementsByClassName('list-group')[1].getElementsByClassName("btn")[0].textContent == "道馆"){
        ys+=1;
        document.getElementsByClassName('list-group')[1].getElementsByClassName("btn")[0].click();
    }
    yss = setTimeout(function(){dg(num1)},500);
    if(ys == num1){
        clearTimeout(yss);
        ys = 0;
    }
}
var ys = 0;
var boss = 1;
var numAll = 0;
function lm(num1,num2){
    var yss;
    if(document.getElementsByClassName('list-group')[0].getElementsByClassName("btn")[num2-1] != undefined){
        ys+=1;
        document.getElementsByClassName('list-group')[0].getElementsByClassName("btn")[num2-1].click();
    }
    yss = setTimeout(function(){lm(num1,num2)},500);
    if(ys == num1){
        clearTimeout(yss);
        ys = 0;
    }
}
var ys = 0;
var boss = 1;
var numAll = 0;
//App.game.underground.energy  有多少体力
//Mine.rewardGrid    获得 12*25
//  document.getElementById("mineBody").getElementsByClassName("row")[0].getElementsByClassName("col-sm-1")[6].className.indexOf("rock0") > -1 判断是否挖完

//挖矿函数
/*
function wk(){
    for(var x=0;x<Mine.rewardGrid.length;x++){
        for(var y=0;y<Mine.rewardGrid[x].length;y++){  
            if(Mine.rewardGrid[x][y]){ console.log(x,y)
               // do{
                   document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
                //} while (document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].className.indexOf("rock0") == -1)
            }
        }
    }
}*/

function wk_01(x,y,yss){  
    x = x?x:0;
    y = y?y:0;   
    if(Mine.rewardGrid[x][y] && document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].className.indexOf("rock0") == -1){
        wk_02(x,y);
    }   
console.log(x,y);y++;
    yss = setTimeout(function(){wk_01(x,y,yss)},50);
    y = y > Mine.rewardGrid[0].length-1?y=0-x+x++:y;
    x %=12;
    if(/*x == Mine.rewardGrid.length ||*/ App.game.underground.energy < 10) {clearTimeout(yss);}
}

function wk_02(x,y,yss){
    if(document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].className.indexOf("rock0") == -1){
        document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
    }
    yss = setTimeout(function(){wk_02(x,y,yss)},50);
    if(document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].className.indexOf("rock0") > -1){clearTimeout(yss);}
}


//挖矿
setInterval(function () {
    wk_01();
}, 120000);



//补蛋
function autoBreeding (){
&#8195;&#8195;if(App.game.breeding.queueList().length>0)return;
&#8195;&#8195;var pokemonList = App.game.party.caughtPokemon;
  var pokemonList = pokemonList.sort(PartyController.compareBy(SortOptions.breedingEfficiency, false));
&#8195;&#8195;var visible = BreedingController.visible;
&#8195;&#8195;for(var i=0;i<pokemonList.length;i++){
&#8195;&#8195;&#8195;&#8195;if(visible(pokemonList[i])()){
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;App.game.breeding.addPokemonToHatchery(pokemonList[i]);
&#8195;&#8195;&#8195;&#8195;}else{
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;continue;
&#8195;&#8195;&#8195;&#8195;}
&#8195;&#8195;&#8195;&#8195;if(App.game.breeding.queueList().length>0)return;
&#8195;&#8195;}
}
App.game.breeding.hatchPokemonEgg = function (index) {
        const egg = this._eggList[index]();
        const hatched = egg.hatch();
        if (hatched) {
            this._eggList[index](new Egg());
            this.moveEggs();
            if (this.queueList().length) {
                const nextEgg = this.createEgg(this.queueList.shift());
                this.gainEgg(nextEgg);
                if (!this.queueList().length) {
                    Notifier.notify({
                        message: 'Hatchery queue is empty',
                        type: NotificationConstants.NotificationOption.success,
                        timeout: 1e4,
                        sound: NotificationConstants.NotificationSound.empty_queue,
                        setting: NotificationConstants.NotificationSetting.empty_queue,
                    });
                }
            }
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;autoBreeding ();
        }
}

声明

1.本站资源来源于网络,本站不研究无任何技术支持!仅供自行学习交流之用,请勿用于商业用途!

2.一切网民在进入热血侠主页及各层页面时已经仔细看过并完全同意本站站务区内发布的免责声明

3.本站内容如若侵犯到您的权益,请通过本站提供的联系方式联系我们,我们会尽快处理!

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 04:38:56 | 显示全部楼层

精品收藏中

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 05:58:39 | 显示全部楼层
//点怪
setInterval(function () {
    document.getElementsByClassName('enemy')[0].click();
}, 50);

//农场
setInterval(function () {
App.game.farming.plantAll(FarmController.selectedBerry());
App.game.farming.harvestAll();
} , 1000);


//收蛋
setInterval(function () {
App.game.breeding.hatchPokemonEgg(0)
App.game.breeding.hatchPokemonEgg(1)
App.game.breeding.hatchPokemonEgg(2)
App.game.breeding.hatchPokemonEgg(3)
} , 1000);

//副本函数
var testTime = -1;
function fb(time,boss,playe){//1
var yss;
boss=boss?boss:[0,0];
playe =playe?playe: [1,1];
if(document.getElementsByClassName("dungeon-board")[0])
document.getElementsByClassName("dungeon-board")[0].getElementsByTagName("tr")[playe[0]].getElementsByTagName("td")[playe[1]].click();

if(DungeonRunner.map.board()[boss[0]][boss[1]].type() != 4 || DungeonRunner.map.board()[playe[0]][playe[1]].hasPlayer != true) //判断boss与playe的位置
for(var i = 0; i<DungeonRunner.map.board().length;i++){//2
    for(var j=0;j<DungeonRunner.map.board()[0].length;j++){//3
       if(DungeonRunner.map.board()[i][j].type() == 4) boss = [i,j];
       if(DungeonRunner.map.board()[i][j].hasPlayer == true)playe = [i,j];
        //console.log(i,j,": [",DungeonRunner.map.board()[i][j].isVisible,DungeonRunner.map.board()[i][j].hasPlayer,DungeonRunner.map.board()[i][j].type(),"]");
    }//3
}//2
if(DungeonRunner.map.board()[playe[0]][playe[1]].type() != 2 && DungeonRunner.map.board()[playe[0]][playe[1]].type() != 4){//2
     if(boss[0] != playe[0]){
     playe[0] = playe[0] > boss[0] ? playe[0] -= 1: playe[0] += 1;
     } else if(boss[1] != playe[1] ){
     playe[1] = playe[1] > boss[1] ? playe[1] -= 1: playe[1] += 1;
     }
   
}//2
if(document.getElementsByClassName("dungeon-board")[0])
document.getElementsByClassName("dungeon-board")[0].getElementsByTagName("tr")[playe[0]].getElementsByTagName("td")[playe[1]].click();
if(DungeonRunner.map.board()[playe[0]][playe[1]].type() == 4 || document.getElementsByClassName("progress timer")[0] == undefined){
    if(document.getElementsByClassName("progress timer")[0] != undefined && document.getElementsByClassName("btn btn-danger dungeon-button")[0])
    document.getElementsByClassName("btn btn-danger dungeon-button")[0].click();
   

if(document.getElementsByClassName("progress timer")[0] == undefined){
testTime += 1;
if(testTime != time){
DungeonRunner.initializeDungeon(player.town().dungeon)//点开副本
console.log("副本完成了:",testTime,",正在打第",testTime+1,"局副本;");
} else {
console.log("副本完成了:",testTime,",完成了!");
}
}
}
if(testTime == time){clearTimeout(yss);testTime = -1;} else {yss = setTimeout(function(){fb(time,boss,playe)},50)}
}//1
//document.getElementsByClassName("city currentTown")[0].dataset.town //player.town
function dg(num1){
    var yss;
    if(document.getElementsByClassName('list-group')[1].getElementsByClassName("btn")[0] !=undefined&&document.getElementsByClassName('list-group')[1].getElementsByClassName("btn")[0].textContent == "道馆"){
        ys+=1;
        document.getElementsByClassName('list-group')[1].getElementsByClassName("btn")[0].click();
    }
    yss = setTimeout(function(){dg(num1)},500);
    if(ys == num1){
        clearTimeout(yss);
        ys = 0;
    }
}
var ys = 0;
var boss = 1;
var numAll = 0;
function lm(num1,num2){
    var yss;
    if(document.getElementsByClassName('list-group')[0].getElementsByClassName("btn")[num2-1] != undefined){
        ys+=1;
        document.getElementsByClassName('list-group')[0].getElementsByClassName("btn")[num2-1].click();
    }
    yss = setTimeout(function(){lm(num1,num2)},500);
    if(ys == num1){
        clearTimeout(yss);
        ys = 0;
    }
}
var ys = 0;
var boss = 1;
var numAll = 0;
//App.game.underground.energy  有多少体力
//Mine.rewardGrid    获得 12*25
//  document.getElementById("mineBody").getElementsByClassName("row")[0].getElementsByClassName("col-sm-1")[6].className.indexOf("rock0") > -1 判断是否挖完

//挖矿函数
/*
function wk(){
    for(var x=0;x<Mine.rewardGrid.length;x++){
        for(var y=0;y<Mine.rewardGrid[x].length;y++){  
            if(Mine.rewardGrid[x][y]){ console.log(x,y)
               // do{
                   document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
                //} while (document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].className.indexOf("rock0") == -1)
            }
        }
    }
}*/

function wk_01(x,y,yss){  
    x = x?x:0;
    y = y?y:0;   
    if(Mine.rewardGrid[x][y] && document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].className.indexOf("rock0") == -1){
        wk_02(x,y);
    }   
console.log(x,y);y++;
    yss = setTimeout(function(){wk_01(x,y,yss)},50);
    y = y > Mine.rewardGrid[0].length-1?y=0-x+x++:y;
    x %=12;
    if(/*x == Mine.rewardGrid.length ||*/ App.game.underground.energy < 10) {clearTimeout(yss);}
}

function wk_02(x,y,yss){
    if(document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].className.indexOf("rock0") == -1){
        document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].click();
    }
    yss = setTimeout(function(){wk_02(x,y,yss)},50);
    if(document.getElementById("mineBody").getElementsByClassName("row")[x].getElementsByClassName("col-sm-1")[y].className.indexOf("rock0") > -1){clearTimeout(yss);}
}


//挖矿
setInterval(function () {
    wk_01();
}, 120000);



//补蛋
function autoBreeding (){
&#8195;&#8195;if(App.game.breeding.queueList().length>0)return;
&#8195;&#8195;var pokemonList = App.game.party.caughtPokemon;
  var pokemonList = pokemonList.sort(PartyController.compareBy(SortOptions.breedingEfficiency, false));
&#8195;&#8195;var visible = BreedingController.visible;
&#8195;&#8195;for(var i=0;i<pokemonList.length;i++){
&#8195;&#8195;&#8195;&#8195;if(visible(pokemonList[i])()){
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;App.game.breeding.addPokemonToHatchery(pokemonList[i]);
&#8195;&#8195;&#8195;&#8195;}else{
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;continue;
&#8195;&#8195;&#8195;&#8195;}
&#8195;&#8195;&#8195;&#8195;if(App.game.breeding.queueList().length>0)return;
&#8195;&#8195;}
}
App.game.breeding.hatchPokemonEgg = function (index) {
        const egg = this._eggList[index]();
        const hatched = egg.hatch();
        if (hatched) {
            this._eggList[index](new Egg());
            this.moveEggs();
            if (this.queueList().length) {
                const nextEgg = this.createEgg(this.queueList.shift());
                this.gainEgg(nextEgg);
                if (!this.queueList().length) {
                    Notifier.notify({
                        message: 'Hatchery queue is empty',
                        type: NotificationConstants.NotificationOption.success,
                        timeout: 1e4,
                        sound: NotificationConstants.NotificationSound.empty_queue,
                        setting: NotificationConstants.NotificationSetting.empty_queue,
                    });
                }
            }
&#8195;&#8195;&#8195;&#8195;&#8195;&#8195;autoBreeding ();
        }
}

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 05:59:20 | 显示全部楼层
66666666666666666666666666666

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 05:59:42 | 显示全部楼层
精品收藏中

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 06:01:49 | 显示全部楼层
66666666666666666666666666666666666

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 06:02:03 | 显示全部楼层
精品收藏中

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 06:02:29 | 显示全部楼层
6666666666666666666666666666666666

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 06:02:42 | 显示全部楼层
精品收藏中

0

主题

233

帖子

21

金币

荣誉会员

Rank: 111Rank: 111Rank: 111

发表于 2022-1-10 06:03:07 | 显示全部楼层
办理VIP,免金币下载游戏!
6666666666666666666666666666666666666666666666
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

热血侠简介

热血侠网游单机论坛致力于为网游单机版游戏玩家提供一个网络游戏改单机版一键端下载和游戏交流分享的平台,打造全网最好的网游单机论坛,提供最全最好玩的网游单机版一键端下载。

分享本站

Copyright  ©2015-2018  热血侠网游单机论坛  Powered by Discuz!  

快速回复 返回顶部 返回列表