|
Post by VipAfrian on Jun 20, 2019 20:42:44 GMT
I'm a new user ankulua, this is my first post, sorry if it's bad I will post my COC script soon, but i need little bit help the first is, how to make a code that can detect numbers beside slashes Second is that ankulua can detect the red line in this photo, and how to click near the linethird, how to make a wait () code with a random number but still within range, example 2-6 seconds
|
|
|
Post by AnkuLua on Jun 20, 2019 22:56:33 GMT
1. You need to do numberOCR() twice. Find the slash first; then create two regions for those two numbers without the slash.
2. wait(math.random() * 2 + 2)
3. Try creating images with grasses and red lines, then detect them.
|
|
|
Post by VipAfrian on Jun 21, 2019 4:04:25 GMT
1. You need to do numberOCR() twice. Find the slash first; then create two regions for those two numbers without the slash. 2. wait(math.random() * 2 + 2) 3. Try creating images with grasses and red lines, then detect them. Thank you so much..
|
|
|
Post by VipAfrian on Jun 22, 2019 7:22:09 GMT
1. You need to do numberOCR() twice. Find the slash first; then create two regions for those two numbers without the slash. 2. wait(math.random() * 2 + 2) 3. Try creating images with grasses and red lines, then detect them. how to make script that can make game out with we setting specific time? give me example pls *translate by google
|
|
|
Post by AnkuLua on Jun 22, 2019 7:25:40 GMT
1. You need to do numberOCR() twice. Find the slash first; then create two regions for those two numbers without the slash. 2. wait(math.random() * 2 + 2) 3. Try creating images with grasses and red lines, then detect them. how to make script that can make game out with we setting specific time? give me example pls *translate by google To kill the game, use killApp() ankulua.boards.net/thread/13/advanced-methods#killAppTo exit the script, use scriptExit() ankulua.boards.net/thread/13/advanced-methods#scriptExitTo do something at some time, use os.time() www.lua.org/pil/22.1.htmlt = 0 + os.date("%H%M") if (t > 1400 and t < 1500) then -- between 2pm and 3pm print ("between 2pm and 3pm") -- do anything else end
To run something after running script 30 minutes, use Timer() ankulua.boards.net/thread/13/advanced-methods#Timertimer = Timer() -- at the beginning of the script
-- in the script kernel routine if (timer:check > 30*60) then scriptExit(the script run more than 30 minutes) -- or change to anything you want end
|
|
|
Post by VipAfrian on Jun 22, 2019 7:34:41 GMT
how to make script that can make game out with we setting specific time? give me example pls *translate by google To kill the game, use killApp() ankulua.boards.net/thread/13/advanced-methods#killAppTo exit the script, use scriptExit() ankulua.boards.net/thread/13/advanced-methods#scriptExitI know that function, but how do I write the condition code after a few minutes, then scriptExit? thanks before My code : hasilTulisanH = numberOCR(apalah, "number") hasilTulisanM = numberOCR(apalah2, "number")
hemeh = numberOCR(region_cekPersonal, "number")
print("Tulisan hour : " .. hasilTulisanH .. " tulisan Minute : " .. hasilTulisanM) print(hemeh) hisss = hasilTulisanH * 60 hilah = hisss + hasilTulisanM print(" total minutes : " .. hilah)
|
|
|
Post by AnkuLua on Jun 22, 2019 7:37:53 GMT
Say 30 minutes,
if (hilah > 30) then scriptExit("more than 30 minutes) end
|
|
|
Post by VipAfrian on Jun 25, 2019 5:42:58 GMT
Say 30 minutes, if (hilah > 30) then scriptExit("more than 30 minutes) end I need help in coding ankulua, an algorithm like this: if 3 or 6 similar images are found (circled in the image) then do condition 1, if not then do condition 2 i need help too in image redline, so that when the script runs it doesn't click on the restrictions on redline imgur.com/w029sub Thank you in advance
|
|
|
Post by AnkuLua on Jun 25, 2019 12:57:34 GMT
Say 30 minutes, if (hilah > 30) then scriptExit("more than 30 minutes) end I need help in coding ankulua, an algorithm like this: if 3 or 6 similar images are found (circled in the image) then do condition 1, if not then do condition 2 i need help too in image redline, so that when the script runs it doesn't click on the restrictions on redline imgur.com/w029sub Thank you in advance Use findAll() and table.getn() to find the number ankulua.boards.net/thread/6/objects-methods-introduction-sikuli-compatible#findAllAs for red lines, try creating images with grasses and red lines, then detect them.
|
|