资讯详情

山海经异变脚本

"ui";

const storage = storages.create("Coolxx");

const isShow = storage.get("show",false)

const isLSJS = storage.get("isLSJS",false)

const isYBXYZ = storage.get("isYBXYZ",false)

const isJY = storage.get("isJY",false)

const isYB = storage.get("isYB",false)

const isHCDW= storage.get("isHCDW",false)

const isLSLQ= storage.get("isHCDW",false)

const loopNum = storage.get("loopNum",100)

const sleepTime = storage.get("sleepTime",10)

const isVip = storage.get("isVip",false)

const playName = storage.get("playName","")

const playlists = storage.get("playlists","")

const isAnti = storage.get("anti",true)

const model = storage.get("model",0)

家园坐标=[[2,1079],

[2,1159],

[2,1239],

[2,1319],

[2,1399],

[2,1479],

[2,1559],

[2,1639],

[2,1719],

[92,1079],

[92,1159],

[92,1239],

[92,1319],

[92,1399],

[92,1479],

[92,1559],

[92,1639],

[92,1719],

[182,1079],

[182,1159],

[182,1239],

[182,1319],

[182,1399],

[182,1479],

[182,1559],

[182,1639],

[182,1719],

[272,1079],

[272,1159],

[272,1239],

[272,1319],

[272,1399],

[272,1479],

[272,1559],

[272,1639],

[272,1719],

[362,1079],

[362,1159],

[362,1239],

[362,1319],

[362,1399],

[362,1479],

[362,1559],

[362,1639],

[362,1719],

[452,1079],

[452,1159],

[452,1239],

[452,1319],

[452,1399],

[452,1479],

[452,1559],

[452,1639],

[452,1719],

[542,1079],

[542,1159],

[542,1239],

[542,1319],

[542,1399],

[542,1479],

[542,1559],

[542,1639],

[542,1719]]

家园地图的颜色=[-13456514,

-8335881,

-13000322,

-12406648,

-12405111,

-13388931,

-13848450,

-12345740,

-15686290,

-12533617,

-13060217,

-13261449,

-11879546,

-13454467,

-13519747,

-3698648,

-12271728,

-12469106,

-13520003,

-7101308,

-12929408,

-13520254,

-14766729,

-12406390,

-12011912,

-13979523,

-12008817,

-12337521,

-11813754,

-12666485,

-11420279,

-11813754,

-12666493,

-13191551,

-13979271,

-13979271,

-11812465,

-12074610,

-12469106,

-12206972,

-11551865,

-12600700,

-13060994,

-13519233,

-11615599,

-11878258,

-7313628,

-12534900,

-12666496,

-12273018,

-13388419,

-11489157,

-13650819,

-11615599,

-11484783,

-12074610,

-9063537,

-12928123,

-12666496,

-13650306,

-12469627,

-9720709,

-13454210];

var 动物坐标=[

[179,443],

[179,598],

[179,753],

[179,908],

[179,1063],

[179,1218],

[179,1373],

[179,1528],

[179,1683],

[284,443],

[284,598],

[284,753],

[284,908],

[284,1063],

[284,1218],

[284,1373],

[284,1528],

[284,1683],

[389,443],

[389,598],

[389,753],

[389,908],

[389,1063],

[389,1218],

[389,1373],

[389,1528],

[389,1683],

[494,443],

[494,598],

[494,753],

[494,908],

[494,1063],

[494,1218],

[494,1373],

[494,1528],

[494,1683],

[599,443],

[599,598],

[599,753],

[599,908],

[599,1063],

[599,1218],

[599,1373],

[599,1528],

[599,1683],

[704,443],

[704,598],

[704,753],

[704,908],

[704,1063],

[704,1218],

[704,1373],

[704,1528],

[704,1683],

[809,443],

[809,598],

[809,753],

[809,908],

[809,1063],

[809,1218],

[809,1373],

[809,1528],

[809,1683]

];

