Post by grimmjo0w on Dec 18, 2017 11:13:53 GMT
Hello. Need help with the script. I'm not very good at programming, so I do not understand thingssome things. His task is to view ads and reset the Google Advertising ID in game Walking Dead Road To Survival.
I use MEmu emulator(4 gb memory + 4 CPU).
some errors
What i do wrong? Please help me.
Btw, in this game dont work click position( like click(600,600) ). Im use AnkuLua pro2
I use MEmu emulator(4 gb memory + 4 CPU).
-- ========== Settings ================
Settings:setCompareDimension(true, 1280)
Settings:setScriptDimension(true, 1280)
Settings:set("MinSimilarity", 0.70)
-- ========== main program ===========
local function video()
i=1
while i<15 do // cycle for watching video
if exists("watch.png") then
click("watch.png") // click on button to watch video
end
if exists("no1.jpg",20) then // if no ads at this try, find
wait(1)
else wait(20) // wait when ad end(around 40 sec)
end
wait(1)
keyevent(111) // (press ESC to close ad)
if exists("ok1.jpg",20) // after close ad, we had dialog window and need press OK to go watch next
then
click("ok1.jpg")
else
wait(1)
end
i=i+1
end
end
local function rek()
wait(1)
startApp("com.google.android.gms") // start google setings
wait(3)
if exists("ads.png") then
click("ads.png")
end
wait(1)
if exists("reset.png") then // reset ads ID indificator
click("reset.png")
end
wait(1)
if exists("ok2.png") then
click("ok2.png")
end
wait(1)
startApp("com.scopely.headshot") // start our game
wait(10)
if exists("menu.jpg",60) then // go to Menu
click("menu.jpg",60)
existsClick("shop.jpg",60) // go to Shop
existsClick("get.jpg",60) // go to offers to watch video
else
wait(1) // if game just unfolded start watch video
end
end
while true do
video()
wait(1)
rek()
end
some errors
What i do wrong? Please help me.
Btw, in this game dont work click position( like click(600,600) ). Im use AnkuLua pro2