Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[LP][LF][DD]Clash of Clans Farming Bot Cracking and Coding
(11-24-2014, 02:38 AM)cydin Wrote:  thanks for KeeWay for sharing your autoit scripts, your scripts is working on win 7, but for win 8 it didnt work, maybe someone can fix it, thanks again guys for helping and sharing
here for windows  (32bit)
http://www45.zippyshare.com/v/78768401/file.html
and there is for windows (64bit)
http://www29.zippyshare.com/v/74717632/file.html
Reply
Guys, it works for me. I love you Guys <3
Finally, we guys have formed something worth on google xD
Reply
hmm. it works on win7 64 bit but i'm unable to work it out for win8 64 bit. All it does is selects the auto donate and then auto walls checks but nothing after it...
Reply
hi new here can anyone pls make loot search only? thanks!
i found a code but i dont know how to use it here it is

Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Clash of Clans Auto Tool for Genymotion (VirtualBox Android VM)
"""

import os
import sys
import virtualbox
import subprocess
import cv2.cv as cv
import tesseract
import PIL.ImageOps as ImageOps
from time import sleep
from PIL import Image

# Genymotion Android VM name
genymotion_vm_name = "Google Nexus 7"

menu_text = """Choose function?
1. Keep Alive
2. Auto Search
3. Quit
"""

vbox = virtualbox.VirtualBox()
genymotion_vm = vbox.find_machine(genymotion_vm_name)
genymotion_session = genymotion_vm.create_session()

def keep_alive():
    while True:
        genymotion_session.console.mouse.put_mouse_event_absolute(360,223,0,0,0)
        genymotion_session.console.mouse.put_mouse_event_absolute(360,223,0,0,1)
        genymotion_session.console.mouse.put_mouse_event_absolute(360,223,0,0,0)
        sleep(60)


def auto_search():
    # click search button
    genymotion_session.console.mouse.put_mouse_event_absolute(660,280,0,0,0)
    genymotion_session.console.mouse.put_mouse_event_absolute(660,280,0,0,1)
    genymotion_session.console.mouse.put_mouse_event_absolute(660,280,0,0,0)
    sleep(12)

    # processing
    subprocess.call("adb shell screencap -p /sdcard/screen.png", shell=True)
    subprocess.call("adb pull /sdcard/screen.png", shell=True)
    im = Image.open("screen.png")
    #box = (60, 80, 165, 180)
    #box = (53, 72, 140, 165)
    box = (53, 72, 140, 130)
    loot = im.crop(box).convert('L')
    loot = ImageOps.invert(loot)
    loot.save("loot.png", "png")

    api = tesseract.TessBaseAPI()
    api.Init(".", "coc",tesseract.OEM_DEFAULT)
    api.SetVariable("tessedit_char_whitelist", "0123456789")
    api.SetPageSegMode(tesseract.PSM_AUTO)

    image = cv.LoadImage("loot.png", cv.CV_LOAD_IMAGE_UNCHANGED)
    tesseract.SetCvImage(image,api)
    text = api.GetUTF8Text()
    conf = api.MeanTextConf()
    total_loot = text.splitlines()
    gold_loot, elixir_loot = total_loot[0:2]
    gold_expr = gold_loot.find(" ") == 3 and int(gold_loot.split(" ")[0]) >= 180
    elixir_expr = elixir_loot.find(" ") == 3 and int(elixir_loot.split(" ")[0]) >= 180

    if gold_expr or elixir_expr:
        print gold_loot
        print elixir_loot
        subprocess.call("mplayer /home/mrtux/Downloads/gun.mp3", shell=True)
        api.End()
        return True

    return False

if __name__ == "__main__":
    try:
        while True:
            print menu_text
            answer = raw_input("Your choice: ")
            if answer == "1":
                try:
                    keep_alive()
                except:
                    pass
            elif answer == "2":
                try:
                    while auto_search() is False:
                        pass
                except:
                    pass
            elif answer == "3":
                sys.exit(0)
    except:
        sys.exit(1)
Reply
Quote:here for windows (32bit)
http://www45.zippyshare.com/v/78768401/file.html
and there is for windows (64bit)
http://www29.zippyshare.com/v/74717632/file.html

thanks again but it still not working on win8.1 64bit
Reply
Keep getting an blackscreen on LF using the bluestacks download from their website that they say to download. Do you have to download the bluestacks client from their website or can you download it from the official bluestacks website?
Reply
Quote:Keep getting an blackscreen on LF using the bluestacks download from their website that they say to download. Do you have to download the bluestacks client from their website or can you download it from the official bluestacks website?

im using the old version of bluestacks 0.8.11.3116 and download from http://cdn.bluestacks.com/public/beta-1/...16_REL.msi and im using the ADW launcher and remove the default launcher cos it packed with autodownload apps, make sure u let it update the market before u can download other apps, others tool also can be use to remove and patch that.
Reply
Can anybody lend me a hand .. i tried to run the script that keeway create .. but when it runs .. it doesnt regconize where the try button is i think .. i have a 1280x1024 computer resolution .. any ideas ?
Reply
my pc runinng win 7 x68 and doesnt work well with the script is just open the lf robot and check and then nothing follows it ddnt click try.. i try to edit and reinstall autoit and stil the same
Reply
(11-24-2014, 09:01 AM)t0per666 Wrote:  hi new here can anyone pls make loot search only? thanks!
i found a code but i dont know how to use it here it is


Code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Clash of Clans Auto Tool for Genymotion (VirtualBox Android VM)
"""