var 动物颜色=[-3355444,

    -4604003,

    -7706036,

    -4405846,

    -4668771,

    -5129322,

    -3553101,

    -6182010,

    -9471133,

    -3355444,

    -10986831,

    -5129319,

    -4932186,

    -5458287,

    -3223106,

    -5065839,

    -5393521,

    -5262949,

    -3355444,

    -8087872,

    -5787501,

    -5591405,

    -3748421,

    -3288121,

    -3354439,

    -6054014,

    -4146264,

    -3355444,

    -15131346,

    -4802140,

    -3815494,

    -5854575,

    -3880010,

    -2961474,

    -4146263,

    -5922166,

    -3355444,

    -614474,

    -4341839,

    -3880515,

    -4341334,

    -4208471,

    -2829375,

    -6054014,

    -3355444,

    -3777471,

    -4604759,

    -6182263,

    -3748168,

    -3812933,

    -2764612,

    -5852793,

    -3748947,

    -3355444,

    -4144208,

    -6798031,

    -5853805,

    -7495798,

    -4604510,

    -5260908,

    -4012121,

    -3354439,

    -6248057];

function 天降洪福(){

    var zmgxzimg = captureScreen();

    var 天降洪福p=images.findMultiColors(zmgxzimg,"#fa6048",[[15,7,"#fffdcf"]],{region: [170,453,770,1213]});

    print("天降洪福p"+天降洪福p)

    if(天降洪福p !=null){

        newclickp(天降洪福p);

        var lqimg = captureScreen();

        var lqup = images.findMultiColors(lqimg,"#ffca7b",[[53,-2,"#ffcc7c"],[114,-1,"#ffcb7c"],[163,1,"#ffca7b"],[167,28,"#f7cc76"],[-66,49,"#f7cc76"]]);

        newclickp(lqup);

        关闭弹窗();

        newclickp(lqup);

   

    }

   

}

 

function 宗门贡献值(){

    var zmgxzimg = captureScreen();

    var zmgxzp = images.findMultiColors(zmgxzimg,"#1fedb4",[[16,-31,"#e4b878"],[15,-5,"#0cbb94"],[10,12,"#2bffc2"],[-27,10,"#2affc0"],[-42,11,"#017b6f"],[-5,24,"#ce9650"],[22,13,"#a79458"],[22,-10,"#d1ad68"]]);

    newclickp(zmgxzp)

}

 

function 关闭弹窗(){

    sleep(1000)

    var img = captureScreen();

    var p = images.findMultiColors(img, "#ededed",[[0,24,"#ededed"],[0,41,"#ededed"],[-2,55,"#ededed"],[0,68,"#ededed"],[3,81,"#ededed"],[4,128,"#ededed"],[36,-12,"#ededed"],[3,115,"#ededed"],[-4,149,"#ededed"],[30,43,"#3c3c3c"],[33,46,"#363636"],[35,38,"#3f3f3f"]]);

    if (p != null){

        //关闭分享页面

        toast("关闭分享页面")

        关闭分享页面()

    }else{

        //关闭广告

        toast("关闭广告")

        关闭广告()

         

    }

   

}

 

function 关闭分享页面(){

    print("关闭分享页面")

    sleep(5000)

    back()

    sleep(1000)

    var img = captureScreen();

    var p = images.findMultiColors(img,"#576b95",[[48,-3,"#576b95"],[59,16,"#576b95"],[42,-19,"#576b95"],[61,-14,"#576b95"],[93,-21,"#ffffff"],[-74,-23,"#ffffff"]]);

    if(p != null){

        newclickp(p);

        关闭分享页面()

    }

}

var flag =false

