|
Post by eisbecher on Mar 23, 2017 14:37:28 GMT
Hi everybody, I'm new here and I need help by writing a bot for a game. I have no experience in writing lua but I'm going to learn. First I search for a guy that help me with the basics. Should someone have time and can help me, welcome.
|
|
|
Post by theycallmek on Mar 24, 2017 22:38:00 GMT
This can get you started on making a script if you have no lua experience. ankulua.boards.net/thread/179/record-playIf you want something more advanced for a game not already in the games section (http://ankulua.boards.net/board/3/game), you can usually find someone willing to make it for a fee.
|
|
|
Post by eisbecher on Mar 25, 2017 20:21:01 GMT
I do it now with RepetiTouch pro,easy to record and play, only problem I have is with the time if game load a other side. There is no function to edit the script or check if the new side is loaded. Clicks comes to fast and replay doesn't work correctly...
But thank u for your answer!
|
|
|
Post by AnkuLua on Mar 26, 2017 9:31:27 GMT
|
|
|
Post by eisbecher on Mar 26, 2017 14:40:00 GMT
Thank u. After new installation from ankulua works snap and play now. If I understand it right, ankulua makes a Screenshot at every click. Works nice. But only problem I saw, if a area changed, ankulua don't click and start from the beginning. I need that ankulua check this area again and again before he continued the replay. I'm sure that is possible.
Short example: First pic - check - OK - click 2.pic - check - OK - click 3.pic - check - OK - click 4.Pic - check - not OK - Check so long until ok - click 5.pic ....
Sorry for my bad English, I'm better in German. ))
|
|
|
Post by AnkuLua on Mar 26, 2017 15:21:55 GMT
It's easy.
reg = Region(....) while (not reg:existsClick("first.png")) do end while (not reg:existsClick("2.png")) do end while (not reg:existsClick("3.png")) do end while (not reg:existsClick("3.png")) do end append as long as you want.
|
|
|
Post by eisbecher on Mar 26, 2017 17:46:29 GMT
Sure, it's easy for u. ))
OK I try it out.
|
|
|
Post by eisbecher on Mar 26, 2017 18:33:29 GMT
Hmm... where i have to insert the new commando?
Now:
------ 1 ----- touchList[index] = {target = "1.png", region = Region(531, 138, 80, 80), id = "1", action="click"} index = index + 1
|
|