import os
import sys
import virtualbox
import subprocess
import cv2.cv as cv
import tesseract
import PIL.ImageOps as ImageOps
from time import sleep
from PIL import Image

# Genymotion Android VM name
genymotion_vm_name = "Google Nexus 7"

menu_text = """Choose function?
1. Keep Alive
2. Auto Search
3. Quit
"""

vbox = virtualbox.VirtualBox()
genymotion_vm = vbox.find_machine(genymotion_vm_name)
genymotion_session = genymotion_vm.create_session()

def keep_alive():
   while True:
       genymotion_session.console.mouse.put_mouse_event_absolute(360,223,0,0,0)
       genymotion_session.console.mouse.put_mouse_event_absolute(360,223,0,0,1)
       genymotion_session.console.mouse.put_mouse_event_absolute(360,223,0,0,0)
       sleep(60)


def auto_search():
   # click search button
   genymotion_session.console.mouse.put_mouse_event_absolute(660,280,0,0,0)
   genymotion_session.console.mouse.put_mouse_event_absolute(660,280,0,0,1)
   genymotion_session.console.mouse.put_mouse_event_absolute(660,280,0,0,0)
   sleep(12)

   # processing
   subprocess.call("adb shell screencap -p /sdcard/screen.png", shell=True)
   subprocess.call("adb pull /sdcard/screen.png", shell=True)
   im = Image.open("screen.png")
   #box = (60, 80, 165, 180)
   #box = (53, 72, 140, 165)
   box = (53, 72, 140, 130)
   loot = im.crop(box).convert('L')
   loot = ImageOps.invert(loot)
   loot.save("loot.png", "png")

   api = tesseract.TessBaseAPI()
   api.Init(".", "coc",tesseract.OEM_DEFAULT)
   api.SetVariable("tessedit_char_whitelist", "0123456789")
   api.SetPageSegMode(tesseract.PSM_AUTO)

   image = cv.LoadImage("loot.png", cv.CV_LOAD_IMAGE_UNCHANGED)
   tesseract.SetCvImage(image,api)
   text = api.GetUTF8Text()
   conf = api.MeanTextConf()
   total_loot = text.splitlines()
   gold_loot, elixir_loot = total_loot[0:2]
   gold_expr = gold_loot.find(" ") == 3 and int(gold_loot.split(" ")[0]) >= 180
   elixir_expr = elixir_loot.find(" ") == 3 and int(elixir_loot.split(" ")[0]) >= 180

   if gold_expr or elixir_expr:
       print gold_loot
       print elixir_loot
       subprocess.call("mplayer /home/mrtux/Downloads/gun.mp3", shell=True)
       api.End()
       return True

   return False

if __name__ == "__main__":
   try:
       while True:
           print menu_text
           answer = raw_input("Your choice: ")
           if answer == "1":
               try:
                   keep_alive()
               except:
                   pass
           elif answer == "2":
               try:
                   while auto_search() is False:
                       pass
               except:
                   pass
           elif answer == "3":
               sys.exit(0)
   except:
       sys.exit(1)
I think it is made in Python language
Reply
 


Forum Jump:


Users browsing this thread: 22 Guest(s)

About The Bytecode Club

We're a community forum focused on Reverse Engineering, we try to target Java/Android but we also include other langauges/platforms. We pride ourselves in supporting and free and open sourced applications.

Website