awira
New Member
Posts: 3
|
Post by awira on Nov 22, 2017 4:14:42 GMT
Hello everyone .. I've bought ankulua license. I need help to create a script. simple script that I need like this:
click gold, click gold ..., swipe, click gold and so on to 50 click gold then break end.
Thank you in advance.
Sorry bad english....
|
|
|
Post by Mercobots on Nov 22, 2017 14:19:27 GMT
|
|
awira
New Member
Posts: 3
|
Post by awira on Nov 22, 2017 16:18:02 GMT
What I need, something like this, But when click gold reaches 100 times and then stop.
while (true) do
testa = findAll("gold.png")
for i, m in ipairs(testa) do click(m) end dragDrop(Location(888, 1645), Location(888, 55)) end end
one more problem with that script if after dragdrop, gold.png not found should dragdrop repeat until gold found.
|
|
|
Post by Mercobots on Nov 22, 2017 18:58:29 GMT
What I need, something like this, But when click gold reaches 100 times and then stop. while (true) do testa = findAll("gold.png") for i, m in ipairs(testa) do click(m) end dragDrop(Location(888, 1645), Location(888, 55)) end end one more problem with that script if after dragdrop, gold.png not found should dragdrop repeat until gold found. No really sure if i understand but .... local num_clicks = 0
while num_clicks < 100 do local gold = findAllNoFindException("gold.png")
if gold and #gold > 0 then for i, m in ipairs(gold) do click(m) end num_clicks = num_clicks + 1 end dragDrop(Location(888, 1645), Location(888, 55)) end
|
|
awira
New Member
Posts: 3
|
Post by awira on Nov 22, 2017 23:14:01 GMT
Yeah right, that's what I mean. I've tried, but unfortunately it does not want to stop when num_click is reached.
|
|