|
Post by vampiredbr9 on Jan 30, 2017 23:24:00 GMT
Works fine for me, but I've got latest version. I think it says it was added in last update, but not a pro exclusive feature
|
|
|
Post by vampiredbr9 on Jan 30, 2017 7:15:06 GMT
Currently no. What feature do you want to contribute? Hello, I want to make a nice BOT for a farm, that will think about how much mana left, and what cards to send. I needed a repo, so I could start more easily. I have made my test version just for a proof of concept. I have just started so, there are no much to see. drive.google.com/file/d/0B_xMxIDwhCH5RlVqVUkxYko1ZGc/view?usp=sharingI've already made something like that. Check out my clash royale bot, featuring auto battle!
|
|
|
Post by vampiredbr9 on Jan 29, 2017 23:29:08 GMT
Dimension = -1 means it couldn't find the image. First, on ankulua, press start script. Then open clash royale, on 'battle' screen. Only then do you press the play button/ arrow thingy,
|
|
|
Post by vampiredbr9 on Jan 29, 2017 20:09:01 GMT
Can't see doFile()
|
|
|
Post by vampiredbr9 on Jan 29, 2017 11:14:24 GMT
There is currently no network function. Ok. Thanks though
|
|
|
Post by vampiredbr9 on Jan 29, 2017 11:11:39 GMT
Use this: function isGrayscale(pic) r, g, b = getColor(pic) if (r == g and g == b) then return true else return false end end Use it like: If (isGrayscale("pic.png")) then -- do stuff End
|
|
|
Post by vampiredbr9 on Jan 29, 2017 11:10:17 GMT
Use this:
function isGrayscale(pic) r, g, b = getColor(pic) if (r == g and g == b) then return true else return false end end
|
|
|
Post by vampiredbr9 on Jan 29, 2017 11:05:50 GMT
can i use getTarget() from existsClick() ? my example script is here. stopHere = Pattern(patternn) foundThis = regionSet:existsClick(stopHere, 5)
if foundThis then toast("loc: "..foundThis:getTarget()) end i know the return value existsClick() is boelan, or i just missed other method? i need finding the image without any exception if not found, i try find() but throw exception. i'm so sorry for my bad english. edited, i found it... just used getLastMatch() toast("loc: "..getLastMatch():getTarget()) Hi XOX. Could you please post the error message you are getting? Thanks
|
|
|
Post by vampiredbr9 on Jan 28, 2017 13:05:38 GMT
I don't think people will pay for scripts, considering that they've already paid for Pro version so they demand their scripts free. My suggestion is we can introduce something like a premium feature in the script, if they'd like to have that feature they will have to pay for it. For example, in my script auto Goblin hunt can be a premium feature. Tinok I have a solution: ankulua.boards.net/thread/272/ispro-functionChecks if pro version of ankulua, works normally like premium script, or user can buy premium script To stop users modify the script to let them use pro version for free, you for compile the script
|
|
|
Post by vampiredbr9 on Jan 28, 2017 12:58:29 GMT
It's the limitation of Android system. thank you, have any way to install daemon on rooted device and don't need PC ? The Ankulua daemon installer is very good, as it is a V small file, and it doesn't require admin permission. I know this as it works both at school, and home, with a 'child' account. Hope this helps! You could also try it out at work...
|
|
|
Post by vampiredbr9 on Jan 28, 2017 1:03:41 GMT
Hey. I was just curious as to whether you can bypass AnkuLua's error handling or not. status = xpcall(rpg, errorHandler)
function errorHandler() dialogInit() addTextView("ERROR - "..status) dialogShow("Fatal Error") end
function rpg() --stuff end If an error is present, AnkuLua presents me with it and ends my script, but I want to be able to except some errors so that my script can continue, for debugging purposes, I'll also need the error in a string, to toast it or create a console/log. Thanks! Research the Lua function pcall. There is no documentation on the ankulua website, but it works with it
|
|
|
Post by vampiredbr9 on Jan 28, 2017 1:01:13 GMT
Hey. I was just curious as to whether you can bypass AnkuLua's error handling or not. status = xpcall(rpg, errorHandler)
function errorHandler() dialogInit() addTextView("ERROR - "..status) dialogShow("Fatal Error") end
function rpg() --stuff end If an error is present, AnkuLua presents me with it and ends my script, but I want to be able to except some errors so that my script can continue, for debugging purposes, I'll also need the error in a string, to toast it or create a console/log. Thanks! Example: Function battle() Click("test.png") --Badly coded on purpose, no test.png on screen, so returns error End if not(pcall(battle)) then Toast("error occured- ignoring") --If an error occured during battle function end Read more: ankulua.boards.net/user/2729/recent?page=2#ixzz4X0uhVSJ8
|
|
|
Post by vampiredbr9 on Jan 28, 2017 0:56:52 GMT
Why can't you just use type() ? It is not to use to input, but instead to use as an 'output' method. See my region Helper script, and see what I mean- I want the user to get the string copied to clipboard.
|
|
|
Post by vampiredbr9 on Jan 27, 2017 20:52:28 GMT
localPath = scriptPath() dofile(localPath.."next.lua") Thanks ankulua... I was just looking for this right now. One question... Is there any function in ankulua / Lua to download / update a script from source automatically...? Thanks- would REALLY help
|
|
|
Post by vampiredbr9 on Jan 27, 2017 16:40:01 GMT
|
|