function 关闭广告(){

    print("开始观看广告")

    if(flag==true){

        sleep(10000)

    }else{

        sleep(32000)

    }

    var img = captureScreen();

    var p = images.findMultiColors(img,"#ffffff",[[15,-12,"#ffffff"],[16,-25,"#ffffff"],[4,-24,"#ffffff"],[51,-31,"#ffffff"],[68,-10,"#ffffff"],[56,-18,"#ffffff"],[51,-20,"#ffffff"],[57,-31,"#ffffff"]]);

    print("关闭广告"+p)

    newclickp(p)

    var shibimg = captureScreen();

    var shibp = images.findMultiColors(shibimg, "#576a94",[[1,14,"#5f7199"],[-15,14,"#576a94"],[-24,4,"#576a94"],[-30,-3,"#576a94"],[-31,21,"#f6f7fa"],[47,15,"#576a94"],[34,-33,"#ffffff"]]);

    if (shibp!=null){

        newclickp(shibp);

        sleep(500)

        flag=true

        关闭广告()

    }else{

        //判断是否关闭成功

        var pdimg = captureScreen();

        var p = images.findMultiColors(pdimg,"#ffffff",[[15,-12,"#ffffff"],[16,-25,"#ffffff"],[4,-24,"#ffffff"],[51,-31,"#ffffff"],[68,-10,"#ffffff"],[56,-18,"#ffffff"],[51,-20,"#ffffff"],[57,-31,"#ffffff"]],{

            region: [863,22,210,155]

        });

       print("判断是否关闭成功"+p)

        if(  p != null){

        flag=true

        关闭广告()

       }

    }

   

    flag =false

    sleep(500)  

    宗门贡献值()

}

 

function newclick(x, y){

    click(x,y);

    sleep(1000)

}

function newclickp(p){

    if(p != null){

        click(p.x,p.y);

        sleep(1000)

    }

   

}

function 离线收益(){

    var img = captureScreen();

    var p = images.findMultiColors(img, "#ffca7b",[[3,27,"#ffe08f"],[-52,28,"#fce18f"],[-52,-4,"#ffca7b"],[-71,-18,"#ffca7b"]]);

    print("离线收益")

    while (p != null){

        newclickp(p)

        关闭弹窗()

        sleep(1000)

        newclickp(p)

        sleep(1000)

        var img = captureScreen();

         p = images.findMultiColors(img, "#ffca7b",[[3,27,"#ffe08f"],[-52,28,"#fce18f"],[-52,-4,"#ffca7b"],[-71,-18,"#ffca7b"]]);

       

    }

   

   

}

 

function 灵石获取加速(){

    //进入灵石加速页面  

    var img = captureScreen();

    var p =images.findMultiColors(img, "#fefede",[[29,8,"#feffd6"],[17,18,"#ffffe9"],[0,17,"#c9a76e"],[3,12,"#853d01"],[-9,15,"#965108"],[31,16,"#bd9356"]]);

    if(p==null){

        print("加速中"+p)

        var p =images.findMultiColors(img, "#745321",[[63,4,"#745221"],[-56,8,"#745221"],[-56,17,"#745221"],[60,15,"#745221"]],{region: [1,1350,180,200]});

         print("加速中2"+p)

    }

    print(p)

    newclickp(p)

    //免费加速

   

    var img = captureScreen();

    var p = images.findMultiColors(img,"#eaad2b",[[-56,-10,"#eaad2b"],[-153,-6,"#eebb40"],[-151,52,"#efc65d"],[-82,77,"#fee273"],[-24,81,"#feed79"],[72,77,"#feea75"],[144,78,"#fee674"],[174,35,"#f3c147"],[30,123,"#f8efd2"]]);

   

    while (p !=null){

    print(p)

    newclick(p.x,p.y)

   //立即获取

   var imgljhq = captureScreen();

   var ljhqp = images.findMultiColors(imgljhq,"#ffca7b",[[56,-4,"#ffcc7d"],[5,64,"#fff8a2"],[69,70,"#fffba6"],[20,103,"#f8efd2"],[-275,28,"#6bd699"],[-109,95,"#f8efd2"],[141,98,"#f8efd2"]]);

    if (ljhqp !=null){

        newclick(ljhqp.x,ljhqp.y)

        sleep(1000)

        关闭弹窗()

    }

 

    var img = captureScreen();

    var p = images.findMultiColors(img,"#eaad2b",[[-56,-10,"#eaad2b"],[-153,-6,"#eebb40"],[-151,52,"#efc65d"],[-82,77,"#fee273"],[-24,81,"#feed79"],[72,77,"#feea75"],[144,78,"#fee674"],[174,35,"#f3c147"],[30,123,"#f8efd2"]]);

     

    }

    //退出灵石加速

    var tcimg = captureScreen();

    var tcp = images.findMultiColors(tcimg,"#353a46",[[-16,-15,"#474d59"],[16,-15,"#323743"],[-18,17,"#323742"],[13,21,"#333945"],[-2,-23,"#c4d2e1"],[-27,-13,"#d2dfec"],[-32,5,"#c5d4e3"],[-9,20,"#96a4b5"],[19,6,"#a1b3c6"],[9,-29,"#c1d0df"]]);

    newclick(tcp.x,tcp.y)

   

   

}

 

