《仙变》自动打怪刷副本源码

2013-8-29 11:06:38 来源:手机网游第一门户   仙变OL官网

    解放你的双手,让一起可以重复的操作都由软件来替你完成。
    -----------------------------------------------------------------------
    --本文件为脚本入口文件,请不要删除
    --脚本从第一行开始执行,中间定义的函数只有调用的时候才执行
    -----------------------------------------------------------------------
    --在这里添加你的脚本代码
    setAutoScreencap(false)
    function任务()
    sleep(1000);
    screencap()
    --localflag,x,y=findImageFuzzy("截图/挂机。bmp",90,320,702,342,727)
    ifisColor(474,793,0xFFFFFF,80)and(notisColor(342,741,0xE6FFFF,80))then
    --toast("游戏中")
    fuhuo();
    ydrw()
    ydrw2()
    ydrw3()
    ydrw4()
    ydrw5()
    ydrw6()
    pdsfyrw();--点击任务
    wcrw();--完成任务
    jsrw();--接受任务
    --xl()--寻路任务
    lqjl();--领取奖励
    zxjl()--在线奖励
    zpjn();--技能装配
    zpzb();--装备装配
    vip();
    任务();
    cishu=0;
    else
    --localflag,x,y=findImageFuzzy("截图/挂机中。bmp",90,320,702,342,727)
    ifisColor(342,741,0xE6FFFF,80)then
    toast("挂机中…")
    sleep(5000);
    cishu=0;
    任务();
    else
    sjbs();
    ifcishu>12then
    toast("不在游戏中")
    else
    cishu=cishu+1;
    任务();
    end
    end
    end
    end
    functionpdsfyrw()
    screencap()
    localflag,x,y=findImageFuzzy("截图/判断是否任务。bmp",90,313,15,328,38)
    ifflagthen
    touchClick(336,84)
    end
    end
    functionjsrw()
    screencap()
    localflag,x,y=findImageFuzzy("截图/接受任务。bmp",90,114,596,141,689)
    ifflagthen
    --toast("接受任务")
    touchClick(x,y)
    sleep(1000)
    end
    end
    functionwcrw()
    screencap()
    localflag,x,y=findImageFuzzy("截图/完成任务。bmp",90,114,596,141,689)
    ifflagthen
    --toast("完成任务")
    touchClick(x,y)
    sleep(1000)
    end
    end
    functionwcrwdd()
    screencap()
    localflag,x,y=findImageFuzzy("截图/完成任务。bmp",90,114,596,141,689)
    ifflagthen
    --toast("完成任务")
    touchClick(x,y)
    sleep(1000)
    else
    toast("副本中……")
    sleep(10000)
    wcrwdd()
    end
    end
    functionzpjn()
    screencap()
    localflag,x,y=findImageFuzzy("截图/装配技能。bmp",90,161,335,187,467)
    ifflagthen
    --toast("装配技能")
    touchClick(x,y)
    sleep(1000)
    end
    end
    functionzpzb()
    screencap()
    localflag,x,y=findImageFuzzy("截图/装配装备。bmp",90,96,498,121,584)
    ifflagthen
    --toast("装配装备")
    touchClick(x,y)
    sleep(1000)
    end
    end
    functionsjbs()
    ifisColor(286,697,0xFFFF94,80)andisColor(314,740,0xFFFF94,80)andisColor(275,774,0xFFFF94,80)andisColor(239,734,0xFFFF94,80)then
    touchClick(278,736);
    任务()
    end
    end
    functionlqjl()
    screencap()
    localflag,x,y=findImageFuzzy("截图/领取。bmp",90,305,573,325,615)
    ifflagthen
    --toast("领取奖励")
    touchClick(x,y)
    end
    end
    functionzxjl()
    screencap()
    localflag,x,y=findImageFuzzy("截图/在线奖励。bmp",90,324,653,343,673)
    ifflagthen
    --toast("在线奖励")
    touchClick(x,y)
    sleep(500)
    touchClick(154,396)
    end
    localflag,x,y=findImageFuzzy("截图/在线奖励领取。bmp",90,127,361,153,427)
    ifflagthen
    --toast("在线奖励领取")
    touchClick(154,396)
    end
    end
    functionydrw()
    screencap()
    ifisColor(442,167,0xFF9610,80)then
    toast("主线引导1")
    touchClick(426,51)
    sleep(1000)
    touchClick(46,189)
    sleep(1000)
    touchClick(327,172)
    sleep(500)
    touchClick(52,645)
    sleep(500)
    touchClick(444,702)
    end
    end
    functionydrw2()
    screencap()
    localflag,x,y=findImageFuzzy("截图/引导任务2.bmp",90,93,615,120,653)
    ifflagthen
    toast("主线引导2")
    touchClick(x,y)
    sleep(500)
    touchClick(446,699)
    end
    end
    functionydrw3()
    screencap()
    localflag,x,y=findImageFuzzy("截图/引导任务3.bmp",90,29,541,56,592)
    ifflagthen
    touchClick(x,y)
    sleep(2000)
    screencap()
    localflag,x,y=findImageFuzzy("截图/副本。bmp",70,212,387,235,411)
    ifflagthen
    --screencap()
    toast("进入副本")
    sleep(1000)
    touchClick(x,y)
    sleep(5000)
    touchClick(336,738)
    wcrwdd();
    else
    toast("不是副本")
    end
    end
    end
    functionydrw4()
    screencap()
    localflag,x,y=findImageFuzzy("截图/引导任务4.bmp",90,30,625,60,679)
    ifflagandisColor(66,651,0xFFFF9C,80)andisColor(25,648,0xFFFF9C,80)then
    toast("主线引导4")
    fori=1,6,1do
    touchClick(x,y)
    --screencap()
    sleep(500)
    touchClick(334,526)
    sleep(500)
    end
    sleep(1000)
    touchClick(447,701)
    end
    end
    functionydrw5()
    screencap()
    localflag,x,y=findImageFuzzy("截图/引导任务5.bmp",90,192,380,217,425)
    ifflagthen
    toast("主线引导5")
    touchClick(x,y)
    sleep(7000)
    screencap()
    xl()
    sleep(1000)
    touchClick(444,704)
    end
    end
    functionxl()
    screencap()
    localflag,x,y=findImageFuzzy("截图/寻路。bmp",80,113,622,141,672)
    ifflagthen
    touchClick(126,532)
    end
    end
    functionguanbi()
    screencap()
    localflag,x,y=findImageFuzzy("截图/关闭。bmp",90,294,663,323,703)
    ifflagthen
    touchClick(x,y)
    else
    sleep(2000)
    end
    end
    functionkslc()
    screencap()
    localflag,x,y=findImageFuzzy("截图/开始旅程。bmp",80,108,502,135,581)
    ifflagthen
    touchClick(x,y)
    end
    end
    functionvip()
    screencap()
    localflag,x,y=findImageFuzzy("截图/体验vip.bmp",80,182,385,209,455)
    ifflagthen
    touchClick(333,507)
    end
    end
    functionydrw6()
    localflag,x,y=findImageFuzzy("截图/副本进入。bmp",90,32,592,59,645)
    ifflagthen
    touchClick(x,y)
    sleep(5000)
    touchClick(336,738)
    wcrwdd();
    end
    end
    functionfuhuo()
    localflag,x,y=findImageFuzzy("截图/复活。bmp",90,138,376,164,453)
    ifflagthen
    touchClick(x,y)
    end
    end
    cishu=0;
    sleep(3000)
    localw,h=getResolutionRatio()
    ifw==480andh==800then
    toast("分辨率480x800");
    kslc()
    任务();
    else
    toast("不支持此分辨率");
    end

    如果您喜欢《仙变OL》,请把本文分享给您的好友!让好友们一起参与更多活动。

    手游之家,手机网游第一门户!

    仙变OL专区:http://xianbian.sjwyx.com/

    更多精彩攻略,尽在手游之家《仙变OL》专区!

    上一篇:《仙变》冲级霸榜与刷经验的方法

仙变OL玩家留言

    还没有任何留言,赶快来抢先发表吧!

扫描二维码下载

>