綁定帳號登入

Android 台灣中文網

打印 上一主題 下一主題

[其他] 神魔之塔自動刷 參考9298大大

 關閉 [複製連結] 查看: 4939|回覆: 13|好評: 5
跳轉到指定樓層
樓主
mark239577 | 收聽TA | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
發表於 2013-11-23 09:24

馬上加入Android 台灣中文網,立即免費下載應用遊戲。

您需要 登錄 才可以下載或查看,沒有帳號?註冊

x
本帖最後由 mark239577 於 2013-11-30 09:14 編輯

參考至
神魔之塔自動刷最新0.21版本,針對轉珠小幫手2.2作更新!

由於某些人(就是我自己啦= =)在按取消那邊會被ROOT的通知黑條擋住
所以就自己寫了一個腳本
等待的時間改比較久一點
讓黑條消失才可偵測到

需要這些檔案
auto1.bmp
pk1.bmp
pk2.bmp
pk3.bmp
觸摸精靈3.1
自動轉珠小幫手
請去找9298大大那篇

一樣將圖檔的auto1.bmp,pk1.bmp,pk2.bmp和pk3.bmp文件放在手機的/mnt/sdcard/ming/位置上,沒有ming文件夾則自行新增。

此版無法自動開轉珠程式跟遊戲程式
請手動
也無法偵測輸了還贏了
(有人可以教我那些指令嗎?.?)

等待時間較久
跑完一次需要快25秒
神魔之塔 .txt.E (821 Bytes, 下載次數: 64)
「用Android 就來APK.TW」,快來加入粉絲吧!
Android 台灣中文網(APK.TW)

評分

參與人數 3碎鑽 +2 幫助 +3 收起 理由
fg6881 + 1 + 1 非常讚
a7832476a + 1
robin4010277 + 1 + 1 非常讚

查看全部評分

