3dd
New Member
Posts: 7
|
Post by 3dd on Jan 13, 2020 4:05:33 GMT
Hi, i'm completely new to this and would like to learn more about it. I tried to search on forum and google for 'snap and play' tutorials but I can't really find any good step by step tutorials. I want to use snap and play for image scan for accurate clicks to try make a farm bot for the game Black Desert Mobile with a few simple task. It's about 10 actions needed with a timer in between to tell the bot when to do some specific things. Also for avoiding bans because it has random click around the found image. I'm using nox macro atm and it works fine but sometimes it missclick on something and get stuck so i really want to learn this snap and play. Example I want to record "feeding pet" action every 60min. It's 7 clicks after i find the pet image and open it. 1: Scan for pet image to open pet screen 2: click on pet 1 3: click on feed pet 1 4: click on pet 2 5: feed pet 2 6: click on pet 3 7: feed pet 3 8: Scan for exit screen image and exit. When i record image of all the actions the playback only play up, found image and open the pet screen and jumps to last step exit screen. Could some experiance ankulua member with some spare time help me here? If i understand this part i may learn how to set up the other actions faster Thanks in advance whoever having some spare time to help me out, cheers!
|
|
3dd
New Member
Posts: 7
|
Post by 3dd on Jan 13, 2020 4:36:23 GMT
Could it be I need to use both snap and record and play and combine them somehow? Snap for taking imagens then on image found i use record and play actions from there? Sorry I'm new and trying my best to learn
|
|
|
Post by AnkuLua on Jan 13, 2020 11:22:06 GMT
In your case, record and play is good enough.
|
|
3dd
New Member
Posts: 7
|
Post by 3dd on Jan 15, 2020 0:58:22 GMT
ankuluaUser yes this part i would guess record and play like macro would be good enough but overall i need to learn the image scan/snap and record for this game. My point is to learn how to make a simple farm bot and in this game i will really need the image scan because every town have the npcs in different orders. HP npc will maybe be third in line in town A but in town B it's 5th in the npc list. Also i need it to auto revive if the character dies during afk farming. Would you mind to teach me how use it? Do a simple example like i go back to town to sell junks and buy potions after 50min. Find image A (HP npc icon) wait x seconds , find image B and click, find image sell junks and from there maybe record a few clicks and exit.
|
|
|
Post by AnkuLua on Jan 15, 2020 7:57:52 GMT
ankuluaUser yes this part i would guess record and play like macro would be good enough but overall i need to learn the image scan/snap and record for this game. My point is to learn how to make a simple farm bot and in this game i will really need the image scan because every town have the npcs in different orders. HP npc will maybe be third in line in town A but in town B it's 5th in the npc list. Also i need it to auto revive if the character dies during afk farming. Would you mind to teach me how use it? Do a simple example like i go back to town to sell junks and buy potions after 50min. Find image A (HP npc icon) wait x seconds , find image B and click, find image sell junks and from there maybe record a few clicks and exit. In that case, you need to modify the generated luar. Here is one example for your purpose. Note, you only need to modify the action part. The region part could and should be different from the example Find image A (HP npc icon) wait x seconds then find image B and click touchList[index] = {target = "A.png", Region(135, 170, 1070, 445), id = "A", action = 'wait(8); existsClick("B.png")'} -- wait 8 seconds find image sell junks then click some locations. Those locations may be recorded from record and play script. touchList[index] = {target = "sellJunks.png", Region(135, 170, 1070, 445), id = "A", action = 'click(Location(10, 10)); wait(3); click(Location(20, 20); wait(5)'}
Replace Location and wait values with those you want.
|
|