Hi Admin,
I've created a new script as below but the error still happen again. If the image show on screen between watting time it's no error. If the image show on screen after waitting time the script will search image forever. Please kindly support me to find out the root caused and how to fix it with many thanks.
The script as below :
----- created by AnkuLua snap and play script ------
immersive = false
setImmersiveMode(immersive)
genVersion = "8.3.0-PRO2"
setAutoGameArea = true
pcall (autoGameArea, setAutoGameArea)
scriptDimension = 1080
Settings:setScriptDimension(true, scriptDimension)
Settings:setCompareDimension(true, scriptDimension)
local index = 1
touchList = {}
waitList = {}
-------------------------------------------------------------
xx=480
yy=1600
zz=130
tableL={ 3, 2, 3, 4, 3, 5, 7, 5, 7, 4 }
tableLx={ 3, 2, 5, 6, 7, 5, 6, 7, 5, 6 }
tableC={ 3, 2, 3, 2, 4, 6, 8, 4, 6, 8 }
tableCx={ 3, 2, 7, 8, 9, 7, 8, 9, 7, 8 }
tableA={1,2,3,4,5,4,3,2,1,5}
tableAx={ 2, 3, 4, 2, 3, 4, 2, 3, 4, 3 }
tableRI={ 3, 2, 4, 5, 8, 5, 4, 5, 8, 3 }
tableLE={ 3, 2, 6, 7, 2, 3, 8, 7, 8, 6 }
tableRun1={ 2.12, 2.77, 2.65, 2.78, 2.67, 2.81, 2.73, 2.29, 2.34, 2.47}
tableRun2={ 2.41, 2.56, 2.74, 2.23, 2.16, 2.74, 2.26, 2.59, 2.87, 2.92}
-------------------------------------------------------------
------ 1 -----
touchList[index] = {target = "1.png", region = Region(124, 1492, 200, 200), id = "1", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 01 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 2 -----
touchList[index] = {target = "2.png", region = Region(115, 1490, 200, 200), id = "2", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 02 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 3 -----
touchList[index] = {target = "3.png", region = Region(143, 1473, 200, 200), id = "3", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 03 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 4 -----
touchList[index] = {target = "4.png", region = Region(107, 1474, 200, 200), id = "4", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 04 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 5 -----
touchList[index] = {target = "5.png", region = Region(119, 1480, 200, 200), id = "5", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 05 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 6 -----
touchList[index] = {target = "6.png", region = Region(140, 1478, 200, 200), id = "6", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 06 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 7 -----
touchList[index] = {target = "7.png", region = Region(126, 1480, 200, 200), id = "7", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 07 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 8 -----
touchList[index] = {target = "8.png", region = Region(121, 1480, 200, 200), id = "8", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 08 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 9 -----
touchList[index] = {target = "9.png", region = Region(143, 1477, 200, 200), id = "9", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("💫💫💫 Click 09 💫💫💫") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1
------ 10 -----
touchList[index] = {target = "10.png", region = Region(111, 1481, 200, 200), id = "10", action = 'click(Location(math.random(xx,xx+zz), math.random(yy, yy+zz)));toast("🔵🔵🔵 Click 10 🔵🔵🔵") ; wait(tableA[math.random(1,10)]+tableRun1[math.random(1,10)]) ;setScanInterval(5)'}
index = index + 1