Skip to content

samet111/nanobot

 
 

Repository files navigation

##NanoBot An usefull Clash of Clans bot.

###Features

  • Automatic resources collecting
  • Automatic troops training (all except dark troops)
  • Automatic attacks
    • Opponent finder matching gold, elixir, dark elixir criterias
    • Detect empty collectors
    • Different attack strategies
  • Disconnect detector. You cannot run game for more than 6 hours at a time, you will be disconnected after that for 5 min, it will reload you again. Or in case something goes wrong and bot dies, you will get disconnected from inactivity, and it will log you back in and start again.

###Requirements

###Instructions

####About Clash of Clans on BlueStacks

  • BlueStacks must run in 860x720 resolution, it will automatically set that up, but in case it fails, you have to do it manually.
  • You must run BlueStacks window on foreground, make sure nothing gets in front of it. I will add background mode in the future.
  • Bot uses down arrow key to zoom up, make sure that key zooms up for you as well.
  • Do not click CTRL key when bot is running, if you make a ctrl and mouse click, you will see BlueStacks is zooming(If not you are lucky, mine does). It will interfere with bot's clicks.
  • Make sure your display&pc never goes to sleep.(power settings)

####Running the bot Download the latest version of NanoBot from releases page and run the .jar file.

Make sure you are running it with java 8, not with an older version of Java. Right click to .jar file, Properties -> Open with -> Change -> Browse. Then choose javaw.exe in your jre8 or jdk8 installation path, ex: C:\Program Files\Java\jre1.8.0_25\bin\javaw.exe

After NanoBot is opened, click start to go through setup, write down your settings and hit save. You can change the values while bot is running too, just don't forget to click save.

####Recommended Settings

  • At least 170k for resources, so you increase the chance of getting a base with full collectors.
  • Auto Attack: Attack 4 Side Parallel 2 Half Wave
  • Detect empty collectors: true
  • Rax 1: Barb
  • Rax 2: Barb
  • Rax 3: Archer
  • Rax 4: Archer

*If one or more of your barracks are upgrading, you need to set remaining ones to "No Unit"

###FAQ

  • Stuck in StateIdle

    Your resolution is wrong. If bot fails to automatically change it, you need to manually change values from registry. Google how to change resolution for bluestacks. You need to restart your BlueStacks (from system tray icon) after you change resolution. If it still looks wrong, restart your pc.

  • Internet connection behind a proxy.

    Add proxy setting in environment variable JAVA_OPTS="-Dhttp.proxyHost=yourProxyHost -Dhttp.proxyPort=yourProxyPort ..."

###Issues If there are suggestions/bug, open an issue and attach the log file.

###Donate If you like NanoBot consider a donation to support further development. Click here!

About

Clash of Clans bot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 90.6%
  • Gherkin 5.5%
  • JavaScript 2.1%
  • HTML 1.2%
  • Other 0.6%