|
Post by nunyaaau on Mar 8, 2017 6:44:42 GMT
Hello. I have no idea what I am doing so could someone please help me. The game I play is pokemon go, I have used the rec/play script and I can get the script doing what I want it to do, but it takes to long to go though all the button pushing to get the script running that I want to in the gym battle the background changes so it is no good using click("-.png") method. all I need is to click at a location repetedly here is the rec/play code
----- created by AnkuLua record script ------
immersive = false
setImmersiveMode(immersive)
scriptDimension = 720
Settings:setScriptDimension(true, scriptDimension)
local index = 1
touchList = {}
waitList = {}
touchList[index] = {"continueClick", Location(362, 591)}
waitList[index] = 0.000120
index = index + 1
If I select this .Luar script file I wont work unless I am using the rec/play script.
could someone please help me out with a Luar script that I dont need to use the rec/play script to use..
I know I am very dumb when it comes to all this.. Please help me out
|
|
|
Post by AnkuLua on Mar 8, 2017 7:08:59 GMT
Append this to the end of the luar file.
times = 5 -- changed to what you want gap = 1.0 -- changed to the time between each play for i = 1, times do for j, t in ipairs(touchList) do
if (t[1] == "swipe" or t[1] == "dragDrop") then _G[t[1]](t[2], t[3]) elseif (t[1] == "continueClick") then continueClick(t[2], 100) else _G[t[1]](t[2]) end if (i ~= times or j ~= #touchList) then wait(waitList[j]) end end if (i ~= times) then wait(gap) end end
|
|
|
Post by nunyaaau on Mar 8, 2017 8:27:51 GMT
Thank you very much
|
|