function 异兽蛋领取(){

    //进入异兽蛋页面

    var jrimg = captureScreen();

    var jrp = images.findMultiColors(jrimg,"#e4c76f",[[18,4,"#e4c76f"],[7,-8,"#e1c369"],[-2,-22,"#dbba5b"],[-14,-8,"#e0c066"],[-17,7,"#e9d078"],[-19,15,"#c4a65c"],[-6,19,"#e2cc7f"],[8,5,"#8e692f"],[29,9,"#89622a"],[34,8,"#e8cd77"]]);

    newclick(jrp.x,jrp.y)

    var jrimg = captureScreen();

    var jrp = images.findMultiColors(jrimg,"#fff0b1",[[39,1,"#f0bc41"],[53,26,"#dba536"],[58,69,"#ce882a"],[40,89,"#b0570d"],[11,97,"#c9871c"],[-31,88,"#b3580c"],[-35,71,"#ad5210"]]);

    var i=0;

    while (jrp != null && i<5){

        newclick(jrp.x,jrp.y)

        关闭弹窗()

        sleep(1000)

        newclick(jrp.x,jrp.y)

        var jrimg = captureScreen();

        var jrp = images.findMultiColors(jrimg,"#fff0b1",[[39,1,"#f0bc41"],[53,26,"#dba536"],[58,69,"#ce882a"],[40,89,"#b0570d"],[11,97,"#c9871c"],[-31,88,"#b3580c"],[-35,71,"#ad5210"]]);

        i++;

    }

    //退出

    var tcimg = captureScreen();

    var tcp = images.findMultiColors(tcimg,"#353a46",[[-9,-13,"#343945"],[23,-15,"#353a46"],[-13,19,"#323743"],[16,16,"#353a46"],[6,-22,"#c2d1e0"],[-26,-1,"#c9d7e6"],[-2,27,"#aabcd0"],[24,1,"#b6c4d3"]]);

    newclickp(tcp)

   

}

 