收藏收藏8 分享分享 分享專題
用Android 就來Android 台灣中文網(https://apk.tw)
回覆

使用道具 舉報

沙發
dh7007 | 收聽TA | 只看該作者
發表於 2013-11-26 21:01
本帖最後由 dh7007 於 2013-11-26 21:13 編輯

寫法如下,其實已做完整套自動練功了這部分會執行到主畫面停止可以自行截圖修改給您參考。
-- 主入口
function main()
--外掛程式執行
x , y = findImageFuzzy("/mnt/sdcard/1/Judge/4.bmp", 95);
if x ~= -1 and y ~= -1 then
  notifyMessage("已啟動自動轉珠小幫手")
   appRun("com.madhead.tos.zh");
else
::A::
appRun("com.acheese.gamehelper");
mSleep(2000);
x1 , y1 = findImageFuzzy("/mnt/sdcard/1/Judge/1.bmp", 95);
if x1 ~= -1 and y1 ~= -1 then  
  touchDown(0, x1+10, y1+10);
   touchUp(0);         
    notifyMessage("啟動自動轉珠小幫手")
     mSleep(2000);
      appRun("com.madhead.tos.zh");
else
  notifyMessage("未啟動自動轉珠小幫手,重新啟動中")
   goto A
    return
     end
end
--外掛程式執行
--選關
這部分為自動選關核心
--選關
--判斷關卡內是否出現貓頭鷹
::B::
x0 , y0 = findImageFuzzy("/mnt/sdcard/1/Choose/0.bmp", 90);
if x0 ~= -1 and y0 ~= -1 then
  touchDown(0, x0+10, y0+10);
   touchUp(0);
    goto B
     return
      end
--判斷關卡內是否現面貓頭鷹
::E::
--判斷是否死亡
x2 , y2 = findImageFuzzy("/mnt/sdcard/1/Choose/6.bmp", 90);
if x2 ~= -1 and y2 ~= -1 then
  notifyMessage("狀態死亡")
x3 , y3 = findImageFuzzy("/mnt/sdcard/1/Choose/8-4.bmp", 90);
   mSleep(2000);
    notifyMessage("點擊取消")
     touchDown(0, x3+10, y3+10);
      touchUp(0);
x4 , y4 = findImageFuzzy("/mnt/sdcard/1/Choose/10-3.bmp", 90);
  mSleep(2000);
   notifyMessage("點擊確定")
    touchDown(0, x4+10, y4+10);
     touchUp(0);
      return
       end
--判斷是否死亡
--判斷是否結束
x5 , y5 = findImageFuzzy("/mnt/sdcard/1/Choose/7.bmp", 90);
if x5 ~= -1 and y5 ~= -1 then
  notifyMessage("狀態結束")
   mSleep(1000);
x6 ,y6 = findImageFuzzy("/mnt/sdcard/1/Choose/2.bmp", 90);
::C::
if x6 ~= -1 and y6 ~= -1 then
  notifyMessage("點擊繼續")
   touchDown(0, x6+10, y6+10);
    touchUp(0);
else
x6 ,y6 = findImageFuzzy("/mnt/sdcard/1/Choose/2.bmp", 75);
  goto C
   return
    end
::D::
  mSleep(1000);
   touchDown(0, 360, 160);
    touchUp(0);
x7 , y7 = findImageFuzzy("/mnt/sdcard/1/Choose/8.bmp", 90);
if x7 ~= -1 and y7 ~= -1 then
  mSleep(1000);
   notifyMessage("取消加好友")
    touchDown(0, x7+10, y7+10);
     touchUp(0);
else
x8 , y8 = findImageFuzzy("/mnt/sdcard/1/Choose/10.bmp", 90);
if x8 ~= -1 and y8 ~= -1 then
  mSleep(1000);
   notifyMessage("點擊確定")
    touchDown(0, x8+10, y8+10);
     touchUp(0);
x9 , y9 = findImageFuzzy("/mnt/sdcard/1/Choose/9.bmp", 90);
if x9 ~= -1 and y9 ~= -1 then
  mSleep(1000);
   notifyMessage("背包以抵達上限")
    return
else
  notifyMessage("關卡已結束")
   mSleep(1000);
    return
     end
else
  goto D
   end
    end
--判斷是否結束
--戰鬥判定
else
x10 , y10 = findImageFuzzy("/mnt/sdcard/1/Judge/2.bmp", 95);
x11 , y11 = findImageFuzzy("/mnt/sdcard/1/Judge/3.bmp", 90);
if x10 ~= -1 and y10 ~= -1 and x11 ~= -1 and y11 ~= -1 then
  notifyMessage("狀態檢測中…")
   --mSleep(1000);
    touchDown(0, x11+10, y11+5);     
      touchUp(0);
       mSleep(1500);
else
  notifyMessage("狀態戰鬥中")
   mSleep(1000);
    goto E
     end
x12 , y12 = findImageFuzzy("/mnt/sdcard/1/Choose/8-1.bmp", 90);
if x12 ~= -1 and y12 ~= -1 then
   notifyMessage("狀態可戰鬥")
    mSleep(1000);
     touchDown(0, x12+10, y12+10);   
       touchUp(0);
else
  notifyMessage("狀態戰鬥中")
   mSleep(1000);
    goto E
     end
x13 , y13 = findImageFuzzy("/mnt/sdcard/1/Judge/4.bmp", 90);
  notifyMessage("執行戰鬥中!")
   mSleep(1000);
    touchDown(0, x13+10, y13+10);
      touchUp(0);
       mSleep(8000);
        goto E
         end
          end
--戰鬥判定

點評

請問是把這些複製進去編寫,自己搞圖檔就可以用了嗎?  發表於 2013-12-23 06:31

評分

參與人數 4碎鑽 +3 幫助 +4 收起 理由
ray810910 + 1 + 1 讚一個!
fg6881 + 1 + 1 非常讚
mark239577 + 1 + 1 感謝 學習中>"<
qwqw147852 + 1

查看全部評分

用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 1 反對 0

使用道具 舉報

板凳
qooloo | 收聽TA | 只看該作者
發表於 2013-11-26 23:19
由 手機網頁 發佈
剛剛試了一下,我的還是不能使用(>﹏<)
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

地板
qooloo | 收聽TA | 只看該作者
發表於 2013-11-26 23:21
由 手機網頁 發佈
一直在打開設定跟取消來回跑……找不到小幫手這樣,note3
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

5
dh7007 | 收聽TA | 只看該作者
發表於 2013-11-26 23:31
本帖最後由 dh7007 於 2013-11-26 23:36 編輯

我使用NOTE II ,目前自己使用尚無任何BUG可能是圖檔包不符,故附上圖檔給各位參考修改內有此語法附檔目前用中。

appRun("com.acheese.gamehelper");<<此部分需參考各位手機內DATD/APP內轉珠主程式檔名

appRun("com.madhead.tos.zh"); <<此部分需參考各位手機內DATD/APP內神魔主程式檔名

歡迎大家討論,目前在撰寫首抽程式,想抽妖狐 = =   笑想中。

1.rar

657.93 KB, 下載次數: 43, 下載積分: 碎鑽 -1 個

圖檔及語法

評分

參與人數 2幫助 +2 收起 理由
abbk + 1 老衲來幫這篇文章開光
qwqw147852 + 1

查看全部評分

用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

6
fg6881 | 收聽TA | 只看該作者
發表於 2013-11-28 23:18
dh7007 發表於 2013-11-26 23:31
我使用NOTE II ,目前自己使用尚無任何BUG可能是圖檔包不符,故附上圖檔給各位參考修改內有此語法附檔目前 ...

轉珠時...重新偵測戰鬥!轉珠會受到干擾...要怎麼解決?

點評

先偵測自動轉的 ||  發表於 2013-11-28 23:38

評分

參與人數 1幫助 +1 收起 理由
z80886295 + 1 好內容。朕有賞,還不謝主隆恩.

查看全部評分

用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

7
 樓主| mark239577 | 收聽TA | 只看該作者
發表於 2013-11-30 08:45
本帖最後由 mark239577 於 2013-11-30 09:22 編輯

function main()
::lab_x1::
x, y = findImageFuzzy("/mnt/sdcard/ming/pk1.bmp", 50); --50是指圖片的準確度(數值50~100);
if x ~= -1 and y ~= -1 then   --X不等於-1 就是相等時 做以下指令;
mSleep(1200);            -- 等待時間 毫秒;
goto lab_x2;             --跳至lab_x2;
else        --條件未達成時改做其他指令;
notifyMessage("not fighting");   -- 提醒;
mSleep(5000);
return main();    --回歸到主程序;
end

::lab_x2::
x, y = findImageFuzzy("/mnt/sdcard/ming/8.bmp", 50);
if x ~= -1 and y ~= -1 then
mSleep(1500);
goto lab_x3
else
return main();
end

::lab_x3::
x, y = findImageFuzzy("/mnt/sdcard/ming/pk2.bmp", 50);
if x ~= -1 and y ~= -1 then
touchDown(0, x+1, y+1);
touchUp(0);
mSleep(1500);
goto lab_x4
else
return main();
end

::lab_x4::
x, y = findImageFuzzy("/mnt/sdcard/ming/pk3.bmp", 50);
if x ~= -1 and y ~= -1 then
touchDown(0, x+10, y+8);
touchUp(0);
mSleep(1500);
goto lab_x5
else
return main();
end

::lab_x5::
x, y = findImageFuzzy("/mnt/sdcard/ming/auto1.bmp", 50);
if x ~= -1 and y ~= -1 then
touchDown(0, x+5, y+5);
touchUp(0);
mSleep(18500);
return main();
else
notifyMessage("not found");
return main();
end

end


可以自學喔~ㄎㄎ
以上複製貼上到文件txt黨就可以導入了

評分

參與人數 1碎鑽 +1 幫助 +1 收起 理由
fg6881 + 1 + 1 非常讚

查看全部評分

用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

9
michatlkae | 收聽TA | 只看該作者
發表於 2013-12-17 15:02
有沒有蝴蝶能用的1920*1080解析度照片

自己切配別人腳版都會失敗= =
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

10
spike9886 | 收聽TA | 只看該作者
發表於 2013-12-17 16:45
謝謝大大分享
我自己也研究了很久
終於可以刷肥料了
開心~幫推!
用Android 就來Android 台灣中文網(https://apk.tw)
回覆 支持 反對

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 註冊

本版積分規則