tsecm
New Member
Posts: 4
|
tsecm 發表於 Feb 28, 2019 8:43:12 GMT
touchList[index] = {target = "blood.png", region = Region(120,180,650,1080), id = "blood", action = 'click;if(not exists ("attack.png"))then matchResult:getY() else dofile(scriptPath().."luar/loop.luar"));end'} index = index + 1 目前是先找到blood.png 但是因爲有時候找到了 但沒有進入攻擊畫面 所以我想寫個 if 攻擊畫面不存在 就隨便做點東西 else 跑去開始攻擊的loop.luar 感謝
|
|
|
AnkuLua 發表於 Feb 28, 2019 8:59:19 GMT
action 裡的click 要改成click(matchResult) touchList[index] = {target = "blood.png", region = Region(120,180,650,1080), id = "blood", action = 'click(matchResult);if(not exists ("attack.png"))then matchResult:getY() else dofile(scriptPath().."luar/loop.luar"));end'} index = index + 1
|
|
tsecm
New Member
Posts: 4
|
tsecm 發表於 Feb 28, 2019 9:06:59 GMT
非常感謝!就快完成脚本了到時候就可以買多幾個pro的使用權
|
|
|
AnkuLua 發表於 Feb 28, 2019 10:38:18 GMT
|
|