function 异变幸运值领取(){

    //进入异变

    var jrimg = captureScreen();

    var jrp = images.findMultiColors(jrimg,"#be9642",[[15,11,"#c39c46"],[-136,3,"#d2b683"],[145,-13,"#dfc995"],[-36,195,"#cbe0f1"],[43,195,"#b1c4d3"],[-51,131,"#cbaa6c"],[82,123,"#bd9965"],[9,210,"#aac3d7"]]);

    newclick(jrp.x,jrp.y)

    //获取

    var hqimg = captureScreen();

    var hqp = images.findMultiColors(hqimg,"#91d086",[[23,0,"#91d086"],[107,-27,"#eb4618"],[108,-16,"#f24b1d"],[110,-63,"#c49b72"]]);

    newclick(hqp.x,hqp.y)

    sleep(2000);

    var tacimg = captureScreen();

    var tacp = images.findMultiColors(tacimg,"#ffffff",[[-10,-12,"#ffffff"],[-12,12,"#fcfcfb"],[14,11,"#ffffff"],[11,-12,"#eaeaea"],[2,0,"#ffffff"]]);

    if(tacp!= null){

        newclick(tacp.x,tacp.y)

    }

   

    //签到

    var qdimg = captureScreen();

    var qdp = images.findMultiColors(qdimg,"#8ecd84",[[46,-2,"#8ecd84"],[97,-5,"#8ecd84"],[145,0,"#8ecd84"],[66,66,"#62a26c"],[201,-30,"#f34b1d"]]);

    newclickp(qdp);

    //观看广告

    var ggimg = captureScreen();

    var ggp = images.findMultiColors(ggimg,"#8ecd84",[[51,-4,"#88c781"],[98,-2,"#90cf85"],[184,-259,"#f34c1e"]]);

    while (ggp !=null ){

        newclickp(ggp);

        sleep(500)

        var gglqimg = captureScreen();

        var gglqp = images.findMultiColors(gglqimg,"#853011",[[-13,-18,"#82c17e"],[9,-33,"#8ac982"],[223,-281,"#ef471a"],[16,-30,"#88c781"],[27,-12,"#85411e"]]);

        print("广告时间"+gglqp)

        if(gglqp ==null){

            关闭弹窗();

            sleep(500)

        }else{

            sleep(31000)

        }

        for ( i=0;i< 4;i++){

        var fximg = captureScreen();

        var fxp = images.findMultiColors(fximg,"#8ecd84",[[39,-1,"#8ecd84"],[75,-7,"#88c781"],[122,-7,"#8ecd84"],[167,16,"#87c680"],[202,-478,"#f34c1e"],[203,-460,"#f34b1c"]]);

            if(fxp!=null){

                newclickp(fxp);

                关闭弹窗()

                sleep(500)

            }

    }

        var ggimg = captureScreen();

        var ggp = images.findMultiColors(ggimg,"#8ecd84",[[51,-4,"#88c781"],[98,-2,"#90cf85"],[184,-259,"#f34c1e"]]);

       

    }

    //退出

    sleep(500)

    var tcimg = captureScreen();

    var tcp = images.findMultiColors(tcimg,"#353a46",[[13,-13,"#353a46"],[-15,-15,"#353a46"],[-19,14,"#313642"],[13,15,"#353a46"],[24,-1,"#9fb3c6"],[9,-27,"#bccddc"],[-31,-9,"#ccdae8"],[-8,24,"#a4b7cd"],[22,13,"#94a9bd"]]);

    newclickp(tcp);

    sleep(500)

    //退出2

    var tcimg2 = captureScreen();

    var tcp2 = images.findMultiColors(tcimg2,"#353a46",[[-20,-13,"#353a46"],[13,-13,"#323642"],[12,17,"#353a46"],[-22,15,"#bccdde"],[-37,-6,"#d0ddea"],[-20,-36,"#d9e5f2"],[14,-27,"#bccbdb"],[20,6,"#a0b3c7"],[16,32,"#8ea3b7"],[-35,23,"#a9bdd3"]]);

    newclickp(tcp2);

}

 

function 灵石领取(){

    print("请打开商城并把把红色拉到最后")

    sleep(5000)

    var flag = true;

    while (flag){

    var lslqimg = captureScreen();

    var lslqp = images.findMultiColors(lslqimg,"#e9ab5c",[[0,31,"#db9e56"],[-38,53,"#d49752"],[15,-1097,"#f24b1c"],[10,-1113,"#f0491b"]]);

    newclickp(lslqp);

    //领取

    var lqimg = captureScreen();

    var lqp = images.findMultiColors(lqimg,"#ffcb7c",[[111,-2,"#ffd080"],[115,40,"#ffe08f"],[34,61,"#fff7a1"],[95,59,"#ffe492"],[-102,32,"#ffdf8e"],[165,-216,"#f24c1e"]]);

    if(lqp == null){

        flag=false;

    }else{

        newclickp(lqp);

        关闭弹窗()

        sleep(500)

        newclickp(lqp);

    }

   

    }

   

}

 

