触摸精灵吧 关注:11,857贴子:44,870
  • 17回复贴,共1

iphone4s雷霆战机脚本求修改

只看楼主收藏回复

SCREEN_RESOLUTION="640x960";
SCREEN_COLOR_BITS=32;
-- 主入口
function main()
while true do
x, y = findColorInRegionFuzzy(0x00A0FD, 100, 312, 731, 331, 741);
--新闻点我知道了
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xFE5A02, 90, 251, 900, 268, 917);
---找无尽模式
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xFFAB00, 90, 311, 885, 326, 902);
--找出击
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0x0079DC, 90, 201, 548, 220, 567);
--找返回
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0x0079DB, 100, 168, 849, 180, 867);
--找继续
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(100);
x, y = findColorInRegionFuzzy(0xC76C00, 90, 313, 710, 324, 726);
--找领取宝箱
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+10);
touchUp(0);
end
mSleep(1000);
end
end
这是我在贴吧里找的脚本,目前使用良好,但是有个小不足,晚上挂机到3点出奖励时没有自动领取而一直卡在领取界面,我希望在脚本中增加检测是否有奖励,确定领取功能。希望大神帮我改进下,万分感谢!附图


来自iPhone客户端1楼2014-06-15 06:34回复
    亲,挂到凌晨3点就行了,要那么多黄金也没用。
    再,这个脚本靠取色定位,如果定位过多一定会有BUG,所以挂到三点满足吧。
    又再,我的触摸精灵只能挂半小时,你有破解版啊!求安装包!


    2楼2014-06-15 16:52
    收起回复
      2025-05-30 06:48:31
      广告
      SCREEN_RESOLUTION="640x960";
      SCREEN_COLOR_BITS=32;
      -- 主入口
      function main()
      while true do
      x, y = findColorInRegionFuzzy(0x00A0FD, 100, 312, 731, 331, 741);
      --新闻点我知道了
      if x ~= -1 and y ~= -1 then
      touchDown(0, x+10, y+10);
      touchUp(0);
      end
      mSleep(100);
      x, y = findColorInRegionFuzzy(0xFE5A02, 90, 251, 900, 268, 917);
      ---找无尽模式
      if x ~= -1 and y ~= -1 then
      touchDown(0, x+10, y+10);
      touchUp(0);
      end
      mSleep(100);
      x, y = findColorInRegionFuzzy(0xFFAB00, 90, 311, 885, 326, 902);
      --找出击
      if x ~= -1 and y ~= -1 then
      touchDown(0, x+10, y+10);
      touchUp(0);
      end
      mSleep(100);
      x, y = findColorInRegionFuzzy(0x0079DC, 90, 201, 548, 220, 567);
      --找返回
      if x ~= -1 and y ~= -1 then
      touchDown(0, x+10, y+10);
      touchUp(0);
      end
      mSleep(100);
      x, y = findColorInRegionFuzzy(0x0079DB, 100, 168, 849, 180, 867);
      --找继续
      if x ~= -1 and y ~= -1 then
      touchDown(0, x+10, y+10);
      touchUp(0);
      end
      mSleep(100);
      x, y = findColorInRegionFuzzy(0xED7D00, 90, 381, 796, 389, 809);
      --找登陆礼包
      if x ~= -1 and y ~= -1 then
      touchDown(0, x+10, y+10);
      touchUp(0);
      end
      mSleep(100);
      x, y = findColorInRegionFuzzy(0x139111, 90, 315, 560, 326, 578);
      --找登陆确认
      if x ~= -1 and y ~= -1 then
      touchDown(0, x+10, y+10);
      touchUp(0);
      end
      mSleep(100);
      x, y = findColorInRegionFuzzy(0xC76C00, 90, 313, 710, 324, 726);
      --找领取宝箱
      if x ~= -1 and y ~= -1 then
      touchDown(0, x+10, y+10);
      touchUp(0);
      end
      mSleep(1000);
      end
      end


      3楼2014-06-17 15:24
      收起回复
        苹果4可以用吗?如果可以 求转发…


        IP属地:吉林来自iPhone客户端4楼2014-06-18 13:54
        回复
          请问要在开始游戏后,往左或者右边挪动半个身位以防被导弹撞死,改怎么添加代码?


          IP属地:浙江5楼2014-06-23 21:31
          回复
            楼主请问我用这个脚本为什么开始不了啊。不是打开雷霆战机界面在出新闻之前就可以运行么


            6楼2014-06-24 15:36
            回复
              怎么老是点到玩家头像看资料


              来自手机贴吧7楼2014-06-30 13:14
              收起回复
                你说的功能我的脚本都有。你可以去我的贴子看看http://tieba.baidu.com/p/3156163422


                8楼2014-07-10 10:40
                回复
                  2025-05-30 06:42:31
                  广告
                  第一次的爱,始终无法轻描淡写。我对你,只有放弃,没有忘记。站在心碎的地方,轻轻打一个结,一种缝补,阻止伤痛再流出。在这个城市,做一道路过的风景,做一次匆匆的过客,只为了一个人。也许有一天,你回头了,而我却早已,不在那个路口。


                  IP属地:江苏来自WindowsPhone客户端9楼2014-07-12 06:58
                  回复