有鑑於上篇被噓卻沒半個人聲援或補血
這次我實在懶得花太多心力去加註解了
基本上就是利用 windows 的 alt+tab 換窗
假設有 a b c d e 五個角色
一般戰鬥完就是 alt 按著再按下四次 tab
如此重覆去 run
碰到偵測時則是 alt 按著再按下三次 tab
並在重覆三次後執行給四個角色跑的副程式
這樣出現偵測的角色就不會被納入下一次執行
簡單的說就是 x 個角色
在戰鬥時就是 alt 按著 + (x-1) 的 tab
偵測時就是 alt 按著 + (x-2) 的 tab,並重覆 x-1 次
其次再執行針對 (x-1) 個角色進行戰鬥的副程式
換言之,即是 x -> x-1 ->x-2 直到 x = 0 就令腳本自動按下停止的熱鍵
以這樣的邏輯就可以寫出重覆一直跑
直到每個角色都出現偵測才會停的腳本了
而我在最後停止前又會加上一個定時讓每個角色領在線 exp 的副程式
同時額外我也針對單靠寵物打怪的部份增設餵寵的設定
不過本設定在寵物過兩百級後實在沒什麼意義就是了
我的執行環境很特殊:筆電 + 自動隱藏工作列
所以我的抓點對於絕大部份的人是沒什麼意義的
因此以下程式碼僅供參考
--
#這是按鍵精靈生成的腳本原始檔案
#在理解各條命令的基礎上,您可以修改這個檔的內容
#您修改的結果將會在普通視圖上有所反映
Rem Main
IfColor 673,365,ffffff,0
KeyPress 32,1
Delay 500
MoveTo 416,689
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 436,251,33cc,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 358,369,33cc,0
KeyPress 32,1
Delay 500
MoveTo 416,689
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 595,217,a5ff,0
Beep
Beep
Beep
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyPress 9,1
KeyUp 18,1
Delay 500
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyPress 9,1
KeyUp 18,1
Delay 250
Gosub Fight2PPl
EndIf
IfColor 441,415,d9ff,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
Delay 1000
EndIf
KeyPress 32,1
Delay 250
IfColor 310,649,ffffff,0
MoveTo 310,649
Delay 500
LeftClick 1
Delay 500
KeyPress 32,1
Delay 500
MoveTo 706,407
Delay 500
LeftClick 1
Delay 500
IfColor 595,217,a5ff,0
Beep
Beep
Beep
Delay 500
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyPress 9,1
KeyUp 18,1
Delay 500
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyPress 9,1
KeyUp 18,1
Delay 250
Gosub Fight2PPl
EndIf
IfColor 441,415,d9ff,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
EndIf
EndIf
IfColor 595,217,a5ff,0
Beep
Beep
Beep
Delay 500
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyPress 9,1
KeyUp 18,1
Delay 500
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyPress 9,1
KeyUp 18,1
Delay 250
Gosub Fight2PPl
EndIf
Delay 500
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyPress 9,1
KeyUp 18,1
Delay 250
Goto Main
Sub Fight2PPl
Rem Mark2
IfColor 673,365,ffffff,0
KeyPress 32,1
Delay 500
MoveTo 416,689
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 436,251,33cc,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 358,369,33cc,0
KeyPress 32,1
Delay 500
MoveTo 416,689
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 595,217,a5ff,0
Beep
Beep
KeyDown 18,1
Delay 250
KeyPress 9,1
Delay 250
KeyUp 18,1
Delay 250
Gosub Fight1PPl
EndIf
IfColor 441,415,d9ff,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
Delay 1000
EndIf
KeyPress 32,1
Delay 250
IfColor 310,649,ffffff,0
MoveTo 310,649
Delay 500
LeftClick 1
Delay 500
KeyPress 32,1
Delay 500
MoveTo 706,407
Delay 500
LeftClick 1
Delay 500
IfColor 595,217,a5ff,0
Beep
Beep
Delay 500
KeyDown 18,1
Delay 250
KeyPress 9,1
Delay 250
KeyUp 18,1
Delay 250
Gosub Fight1PPl
EndIf
IfColor 441,415,d9ff,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
EndIf
EndIf
IfColor 595,217,a5ff,0
Beep
Beep
Delay 500
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyUp 18,1
Delay 250
Gosub Fight1PPl
EndIf
Delay 500
KeyDown 18,1
Delay 250
KeyPress 9,1
Delay 250
KeyUp 18,1
Delay 250
Goto Mark2
Return Fight2ppl
Sub Fight1PPl
Rem Mark3
IfColor 673,365,ffffff,0
KeyPress 32,1
Delay 500
MoveTo 416,689
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 436,251,33cc,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 358,369,33cc,0
KeyPress 32,1
Delay 500
MoveTo 416,689
Delay 500
LeftClick 1
Delay 500
EndIf
IfColor 595,217,a5ff,0
Beep
Gosub CheckExp
EndIf
IfColor 441,415,d9ff,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
Delay 1000
EndIf
KeyPress 32,1
Delay 250
IfColor 310,649,ffffff,0
MoveTo 310,649
Delay 500
LeftClick 1
Delay 500
KeyPress 32,1
Delay 500
MoveTo 706,407
Delay 500
LeftClick 1
Delay 500
IfColor 595,217,a5ff,0
Beep
Gosub CheckExp
EndIf
IfColor 441,415,d9ff,0
KeyPress 32,1
Delay 500
MoveTo 307,687
Delay 500
LeftClick 1
EndIf
EndIf
IfColor 595,217,a5ff,0
Beep
Gosub CheckExp
EndIf
Goto Mark3
Return Fight1ppl
Sub CheckExp
Rem Mark1
Delay 1000
MoveTo 599,648
Delay 1000
LeftClick 1
Delay 3000
MoveTo 591,440
Delay 1000
LeftClick 1
Delay 3000
MoveTo 511,337
Delay 1000
LeftClick 1
Delay 3000
MoveTo 479,331
Delay 1000
LeftClick 1
Delay 3000
KeyDown 18,1
KeyPress 9,1
Delay 250
KeyPress 9,1
KeyUp 18,1
Goto Mark1
Return CheckExp
--
月光花,Lv1490,所屬工會:PTT1
九蓮寶燈,Lv1473
國士無雙,Lv754
若與本人同工會且碰巧執行環境又一樣的會員
如果想要我做好的按精自動執行檔
可以私下寫信給我
--
http://www.wretch.cc/blog/spoly
人客~ 來看看唷~
本店無正妹~ 只有流氓唷~ ( ′3`)y-~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.20.174.46