function 家园(){

    //进入家园

    var jrimg = captureScreen();

    var jrp = images.findMultiColors(jrimg,"#643708",[[21,-48,"#f97930"],[-25,-32,"#eb6c2d"],[-17,28,"#865005"],[27,23,"#85500a"],[-2,13,"#774307"],[-32,-26,"#eb6c2d"],[18,-52,"#f7772f"]]);

    newclickp(jrp);

    //家园采集收益

    var cjsyimg = captureScreen();

    var cjsyp = images.findMultiColors(cjsyimg,"#a27e2f",[[77,1,"#b58d32"],[171,0,"#b58d32"],[293,1,"#91732b"],[428,0,"#5c4c22"]]);

    while (cjsyp != null){

        newclickp(cjsyp);

    }

    sleep(500)

    //免费升级

    免费升级()

    //关闭菜单

    var cdimg = captureScreen();

    var cdp = images.findMultiColors(cdimg,"#fffecc",[[-3,-23,"#fffcd6"],[4,-25,"#fffdd8"],[9,-6,"#fffac4"],[-9,-5,"#fffac3"],[-18,-7,"#efdf9c"],[18,-9,"#fffbd0"]]);

    newclickp(cdp);

}

 

function 免费升级(){

    var mfsjimg = captureScreen();

    var mfsjp = images.findMultiColors(mfsjimg,"#ebaf2e",[[-510,222,"#fff093"]]);

    while (mfsjp != null){

        newclickp(mfsjp);

        关闭弹窗()

        sleep(1000)

        newclickp(mfsjp);

        var mfsjimg = captureScreen();

        var mfsjp = images.findMultiColors(mfsjimg,"#ebaf2e",[[-510,222,"#fff093"]]);

       

    }

}

function 合成动物(){

   var 合成动物标志=true

    for(i=0;i<3;i++){

        print("合成动物标志1"+合成动物标志)

if(合成动物标志){

    有动物的坐标=[];

    for (var p in 动物坐标) {

        合成动物标志=false

    var img = captureScreen();

   if(动物颜色[p] !=images.pixel(img, 动物坐标[p][0], 动物坐标[p][1]) ){

        天降洪福()

        有动物的坐标.push(动物坐标[p]);

        press(动物坐标[p][0], 动物坐标[p][1], 1000)

        //查找上边框

        var sbkimg = captureScreen();

        var sbkp = images.findMultiColors(sbkimg,"#fff6ba",[[-35,2,"#fff6b8"],[-58,-2,"#fff6b9"],[42,-3,"#fff5b8"],[68,-4,"#fff089"],[17,-1,"#fff6b9"]]);

       //print("边框位置"+sbkp)

        if(sbkp !=null){

            swipe(动物坐标[p][0], 动物坐标[p][1], sbkp.x, sbkp.y, 500)

            合成动物标志=true

        }else{

            查找下边框

            var xbkp = images.findMultiColors(sbkimg,"#fff6ba",[[35,3,"#fff6b7"],[64,3,"#fff6b7"],[-25,1,"#fff6ba"],[-47,3,"#fff6b7"],[3,-2,"#fff6b6"],[37,0,"#fff6ba"],[52,0,"#fff6ba"]]);

           // print("边框位置"+xbkp)

            if(xbkp!=null){

                swipe(动物坐标[p][0], 动物坐标[p][1], xbkp.x, xbkp.y, 500)

                合成动物标志=true

             }

         }

        }

        sleep(500)

        免费升级()

    }

    }

}

}

 

