|
Post by stampide on May 6, 2022 10:03:36 GMT
Hi all! I have a script that I quickly created using snap and play, but I need one image to be searched only when no other has been found in 2-3 cycles. How can the luar script be modified for this purpose?
----- created by AnkuLua snap and play script ------ immersive = true setImmersiveMode(immersive) genVersion = "8.3.0" setAutoGameArea = true pcall (autoGameArea, setAutoGameArea) scriptDimension = 1280 Settings:setScriptDimension(true, scriptDimension) Settings:setCompareDimension(true, scriptDimension) local index = 1 touchList = {} waitList = {}
------ 1 ----- touchList[index] = {target = "4.png", region = Region(370, 556, 150, 150), id = "4", action = 'click'} index = index + 1
------ 2 ----- touchList[index] = {target = "1.png", region = Region(723, 381, 150, 150), id = "1", action = 'click'} index = index + 1
------ 3 ----- touchList[index] = {target = "5.png", region = Region(475, 277, 150, 150), id = "5", action = 'click'} index = index + 1
------ 4 ----- touchList[index] = {target = "6.png", region = Region(1029, 475, 150, 150), id = "6", action = 'click'} index = index + 1
------ 5 ----- touchList[index] = {target = "2.png", region = Region(905, 11, 150, 150), id = "2", action = 'click'} index = index + 1
------ 6 ----- touchList[index] = {target = "3.png", region = Region(699, 100, 150, 150), id = "3", action = 'click'} index = index + 1
|
|