|
Post by ninomax0x on May 2, 2017 3:26:25 GMT
Hi guys, I have some questions and need help from the pro I bought an auto script and I've been using it all day everyday, everything went so smoothly until the game detected Ankulua and prevent me from login in, luckily I found a bypass version that allows me to keep using the program so Ankulua problem solved! But there's one more: the guy who made the script already gave up and stopped providing update, so with the game's visual change after the latest update, I can't use the script anymore, so I want to build a new one for personal use. (The script from that guy has been encrypted so there's nothing I can do about it) What I want to ask: (what code to use to be exact) 1. The option to adjust the screen (I'm using the script on Nox, but I want to use it on my phone because my monthly bills are killing me --`) 2. The option to click at a specific spot when a specific image shows up (like when a special enemy appears, you have to do this combo, collect reward when you have completed a task, etc...) 3. Auto collect loot after each round, press "skip" to get past the loading screen. 4. Auto join PvP every 30 minutes (PvP area has a different icon) (*A timer?) Any help would be appreciated! *PS: I'm a total noob when it comes to making script, all I can do is follow instructions.
|
|
|
Post by chaos187 on May 3, 2017 5:17:57 GMT
|
|
|
Post by ninomax0x on May 3, 2017 7:09:06 GMT
I already read pretty much everything here. I want a list of basic commands to start writing my script.
|
|
|
Post by chaos187 on May 3, 2017 9:57:31 GMT
I already read pretty much everything here. I want a list of basic commands to start writing my script. oooh what you want is like a template yea?... something like: while(true)do if(choice==dungeon) then *obligitory code*end if not then we have a list of API functions here ankulua.boards.net/thread/181/api-quick-reference
|
|
|
Post by ninomax0x on May 3, 2017 15:36:36 GMT
Thank you so much! This is really useful for a total noob like me. Btw, a little more detail for each line, like what dis do, what dat do... will make it easier to learn I guess?
|
|
|
Post by chaos187 on May 3, 2017 17:48:03 GMT
Thank you so much! This is really useful for a total noob like me. Btw, a little more detail for each line, like what dis do, what dat do... will make it easier to learn I guess? i might make a tutorial later to kind of help with the process. I will tell you this though, Mapping out your code takes up 90% of your time. Generally you start with what you want to do. For example alot of bots you see say " i want to rerun dungeons". Now that you have the first step, the next one is figuring out how to get there. What obstacles are stopping you? do you want to start with the start battle button? or do you want to start at the login screen? 90% of programming isn't ACTUALLY coding, its figuring out and drawing out what you want done. once that's done then you can code and overcome the obstacles from there. That 10% may take you the longest but that is still the smallest part. Its like writing an essay for english. Tell them what you're gonna tell them, then tell them
|
|
|
Post by ninomax0x on May 3, 2017 18:04:20 GMT
I want to start at the login screen, first is to click the skip button a few times to get to the main screen, then click "play" to open map screen, swipe to the area I wan to join, choose map level and join battle, whenever I see a special mons, click on it to capture... etc. It's really not difficult to do all those steps manually, I just can't tell the script what to do =='
|
|
|
Post by chaos187 on May 3, 2017 21:04:42 GMT
I want to start at the login screen, first is to click the skip button a few times to get to the main screen, then click "play" to open map screen, swipe to the area I wan to join, choose map level and join battle, whenever I see a special mons, click on it to capture... etc. It's really not difficult to do all those steps manually, I just can't tell the script what to do ==' What game are you looking to script for? most of them are more or less the same for the script. Find the area you want to press.. find and compare the image, tap on image
|
|
|
Post by ninomax0x on May 4, 2017 6:58:36 GMT
If there's only clicks and swipes then there's no problem, but I also need a timer, stop function when a special event occurs, restart script after searching for an image for a fixed time, etc...
|
|
|
Post by chaos187 on May 5, 2017 20:27:16 GMT
If there's only clicks and swipes then there's no problem, but I also need a timer, stop function when a special event occurs, restart script after searching for an image for a fixed time, etc... there is an option to wait... I use a function to look for parts of the screen like if (exists(Diamond)) then if(exists(victory))then
end else -- defeat diamond
end end
may not be the most optimal but i think people just look for victory or defeat and then go from there as for the timer
wait(60)
that will make it wait for 1 minute.
most scripts already run in a loop as long as something is going on
while(true) do
end
i'm unclear on what you mean by searching for an image for a certain time.
|
|
|
Post by ninomax0x on May 6, 2017 8:44:29 GMT
Just in case the script got stuck and can't run, I need to restart it so it can start searching for images again.
|
|
|
Post by chaos187 on May 8, 2017 7:51:15 GMT
Just in case the script got stuck and can't run, I need to restart it so it can start searching for images again. that sounds more like the logic you'd use to unstick itself.... I think you'd need to hard code something like that... I know in C++ you can do a try block and you can "throw" the exception or error you're anticipating and whatever catches it can either send an error message or use a function call to fix it. I think you can do something similar like a "do while not" loop where as long as the code is functioning it will run but if it has an exception or an error you can have it try something else to unstick itself.
|
|
|
Post by ninomax0x on May 8, 2017 13:47:34 GMT
Chaos check your mail box pls.
|
|