function 异变(){

    var ybflag=true;

    while (ybflag){

    合成动物()

    //进入异变

    var jrimg = captureScreen();

    var jrp = images.findMultiColors(jrimg,"#be9642",[[15,11,"#c39c46"],[-136,3,"#d2b683"],[145,-13,"#dfc995"],[-36,195,"#cbe0f1"],[43,195,"#b1c4d3"],[-51,131,"#cbaa6c"],[82,123,"#bd9965"],[9,210,"#aac3d7"]]);

    newclick(jrp.x,jrp.y)

    //点击异变

    var ybimg = captureScreen();

    var ybp = images.findMultiColors(ybimg,"#eeba3d",[[-92,1,"#edb739"],[-135,-3,"#f2bf45"],[99,-3,"#f2bf45"],[148,5,"#ebb132"],[-24,104,"#feef79"],[-20,153,"#f8efd2"],[38,150,"#f8efd2"]]);

    if(ybp ==null){

        ybflag=false

        break

    }

    newclickp(ybp)

    sleep(500)

    //立即异变

    var ljybimg = captureScreen();

    var ljybp = images.findMultiColors(ljybimg,"#ffd282",[[60,-3,"#ffd989"],[-47,-1,"#ffd383"],[-55,75,"#fffba6"],[42,73,"#fffba6"],[-26,111,"#f8efd2"],[28,111,"#f8efd2"],[-75,113,"#f8efd2"],[-202,43,"#f8efd2"]]);

        if(ljybp !=null){

            newclickp(ljybp)

            关闭弹窗()

            var ybimg = captureScreen();

            var ybp = images.findMultiColors(ybimg,"#eeba3d",[[-92,1,"#edb739"],[-135,-3,"#f2bf45"],[99,-3,"#f2bf45"],[148,5,"#ebb132"],[-24,104,"#feef79"],[-20,153,"#f8efd2"],[38,150,"#f8efd2"]]);

            newclickp(ybp)

        }

       

       

        var qdybimg = captureScreen();

        var qdybp = images.findMultiColors(qdybimg,"#ffd383",[[71,3,"#ffca7b"],[127,3,"#ffca7b"],[149,44,"#f7cc76"],[71,63,"#fef29b"],[-21,72,"#fffba6"],[-46,48,"#ffeb99"],[-39,19,"#ffca7b"],[-25,105,"#f8efd2"],[54,104,"#f8efd2"],[27,37,"#bb0000"]]);

       while (qdybp==null){

        sleep(500)

        var qdybimg = captureScreen();

        qdybp = images.findMultiColors(qdybimg,"#ffd383",[[71,3,"#ffca7b"],[127,3,"#ffca7b"],[149,44,"#f7cc76"],[71,63,"#fef29b"],[-21,72,"#fffba6"],[-46,48,"#ffeb99"],[-39,19,"#ffca7b"],[-25,105,"#f8efd2"],[54,104,"#f8efd2"],[27,37,"#bb0000"]]);

     

       }

        print("异变确认"+qdybp)

        newclickp(qdybp)

        免费升级()

       

   

 

}

}

ui.statusBarColor("#1495E7")

