|
Post by rolato on Aug 21, 2020 6:16:01 GMT
Hi. I tried to do the snap and play thingy. Surprisingly its easy. The game called summoners war. i made my self a Faimon hell auto replay and selling all runes. And pressing ok for the stuffs that i cant sell. Now when i try to make a Dragon auto play. Heres the tricky part. How can i command the app that. 1. If rune is hero or legend and 6 stars with spd substat press ok. 2. If rune is 6 star with spd main stats press ok. 3. Otherwise sell.
|
|
|
Post by canek94 on Feb 1, 2023 23:28:56 GMT
Здравствуйте , сам создаю бот ,сделал картинку ,все сдела по шагово как в вашем учебнике ,запустил ,пишит не удается найти тресировку и функцию щелчка ,где я допустил ошибку ,я первый раз создаю!
Вот код 1. print("hello world")
2. click("qe.png")
|
|
|
Post by AnkuLua on Feb 2, 2023 0:21:18 GMT
|
|
|
Post by sepplimc on Feb 5, 2023 10:31:01 GMT
Hallo i have some isuues with my script. Im new on scripting and new to ankulua. I'v tried 10 different versions but always the same issue.
What i want to do. Solve a simple Captcha like: Click on the "fish"
Then there are 5 pictures and you should click on the fish to solve it.
so i screenshoted all pictures and the names of them and saved it like fish.png.
Now i want to type "fish" in a dialog field and it sould click the fish.
i'v tried this script:
function main() local input = inputBox("Image Text") local setImagePath = "./image/" .. input .. ".png" local x, y = find(setImagePath, 90) if x ~= -1 and y ~= -1 then click(x, y) else dialog("Image not found!", 0) dialog("Image not found! please check image path and try again.", 0) end end
The issue is: when i start the service and click play → it shows an empty message dialog.
so i tried an oter code to show a dialog
function main() dialogInit() addEditText ("input", "Enter Text", " Enter Image:") dialogShow("Image Finder") local input = dialogGetInput("input") local setImagePath = "./image/" .. input .. ".png" local x, y = find(setImagePath, 90) if x ~= -1 and y ~= -1 then click(x, y) end end
but it shows the same empty dialog.
could someone please help me?
|
|
|
Post by Exilereven on Feb 5, 2023 16:30:38 GMT
are you actually running the function you made?
under that function put function name and ()
main() -- would run function main
|
|
|
Post by sepplimc on Feb 5, 2023 19:15:36 GMT
Thanks for your answer.
Now the dialog shows and i can input text. but it still shows a empty message box after i type the name of the picture. i will try and edit again tomorrow.
Thank you very much!
|
|
|
Post by sepplimc on Feb 9, 2023 12:35:38 GMT
Hallo again. I tryed and tryed but i dont know, eventually the universe wish that it dont work. I did write a simple code just to check if it clicks the picture. But it dont! It still shows this empty message box. The code is: function main() local x, y = find("./image/Cheese.png", 10) if x ~= -1 and y ~= -1 then click(x, y) else dialog("Image not found!", 0) dialog("Image not found! please check image path and try again.", 0) end end I even tryed to provide the whole path like /storage/emulated/0/.... I dont know if there is something wrong with the picture: mega.nz/file/Keg0WRjZ#U4Al41In4yPuyGgIyI9ayXCvTMSqUfaCu7078v_OFZkThe empty message box look like this: mega.nz/file/uW4xRLgL#PnfVJrJKb2WZbktXji-Gl8olqh_1pNyncOuJ6DQMxqwI hope someone have a good input for me. Thanks and nice day everyone!
|
|
|
Post by nicesuuu009 on Nov 21, 2024 4:00:24 GMT
Can someone help me to create a script for the ragnarok sea? The idea is to loop the encounter quests
|
|