一起来学习吧! -- 脚本名称:酷跑刷飞行2000米 -- 脚本描述: --------------------------------- function createUI() showLoopSetting(false) createTextView("rm1","颜色相似度") createEditText("mhd","90",EDIT_TYPE_LINE,100) end function main() ok=200 kk=0 for i=1,1000 do if kk == ok then toast("刷了"..ok.."次也没刷到") break end touchClick( 269,643 ) kk=kk+1 sleep(1000) -------------------- local a = isColor( 28,843,0xbfa0ff ,mhd) local b = isColor( 27,862,0xcc99ff ,mhd) local c = isColor( 36,866,0xe8cfff ,mhd) local d = isColor( 32,849,0xfd96b5 ,mhd) local e = isColor( 24,869,0xc64273 ,mhd) local f = isColor( 21,854,0xb62c5f ,mhd) -------------------- if a or b or c or d or e or f then toast("恭喜你刷到2000米以上了") vibrate(150) jb=kk*300 toast("这次刷飞行一共用了"..jb.."金币") log("这次刷飞行一共用了"..jb.."金币") break end end end