ui.layout(

    <frame>

            <vertical>

                <appbar>

                    <toolbar id="toolbar" bg="#1495E7"  title="一起来养猪助手"></toolbar>

                </appbar>

                <ScrollView>

                <vertical>

                    <card w="*" h="70" margin="10 5" cardCornerRadius="2dp" cardElevation="1dp" foreground="?selectableItemBackground">

                        <horizontal gravity="center_vertical">

                            <View bg="#1495E7" h="*" w="5"/>

                            <vertical padding="10 8" h="auto" w="0" layout_weight="1">

                                <horizontal>

                                    <Switch id="autoService" text="无障碍服务" checked="{ {auto.service != null}}" padding="8 8 8 8" textSize="14"/>

                                    <Switch id="isShow" text="悬浮窗" checked="{ {isShow}}" padding="8 8 8 8" textSize="14"/>

                                </horizontal>

                            </vertical>

                        </horizontal>

                    </card>

                    <card w="*" h="300" margin="10 5" cardCornerRadius="2dp" cardElevation="1dp" foreground="?selectableItemBackground">

                        <horizontal gravity="center_vertical">

                            <View bg="#1495E7" h="*" w="5"/>

                            <vertical padding="10 8" h="auto" w="0" layout_weight="1">

                                <horizontal padding="0 5"><text id="title" text="选择功能" textSize="13sp" /></horizontal>

                                <Switch id="isLSJS" text="灵石获取加速" checked="{ {isLSJS}}" padding="8 8 8 8" textSize="14"/>

                                <Switch id="isYBXYZ" text="异变幸运值领取" checked="{ {isYBXYZ}}" padding="8 8 8 8" textSize="14"/>

                                <Switch id="isLSLQ" text="灵石领取" checked="{ {isLSLQ}}" padding="8 8 8 8" textSize="14"/>

                                <Switch id="isJY" text="家园" checked="{ {isJY}}" padding="8 8 8 8" textSize="14"/>

                                <Switch id="isYB" text="异变" checked="{ {isYB}}" padding="8 8 8 8" textSize="14"/>

                                <Switch id="isHCDW" text="合成动物" checked="{ {isHCDW}}" padding="8 8 8 8" textSize="14"/>

                            </vertical>

                        </horizontal>

                    </card>

                    <card w="*" h="200" margin="10 5" cardCornerRadius="2dp" cardElevation="1dp" foreground="?selectableItemBackground">

                        <horizontal gravity="center_vertical">

                            <View bg="#1495E7" h="*" w="5"/>

                            <vertical padding="10 8" h="auto" w="0" layout_weight="1">

                                <horizontal padding="0 5"><text id="title" text="本脚本为免费脚本,严禁贩卖!一切后果作者不承担,欢迎使用" textSize="13sp" /></horizontal>

                                <horizontal padding="0 5"><text id="title" text="脚本说明:" textSize="13sp" /></horizontal>

                                <horizontal padding="0 5"><text id="title" text="1.运行脚本前先开启无障碍服务和悬浮窗" textSize="13sp" /></horizontal>

                                <horizontal padding="0 5"><text id="title" text="2.无障碍服务和悬浮窗是开启脚本的无障碍" textSize="13sp" /></horizontal>

                                <horizontal padding="0 5"><text id="title" text="3.脚本可随意转发" textSize="13sp" /></horizontal>  

                                <horizontal padding="0 5"><text id="title" text="4.更多游戏脚本欢迎加群:424858991" textSize="13sp" /></horizontal>  

                           

                            </vertical>

                        </horizontal>

                    </card>

                    <vertical padding="5">

                        <button id="start" style="Widget.AppCompat.Button.Colored" text="运行"/>

                    </vertical>

                </vertical>

                </ScrollView>

            </vertical>

    </frame>

);

 

// 当用户回到本界面时,resume事件会被触发

ui.emitter.on("resume", function() {

    // 此时根据无障碍服务的开启情况,同步开关的状态

    ui.autoService.checked = auto.service != null;

});

ui.start.on("click", function(){

    //程序开始运行之前判断无障碍服务

    if(auto.service == null) {

        toast("请先开启无障碍服务!");

        return;

    }

    main();

});

 

ui.autoService.on("check", function(checked) {

    // 用户勾选无障碍服务的选项时,跳转到页面让用户去开启

    if(checked && auto.service == null) {

        app.startActivity({

            action: "android.settings.ACCESSIBILITY_SETTINGS"

        });

    }

    if(!checked && auto.service != null){

        auto.service.disableSelf();

    }

});

 

function main() {

    // 这里写脚本的主逻辑

    threads.start(function () {

        if(!requestScreenCapture()){

            toast("请求截图失败");

               exit();

          }

          toast("请手动打开山海经异变,8秒后开始运行");

          sleep(8000);

         

        log("开始运行");

        离线收益()

if(ui.isLSJS.checked){

    灵石获取加速()

}

if(ui.isYBXYZ.checked){

    异变幸运值领取()

}

if(ui.isLSLQ.checked){

    灵石领取()

}

if(ui.isJY.checked){

    家园()

}

if(ui.isHCDW.checked){

    合成动物()

}

if(ui.isYB.checked){

    异变()

}

 

        log("运行结束");

    });

}

 

标签: d01一体化瓦振变送器d01轴瓦振动变送器xcbsq

锐单商城拥有海量元器件数据手册IC替代型号,打造 电子元器件IC百科大全!

锐单商城 - 一站式电子元器件采购平台